This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: (make-regexp ) out of memory on Cygwin


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.)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]