Re: [racket-dev] crash with subprocess
Thanks. If you don't need places, compiling with places disabled (i.e., `configure --disable-places') would likely work around the bug for now. At Thu, 30 Aug 2012 16:18:15 +0200, Tobias Hammer wrote: > It uses only a single place. The system is 32bit Linux: > Linux 2.6.32.59-0.7-pae #1 SMP 2012-07-13 15:50:56 +0200 i686 i686 i386 > GNU/Linux > > Tobias > > > On Thu, 30 Aug 2012 15:17:05 +0200, Matthew Flatt > wrote: > > > It looks like we still have problems with the `subprocess' > > implementation that cooperates with places. > > > > Does your program use multiple places, or just one? If it uses multiple > > places, does it use `subprocess' in multiple places? > > > > Is your platform 32-bit Linux? > > > > At Thu, 30 Aug 2012 13:38:23 +0200, Tobias Hammer wrote: > >> Hi, > >> > >> i am experiencing random crashes when using subprocess followed by a > >> subprocess-wait. My test program, that i call via subprocess is special, > >> in that it kills itself very fast with a sigkill after executing. > >> > >> Unfortunately, i wasn't able to reproduce this behavior in a small > >> sample > >> but i could record three different core dumps with full debug info > >> (attached). > >> I tested with my own build of git head and 5.3.0.21. > >> > >> All crashes/freezes are preceded by the message > >> "unexpected error from waitpid(138321448[1]): 10" > >> with a completely invalid pid argument to waitpid. The errno 10 > >> is "No child processes". > >> > >> What follows this message are random freezes (ctrl+c has no effect), > >> heap corruptions or segfaults. > >> > >> I hope the supplied information is enough to locate whatever goes wrong, > >> otherwise i can, of course send in more. > >> > >> Tobias > > > > > -- > - > Tobias Hammer > DLR / Institute of Robotics and Mechatronics > Muenchner Str. 20, D-82234 Wessling > Tel.: 08153/28-1487 > Mail: tobias.ham...@dlr.de _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] crash with subprocess
It uses only a single place. The system is 32bit Linux: Linux 2.6.32.59-0.7-pae #1 SMP 2012-07-13 15:50:56 +0200 i686 i686 i386 GNU/Linux Tobias On Thu, 30 Aug 2012 15:17:05 +0200, Matthew Flatt wrote: It looks like we still have problems with the `subprocess' implementation that cooperates with places. Does your program use multiple places, or just one? If it uses multiple places, does it use `subprocess' in multiple places? Is your platform 32-bit Linux? At Thu, 30 Aug 2012 13:38:23 +0200, Tobias Hammer wrote: Hi, i am experiencing random crashes when using subprocess followed by a subprocess-wait. My test program, that i call via subprocess is special, in that it kills itself very fast with a sigkill after executing. Unfortunately, i wasn't able to reproduce this behavior in a small sample but i could record three different core dumps with full debug info (attached). I tested with my own build of git head and 5.3.0.21. All crashes/freezes are preceded by the message "unexpected error from waitpid(138321448[1]): 10" with a completely invalid pid argument to waitpid. The errno 10 is "No child processes". What follows this message are random freezes (ctrl+c has no effect), heap corruptions or segfaults. I hope the supplied information is enough to locate whatever goes wrong, otherwise i can, of course send in more. Tobias -- - Tobias Hammer DLR / Institute of Robotics and Mechatronics Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] crash with subprocess
It looks like we still have problems with the `subprocess' implementation that cooperates with places. Does your program use multiple places, or just one? If it uses multiple places, does it use `subprocess' in multiple places? Is your platform 32-bit Linux? At Thu, 30 Aug 2012 13:38:23 +0200, Tobias Hammer wrote: > Hi, > > i am experiencing random crashes when using subprocess followed by a > subprocess-wait. My test program, that i call via subprocess is special, > in that it kills itself very fast with a sigkill after executing. > > Unfortunately, i wasn't able to reproduce this behavior in a small sample > but i could record three different core dumps with full debug info > (attached). > I tested with my own build of git head and 5.3.0.21. > > All crashes/freezes are preceded by the message > "unexpected error from waitpid(138321448[1]): 10" > with a completely invalid pid argument to waitpid. The errno 10 > is "No child processes". > > What follows this message are random freezes (ctrl+c has no effect), > heap corruptions or segfaults. > > I hope the supplied information is enough to locate whatever goes wrong, > otherwise i can, of course send in more. > > Tobias _ Racket Developers list: http://lists.racket-lang.org/dev
[racket-dev] crash with subprocess
Hi, i am experiencing random crashes when using subprocess followed by a subprocess-wait. My test program, that i call via subprocess is special, in that it kills itself very fast with a sigkill after executing. Unfortunately, i wasn't able to reproduce this behavior in a small sample but i could record three different core dumps with full debug info (attached). I tested with my own build of git head and 5.3.0.21. All crashes/freezes are preceded by the message "unexpected error from waitpid(138321448[1]): 10" with a completely invalid pid argument to waitpid. The errno 10 is "No child processes". What follows this message are random freezes (ctrl+c has no effect), heap corruptions or segfaults. I hope the supplied information is enough to locate whatever goes wrong, otherwise i can, of course send in more. Tobias -- - Tobias Hammer DLR / Institute of Robotics and Mechatronics Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.dehangs, ctrl+c not working, unexpected error from waitpid(138321064[1]): 10 unexpected error from waitpid(8345[1]): 10 unexpected error from waitpid(8344[1]): 10 unexpected error from waitpid(138321064[1]): 10 unexpected error from waitpid(8345[1]): 10 unexpected error from waitpid(8344[1]): 10 unexpected error from waitpid(138321448[1]): 10 unexpected error from waitpid(138321064[1]): 10 unexpected error from waitpid(8345[1]): 10 unexpected error from waitpid(8344[1]): 10 unexpected error from waitpid(138321448[1]): 10 unexpected error from waitpid(138321064[1]): 10 unexpected error from waitpid(8345[1]): 10 unexpected error from waitpid(8344[1]): 10 unexpected error from waitpid(138321448[1]): 10 ^\Quit (core dumped) (gdb) bt #0 0xe424 in __kernel_vsyscall () #1 0xb7643ea7 in poll () from /lib/libc.so.6 #2 0x0820f10c in default_sleep (v=0, fds=0xb56540e8) at ./../src/port.c:10114 #3 0x082c9653 in check_sleep (need_activity=1, sleep_now=1) at ./../src/thread.c:4043 #4 0x082cb262 in scheme_thread_block (sleep_time=0) at ./../src/thread.c:4751 #5 0x082cb7b5 in scheme_block_until (_f=0x820ca17 , fdf=0x820cb32 , data=0xb62bec90, delay=0) at ./../src/thread.c:4887 #6 0x0820cd8e in subprocess_wait (argc=1, argv=0xb6260eb4) at ./../src/port.c:8670 #7 0x0808f101 in _scheme_tail_apply_from_native_fast (rator=0x83c6f58, argc=1, argv=0xb6260eb4) at ./../src/schnapp.inc:34 #8 0x0808efdd in _scheme_tail_apply_from_native (rator=0x83c6f58, argc=1, argv=0xb6260eb4) at ./../src/schnapp.inc:64 #9 0x081080a8 in ts__scheme_tail_apply_from_native (rator=0x83c6f58, argc=1, argv=0xb6260eb4) at ./../src/jitcall.c:174 #10 0xb7780964 in ?? () #11 0x08093db8 in scheme_do_eval (obj=0x0, num_rands=2, rands=0xbfd1667c, get_value=-1) at ./../src/eval.c:2837 #12 0x080c3638 in scheme_finish_apply_for_prompt (prompt=0x0, _prompt_tag=0xb57b8150, proc=0xb57b7f90, argc=2, argv=0xbfd1667c) at ./../src/fun.c:5847 #13 0x080c3934 in scheme_apply_for_prompt (prompt=0xb39f3610, prompt_tag=0xb57b8150, proc=0xb57b7f90, argc=2, argv=0xbfd1667c) at ./../src/fun.c:5926 #14 0x080c4b13 in call_with_prompt (in_argc=5, in_argv=0xb6260ec0) at ./../src/fun.c:6325 #15 0x0808f101 in _scheme_tail_apply_from_native_fast (rator=0x83c4428, argc=5, argv=0xb6260ec0) at ./../src/schnapp.inc:34 #16 0x0808efdd in _scheme_tail_apply_from_native (rator=0x83c4428, argc=5, argv=0xb6260ec0) at ./../src/schnapp.inc:64 #17 0x081080a8 in ts__scheme_tail_apply_from_native (rator=0x83c4428, argc=5, argv=0xb6260ec0) at ./../src/jitcall.c:174 #18 0xb7780964 in ?? () #19 0xb7766064 in ?? () #20 0xb5902334 in ?? () #21 0x08093db8 in scheme_do_eval (obj=0x0, num_rands=0, rands=0x0, get_value=-1) at ./../src/eval.c:2837 #22 0x0808edda in _scheme_apply_multi_from_native (rator=0xb39efbe0, argc=0, argv=0x0) at ./../src/schnapp.inc:87 #23 0x081174d4 in ts__scheme_apply_multi_from_native (g7=0xb39efbe0, g8=0, g9=0x0) at ./../src/jit_ts.c:121 #24 0xb7780903 in ?? () #25 0x08093db8 in scheme_do_eval (obj=0x0, num_rands=0, rands=0x0, get_value=-1) at ./../src/eval.c:2837 #26 0x080ca33b in pre_post_dyn_wind (prepost=0xb39efbe0) at ./../src/fun.c:8214 #27 0x080ca3e7 in post_dyn_wind (d=0xb3a3fc48) at ./../src/fun.c:8237 #28 0x080cada6 in scheme_dynamic_wind (pre=0x80ca3bd , act=0x80ca389 , post=0x80ca3d3 , jmp_handler=0, data=0xb3a3fc48) at ./../src/fun.c:8411 #29 0x080ca532 in dynamic_wind (c=3, argv=0xb6260f60) at ./../src/fun.c:8258 #30 0x0808f101 in _scheme_tail_apply_from_native_fast (rator=0x83c4858, argc=3, argv=0xb6260f60) at ./../src/schnapp.inc:34 #31 0x0808efdd in _scheme_tail_apply_from_native (rator=0x83c4858, argc=3, argv=0xb6260f60) at ./../src/schnapp.inc:64 #32 0x081080a8 in ts__scheme_tail_apply_from_native (rator=0x83c4858, argc=3, argv=0xb6260f60) at ./../src/jitcall.c:174 #33 0xb7780964 in ?? () #34 0x08093db8 in scheme_do_eval (obj=0x0, num_rands=11, rands=0xb6260f80, get_value=1) at ./../src/eval.c:2837 #35