On Mon, Mar 23, 2009 at 08:48:50AM +0900, Ivan Raikov wrote: > I doubt this is the case, since the regex unit is almost identical > between Chicken 3 and Chicken 4. Taylor, can you compile Chicken with > the attached regex.scm and see if there is any routine from the regex > unit that is called at the point when the build process gets stuck?
I can trigger the bug using Chicken 3.4.7 when compiled with the supplied regex.scm file (again I can do this by varying the -:s parameter until it gets stuck). A backtrace from GCC is attached (it continues to repeat through many frames after the output given). It exhibits behaviour similar to that when using the regex.scm that comes with Chicken 3.4.7 normally. The regex.c file which is generated is on my website at: http://real.metasyntax.net:2357/tmp/regex-pcre.c.gz (Probably just my ignorance talking here again, but even though the header on the file says PCRE, there are a lot of references to irregex scattered throughout that file.) Thanks for the continued time to try to solve this, -- Taylor Christopher Venable http://real.metasyntax.net:2357/
(gdb) run utils.scm -quiet -no-trace -optimize-level 2 -include-path . -include-path ./ -explicit-use -output-file utils.c -:s74k -:d The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/taylor/Desktop/chicken-3.4.7/chicken utils.scm -quiet -no-trace -optimize-level 2 -include-path . -include-path ./ -explicit-use -output-file utils.c -:s74k -:d [debug] application startup... [debug] heap resized to 500000 bytes [debug] stack bottom is 0x7fff909c2ae0. [debug] entering toplevel toplevel... [debug] entering toplevel library_toplevel... [debug] entering toplevel eval_toplevel... [debug] entering toplevel data_structures_toplevel... [debug] entering toplevel ports_toplevel... [debug] entering toplevel extras_toplevel... [debug] entering toplevel srfi_69_toplevel... [debug] entering toplevel srfi_1_toplevel... [debug] entering toplevel match_toplevel... [debug] entering toplevel srfi_4_toplevel... [debug] entering toplevel utils_toplevel... [debug] entering toplevel regex_toplevel... [debug] entering toplevel files_toplevel... [debug] resizing heap dynamically from 500k to 1000k ... [debug] resizing heap dynamically from 1000k to 2000k ... [debug] resizing heap dynamically from 2000k to 4000k ... [debug] resizing heap dynamically from 4000k to 8000k ... [debug] resizing heap dynamically from 8000k to 16000k ... [debug] resizing heap dynamically from 16000k to 32000k ... [debug] resizing heap dynamically from 32000k to 64000k ... [debug] resizing heap dynamically from 64000k to 128000k ... [debug] resizing heap dynamically from 128000k to 256000k ... [debug] resizing heap dynamically from 256000k to 512000k ... ^C Program received signal SIGINT, Interrupt. 0x00007f9c883adfcf in f_12537 (c=2, t0=140735619528656, t1=14680074) at regex.c:10326 10326 ((C_proc3)(void*)(*((C_word*)t3+1)))(3,t3,t2,((C_word*)t0)[2]);} (gdb) bt #0 0x00007f9c883adfcf in f_12537 (c=2, t0=140735619528656, t1=14680074) at regex.c:10326 #1 0x00007f9c881677e2 in f_3920 (c=3, t0=140309752394536, t1=140735619528656, t2=140309752479688) at library.c:34139 #2 0x00007f9c883aded8 in f_12517 (t0=140735619529008, t1=6) at regex.c:10312 #3 0x00007f9c883add3a in f_12551 (c=2, t0=140735619529056, t1=14680074) at regex.c:10287 #4 0x00007f9c881677e2 in f_3920 (c=3, t0=140309752394536, t1=140735619529056, t2=140309752479688) at library.c:34139 #5 0x00007f9c883adbe6 in f_12555 (c=2, t0=140735619529352, t1=140735619533232) at regex.c:10267 #6 0x00007f9c88167a01 in f_3890 (c=3, t0=140309752393464, t1=140735619529352, t2=140309752479688) at library.c:34178 #7 0x00007f9c883ad9e5 in f_12360 (t0=140735619529888, t1=6) at regex.c:10251 #8 0x00007f9c883ad450 in f_12579 (c=2, t0=140735619529976, t1=140735619533232) at regex.c:10198 #9 0x00007f9c88167a01 in f_3890 (c=3, t0=140309752393464, t1=140735619529976, t2=140309752479688) at library.c:34178 #10 0x00007f9c883ad2f4 in f_12332 (t0=140735619530240, t1=140735619531152, t2=140309752479688, t3=14) at regex.c:10181 #11 0x00007f9c883acfc3 in f_12327 (c=2, t0=140735619530512, t1=14679818) at regex.c:10156 #12 0x00007f9c8816794c in f_3900 (c=3, t0=140309752393432, t1=140735619530512, t2=140735619531040) at library.c:34165 #13 0x00007f9c883acdfe in f_12324 (c=2, t0=140735619530776, t1=10) at regex.c:10140 #14 0x00007f9c88167a01 in f_3890 (c=3, t0=140309752393464, t1=140735619530776, t2=140735619531040) at library.c:34178 #15 0x00007f9c883accc1 in f_12123 (t1=140735619531152, t2=140309752479688, t3=140735619531040) at regex.c:10127 #16 0x00007f9c883b0994 in f_12126 (t1=140735619531152, t2=140309752479688, t3=140735619533728, t4=29) at regex.c:10829 #17 0x00007f9c883aed75 in f_12439 (t0=140735619531280, t1=140309752479688) at regex.c:10468 #18 0x00007f9c883aec5d in f_12436 (t0=140735619531488, t1=140309752479688) at regex.c:10454 #19 0x00007f9c883aea60 in f_12476 (c=2, t0=140735619532016, t1=140309752505088) at regex.c:10436 #20 0x00007f9c883ab380 in f_12868 (t1=140735619532016, t2=29, t3=140309752505088) at regex.c:9761 #21 0x00007f9c883ae7fc in f_12427 (c=2, t0=140735619532368, t1=140309752505088) at regex.c:10416 #22 0x00007f9c8816794c in f_3900 (c=3, t0=140309752393432, t1=140735619532368, t2=140309752479688) at library.c:34165 #23 0x00007f9c883ae5f4 in f_12423 (c=7, t0=140735619534224, t1=140735619537408, t2=140735619533728, t3=140735619533544, t4=140735619533232, t5=6, t6=6) at regex.c:10396 #24 0x00007f9c884b3694 in l3 () from /home/taylor/Desktop/chicken-3.4.7/libchicken.so.3 #25 0x0000000000000006 in ?? () #26 0x0000000000000006 in ?? () #27 0x00007f9c884ead65 in ?? () from /home/taylor/Desktop/chicken-3.4.7/libchicken.so.3 #28 0x00007fff909c0d90 in ?? () #29 0x0300000000000002 in ?? () #30 0x0000000000e0000a in ?? () #31 0x00007fff909c0860 in ?? () #32 0x00007f9c8846b5af in C_apply (c=4, closure=0, k=140735619537408, fn=140735619534224) at runtime.c:6083 #33 0x00007f9c883ae3d0 in f_12488 (c=2, t0=140735619534280, t1=140735619533024) at regex.c:10382 #34 0x00007f9c883ac4ce in f_12716 (t0=140735619533256, t1=6) at regex.c:10016 #35 0x00007f9c883ac3e6 in f_12708 (t0=140735619533488, t1=140735619533544) at regex.c:10006 #36 0x00007f9c883ac158 in f_12704 (t0=140735619533680, t1=140735619533728) at regex.c:9974 #37 0x00007f9c883abf72 in f_12671 (t1=140735619534280, t2=140735619539984, t3=140735619539488) at regex.c:9951 #38 0x00007f9c883ae38b in f_12496 (c=2, t0=140735619534312, t1=140735619539488) at regex.c:10375 #39 0x00007f9c88167a01 in f_3890 (c=3, t0=140309752393464, t1=140735619534312, t2=140309752479688) at library.c:34178 #40 0x00007f9c883ae2a3 in f_12418 (t0=140735619535536, t1=22) at regex.c:10360 #41 0x00007f9c883ae05f in f_12533 (c=2, t0=140735619534704, t1=-9223231728577937654) at regex.c:10337 #42 0x00007f9c881675bb in f_3947 (c=3, t0=140309752394504, t1=140735619534704, t2=140309752479688) at library.c:34100 #43 0x00007f9c883adfef in f_12537 (c=2, t0=140735619534912, t1=14680074) at regex.c:10326 #44 0x00007f9c881677e2 in f_3920 (c=3, t0=140309752394536, t1=140735619534912, t2=140309752479688) at library.c:34139 #45 0x00007f9c883aded8 in f_12517 (t0=140735619535264, t1=6) at regex.c:10312 #46 0x00007f9c883add3a in f_12551 (c=2, t0=140735619535312, t1=14680074) at regex.c:10287 #47 0x00007f9c881677e2 in f_3920 (c=3, t0=140309752394536, t1=140735619535312, t2=140309752479688) at library.c:34139 #48 0x00007f9c883adbe6 in f_12555 (c=2, t0=140735619535608, t1=140735619539488) at regex.c:10267 #49 0x00007f9c88167a01 in f_3890 (c=3, t0=140309752393464, t1=140735619535608, t2=140309752479688) at library.c:34178 #50 0x00007f9c883ad9e5 in f_12360 (t0=140735619536144, t1=6) at regex.c:10251 #51 0x00007f9c883ad450 in f_12579 (c=2, t0=140735619536232, t1=140735619539488) at regex.c:10198 #52 0x00007f9c88167a01 in f_3890 (c=3, t0=140309752393464, t1=140735619536232, t2=140309752479688) at library.c:34178 #53 0x00007f9c883ad2f4 in f_12332 (t0=140735619536496, t1=140735619537408, t2=140309752479688, t3=14) at regex.c:10181 #54 0x00007f9c883acfc3 in f_12327 (c=2, t0=140735619536768, t1=14679818) at regex.c:10156 #55 0x00007f9c8816794c in f_3900 (c=3, t0=140309752393432, t1=140735619536768, t2=140735619537296) at library.c:34165 #56 0x00007f9c883acdfe in f_12324 (c=2, t0=140735619537032, t1=10) at regex.c:10140 #57 0x00007f9c88167a01 in f_3890 (c=3, t0=140309752393464, t1=140735619537032, t2=140735619537296) at library.c:34178 #58 0x00007f9c883accc1 in f_12123 (t1=140735619537408, t2=140309752479688, t3=140735619537296) at regex.c:10127 #59 0x00007f9c883b0994 in f_12126 (t1=140735619537408, t2=140309752479688, t3=140735619539984, t4=29) at regex.c:10829 #60 0x00007f9c883aed75 in f_12439 (t0=140735619537536, t1=140309752479688) at regex.c:10468 #61 0x00007f9c883aec5d in f_12436 (t0=140735619537744, t1=140309752479688) at regex.c:10454 #62 0x00007f9c883aea60 in f_12476 (c=2, t0=140735619538272, t1=140309752505088) at regex.c:10436 #63 0x00007f9c883ab380 in f_12868 (t1=140735619538272, t2=29, t3=140309752505088) at regex.c:9761 #64 0x00007f9c883ae7fc in f_12427 (c=2, t0=140735619538624, t1=140309752505088) at regex.c:10416 #65 0x00007f9c8816794c in f_3900 (c=3, t0=140309752393432, t1=140735619538624, t2=140309752479688) at library.c:34165 #66 0x00007f9c883ae5f4 in f_12423 (c=7, t0=140735619540480, t1=140309979247952, t2=140735619539984, t3=140735619539800, t4=140735619539488, t5=6, t6=6) at regex.c:10396 #67 0x00007f9c884b3694 in l3 () from /home/taylor/Desktop/chicken-3.4.7/libchicken.so.3 #68 0x0000000000000006 in ?? () #69 0x0000000000000006 in ?? () #70 0x00007f9c884ead65 in ?? () from /home/taylor/Desktop/chicken-3.4.7/libchicken.so.3 #71 0x00007fff909c2600 in ?? () #72 0x0300000000000002 in ?? () #73 0x0000000000e0000a in ?? () #74 0x00007fff909c20d0 in ?? () #75 0x00007f9c8846b5af in C_apply (c=4, closure=0, k=140309979247952, fn=140735619540480) at runtime.c:6083
_______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users