This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: (make-regexp ) out of memory on Cygwin
- To: Jan Nieuwenhuizen <janneke at gnu dot org>
- Subject: Re: (make-regexp ) out of memory on Cygwin
- From: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Date: 07 Jun 2000 15:28:01 +0200
- Cc: guile at sourceware dot cygnus dot com
- Cc: djurfeldt at nada dot kth dot se
- References: <200006071318.PAA27692@appel.dyndns.org>
Jan Nieuwenhuizen <janneke@gnu.org> writes:
> Any ideas how to debug/fix this?
>
> guile> 13:48:17 SOPHOS2 ~$ guile
> guile> (version)
> "1.3.5"
> guile> (debug-enable 'backtrace)
> (stack 20000 debug backtrace depth 20 maxdepth 1000 frames 3 indent 10 width 79 procnames cheap)
> guile> (use-modules (ice-9 regex))
> guile> (display (string-match "b" "abc"))
>
> Backtrace:
> 0* [display ...
> 1* [string-match "b" "abc"]
> 2 (let ((rx #) (start #)) (regexp-exec rx str start))
> 3* [gsubr-apply #<primitive-procedure make-regexp> "b"]
1. Start Guile within gdb.
2. Type CTRL-C
3. Set a breakpoint on scm_make_regexp
4. Type `continue' in gdb
5. Type `(string-match "b" "abc")' in Guile
6. Single step from the break point and see where things go wrong and
why.
(Unfortunately I'm not aware of any Guile developer who uses cygwin,
so you're probably on your own.)