[plt-scheme] mred dumps core on NetBSD

From: Aleksej Saushev (asau at inbox.ru)
Date: Wed Nov 11 08:24:09 EST 2009

  Hello!

I'm trying (rather lazily) to make this damn thing work.
Current installation is NetBSD 5.99.22 i386, but this happened before.
I'm using Subversion snapshot as of past midnight UTC.

mred dumps core:

$ gdb mred
(gdb) run
Starting program: /usr/pkg/bin/mred 

Program received signal SIGSEGV, Segmentation fault.
0x0835b6e7 in scheme_gmp_tls_unload ()
(gdb) bt
#0  0x0835b6e7 in scheme_gmp_tls_unload ()
#1  0x0833473f in done_with_GC ()
#2  0xbafb04c0 in ?? ()
#3  0x00000000 in ?? ()
(gdb) c
Continuing.
Seg fault (internal error) at 0x0

Program received signal SIGABRT, Aborted.
0xbb662907 in _lwp_kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0xbb662907 in _lwp_kill () from /usr/lib/libc.so.12
#1  0xbb6628c5 in raise () from /usr/lib/libc.so.12
#2  0xbb66209a in abort () from /usr/lib/libc.so.12
#3  0x0836a4e5 in fault_handler ()
#4  0xbb33cd30 in ?? ()
#5  0xbb3754d8 in ?? ()
#6  0xbb41fdec in _citrus_iconv_std_iconv_getops () from /usr/lib/i18n/libiconv_std.so.5.0
Previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.


Eli suggested slightly different way to extract debug information,
though I'm not sure it is more effective:

$ gdb mred
...
(gdb) handle SIGSEGV nostop noprint
Signal        Stop	Print	Pass to program	Description
SIGSEGV       No	No	Yes		Segmentation fault
(gdb) run
Starting program: /usr/pkg/bin/mred 
Seg fault (internal error) at 0x0

Program received signal SIGABRT, Aborted.
0xbb662907 in _lwp_kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0xbb662907 in _lwp_kill () from /usr/lib/libc.so.12
#1  0xbb6628c5 in raise () from /usr/lib/libc.so.12
#2  0xbb66209a in abort () from /usr/lib/libc.so.12
#3  0x0836a4e5 in fault_handler ()
#4  0xbae040d0 in ?? ()
#5  0xbb3754d8 in ?? ()
#6  0xbb41fdec in _citrus_iconv_std_iconv_getops () from /usr/lib/i18n/libiconv_std.so.5.0
Previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.


I'm afraid, that I can't debug it without your input, I don't have much
time to grok the code. Yet I'd like to provide more input and testing.

Command-line interpreter seems to work, though I didn't perform any tests.
If there is regression testsuite, let me know, I'll try it out.


Also, while here, I'd like to have some knob to make PLT not install files
under HOME and use some directory under PREFIX instead. I can change it myself,
if you tell me which components do that.


-- 
HE CE3OH...



Posted on the users mailing list.