[plt-scheme] Segfault in web server (due to missing library??)

From: David Storrs (david.storrs at gmail.com)
Date: Fri Oct 30 12:34:51 EDT 2009

On Thu, Oct 29, 2009 at 5:35 PM, Jay McCarthy <jay.mccarthy at gmail.com>wrote:

> Try openssl-dev
>

 > dpkg -S openssl-dev
dpkg: *openssl-dev* not found.

 > dpkg -S openssl
  [...among other things:]  libssl-dev:

 sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


> Can you send the stack trace from gdb?
>

Stack trace attached.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20091030/a3071385/attachment.html>
-------------- next part --------------
(gdb) bt
#0  scheme_gmp_tls_unload (s=0x2b4d47401448, data=0x0) at ../../../mzscheme/src/gmp/gmp.c:5810
#1  0x00002b4d4638ef6e in done_with_GC () at ../../../mzscheme/gc2/../src/thread.c:7438
#2  0x00002b4d463b8fe7 in garbage_collect (gc=0x607010, force_full=<value optimized out>) at ../../../mzscheme/gc2/newgc.c:3236
#3  0x00002b4d463bdafc in GC_malloc_one_tagged (s=<value optimized out>) at ../../../mzscheme/gc2/newgc.c:746
#4  0x00002b4d461dae39 in scheme_malloc_fail_ok (f=0x607010, s=0) at ../../../mzscheme/gc2/../src/salloc.c:407
#5  0x00002b4d4639fcd3 in scheme_make_vector (size=1114, fill=0x0) at ../../../mzscheme/gc2/../src/vector.c:185
#6  0x00002b4d4631b7ef in read_compact (port=0x2b4d47401f80, use_stack=<value optimized out>) at ../../../mzscheme/gc2/../src/read.c:4590
#7  0x00002b4d4631d48c in read_compact_list (c=31, proper=1, use_stack=<value optimized out>, port=0x2b4d47401f80) at ../../../mzscheme/gc2/../src/read.c:5020
#8  0x00002b4d4631c4b7 in read_compact (port=0x2b4d473f0ab8, use_stack=<value optimized out>) at ../../../mzscheme/gc2/../src/read.c:4929
#9  0x00002b4d4631d579 in read_marshalled (type=100, port=0x2b4d47401f80) at ../../../mzscheme/gc2/../src/read.c:5067
#10 0x00002b4d4631bd95 in read_compact (port=0x2b4d47401f80, use_stack=<value optimized out>) at ../../../mzscheme/gc2/../src/read.c:4677
#11 0x00002b4d4631d218 in read_compact (port=0x2b4d47401f80, use_stack=<value optimized out>) at ../../../mzscheme/gc2/../src/read.c:4924
#12 0x00002b4d4631d579 in read_marshalled (type=3, port=0x2b4d47401f80) at ../../../mzscheme/gc2/../src/read.c:5067
#13 0x00002b4d4631c46e in read_compact (port=0x2b4d473f0ab8, use_stack=<value optimized out>) at ../../../mzscheme/gc2/../src/read.c:4890
#14 0x00002b4d4631d4c5 in read_compact_list (c=0, proper=0, use_stack=<value optimized out>, port=0x2b4d47401f80) at ../../../mzscheme/gc2/../src/read.c:5029
#15 0x00002b4d4631c4b7 in read_compact (port=0x2b4d473f0ab8, use_stack=<value optimized out>) at ../../../mzscheme/gc2/../src/read.c:4929
#16 0x00002b4d4631d579 in read_marshalled (type=87, port=0x2b4d47401f80) at ../../../mzscheme/gc2/../src/read.c:5067
#17 0x00002b4d463165a0 in read_inner_inner (port=0x2b4d474020c0, stxsrc=0x2b4d474022e0, ht=0x2b4d4741e2c8, indentation=0x2b4d466600a0, params=0x7fff64b11f50, 
    comment_mode=2, pre_char=-1, table=0x0, get_info=0) at ../../../mzscheme/gc2/../src/read.c:5303
#18 0x00002b4d4631ae81 in _internal_read (port=0x2b4d474020c0, stxsrc=0x2b4d474022e0, crc=<value optimized out>, cant_fail=<value optimized out>, 
    honu_mode=<value optimized out>, recur=0, expose_comment=0, extra_char=-1, init_readtable=0x0, magic_sym=0x0, magic_val=0x0, delay_load_info=0x2b4d47402300, 
    get_info=0) at ../../../mzscheme/gc2/../src/read.c:2271
#19 0x00002b4d4631b30f in scheme_internal_read_k () at ../../../mzscheme/gc2/../src/read.c:2345
#20 0x00002b4d4623f4eb in scheme_top_level_do_worker (k=0x2b4d4631b240 <scheme_internal_read_k>, eb=<value optimized out>, new_thread=0, dyn_state=0x0)
    at ../../../mzscheme/gc2/../src/fun.c:2078
#21 0x00002b4d46312490 in scheme_internal_read (port=0x2b4d470bd0e8, stxsrc=0x2b4d470bc038, crc=<value optimized out>, cantfail=0, 
    honu_mode=<value optimized out>, recur=0, expose_comment=0, pre_char=<value optimized out>, init_readtable=0x0, magic_sym=0x0, magic_val=0x0, 
    delay_load_info=0x2b4d470bbf08) at ../../../mzscheme/gc2/../src/read.c:2379
#22 0x00002b4d462f7c12 in do_load_handler (data=<value optimized out>) at ../../../mzscheme/gc2/../src/portfun.c:4050
#23 0x00002b4d46236599 in scheme_dynamic_wind (pre=0, act=0x2b4d462f7a80 <do_load_handler>, post=0x2b4d462f78b0 <post_load_handler>, jmp_handler=0, 
    data=0x2b4d47402320) at ../../../mzscheme/gc2/../src/fun.c:7683
#24 0x00002b4d462f7663 in default_load (argc=1180893016, argv=0x2b4d4734ddc0) at ../../../mzscheme/gc2/../src/portfun.c:4282
#25 0x00002b4d473957a0 in ?? ()
#26 0x00007fff64b12860 in ?? ()
#27 0x00002b4d4734ddd0 in ?? ()
#28 0x0000000000000009 in ?? ()
#29 0x00002b4d4734de80 in ?? ()
#30 0x00002b4d4704b3e8 in ?? ()
#31 0x00002b4d4734dde0 in ?? ()
#32 0x00007fff64b12860 in ?? ()
#33 0x00002b4d4739b88f in ?? ()
#34 0x00002b4d46660070 in scheme_tail_call_waiting () from /usr/local/lib/libmzscheme3m-4.2.2.so
#35 0x00002b4d473a587d in ?? ()
#36 0x00007fff64b12900 in ?? ()
#37 0x00007fff64b12a00 in ?? ()
#38 0x0000000000000007 in ?? ()
#39 0x00002b4d4662e720 in disappeared_binding_symbol () from /usr/local/lib/libmzscheme3m-4.2.2.so
#40 0x00002b4d4665ffd8 in scheme_multiple_values () from /usr/local/lib/libmzscheme3m-4.2.2.so
#41 0x0000000000000004 in ?? ()
#42 0x0000000000000001 in ?? ()
#43 0x00002b4d46211f6c in scheme_do_eval (obj=0x0, num_rands=1194646976, rands=0x7fff64b12d00, get_value=1) at ../../../mzscheme/gc2/../src/eval.c:8095
#44 0x00002b4d462330fc in apply_k () at ../../../mzscheme/gc2/../src/fun.c:2239
#45 0x00002b4d4623f4eb in scheme_top_level_do_worker (k=0x2b4d46233070 <apply_k>, eb=<value optimized out>, new_thread=0, dyn_state=0x0)
    at ../../../mzscheme/gc2/../src/fun.c:2078
#46 0x00002b4d462a0525 in _module_resolve (modidx=0x2b4d47402428, stx=0x0, env=0x0, load_it=1) at ../../../mzscheme/gc2/../src/module.c:2979
#47 0x00002b4d462a3a10 in compute_require_names (menv=0x2b4d474024b8, phase=0x1, load_env=0x2b4d47400998, syntax_idx=0x2b4d47402460)
    at ../../../mzscheme/gc2/../src/module.c:3716
#48 0x00002b4d462ad8a6 in start_module (m=0x2b4d474025c8, env=0x2b4d47400998, restart=0, syntax_idx=0x2b4d47402460, eval_exp=0, eval_run=1, base_phase=0, 
    cycle_list=0x2b4d474026e0) at ../../../mzscheme/gc2/../src/module.c:3781
#49 0x00002b4d462ad93a in start_module (m=0x2b4d47402868, env=0x2b4d47400998, restart=0, syntax_idx=0x2b4d47402720, eval_exp=0, eval_run=1, base_phase=0, 
    cycle_list=0x2b4d47402980) at ../../../mzscheme/gc2/../src/module.c:3788
#50 0x00002b4d462ad93a in start_module (m=0x2b4d47402b08, env=0x2b4d47400998, restart=0, syntax_idx=0x2b4d474029c0, eval_exp=0, eval_run=1, base_phase=0, 
    cycle_list=0x2b4d466600a0) at ../../../mzscheme/gc2/../src/module.c:3788
#51 0x00002b4d462b1c5c in _dynamic_require (argc=<value optimized out>, argv=<value optimized out>, env=0x2b4d47400998, get_bucket=0, phase=<value optimized out>, 
    mod_phase=0, indirect_ok=0, fail_with_error=1, position=-1) at ../../../mzscheme/gc2/../src/module.c:996
#52 0x00002b4d462b29f7 in scheme_dynamic_require (argc=2, argv=0x7fff64b13890) at ../../../mzscheme/gc2/../src/module.c:1061
#53 0x00002b4d4631190e in do_reader (modpath_stx=0x2b4d47402dc0, port=0x2b4d47402c78, stxsrc=0x2b4d47402c58, line=1, col=1, pos=1, get_info=0, ht=0x2b4d4741e2d8, 
    indentation=0x2b4d466600a0, params=0x7fff64b14370) at ../../../mzscheme/gc2/../src/read.c:6041
#54 0x00002b4d463120c4 in read_lang (port=0x2b4d47055348, stxsrc=0x2b4d47054298, line=1, col=1, pos=1, get_info=0, ht=0x2b4d470558d0, indentation=0x2b4d466600a0, 
    params=0x7fff64b14370, init_ch=0) at ../../../mzscheme/gc2/../src/read.c:6199
#55 0x00002b4d46314961 in read_inner_inner (port=0x2b4d47402c78, stxsrc=0x2b4d47402c58, ht=0x2b4d4741e2d8, indentation=0x2b4d466600a0, params=0x7fff64b14370, 
    comment_mode=2, pre_char=-1, table=0x0, get_info=0) at ../../../mzscheme/gc2/../src/read.c:1378
#56 0x00002b4d4631ae81 in _internal_read (port=0x2b4d47402c78, stxsrc=0x2b4d47402c58, crc=<value optimized out>, cant_fail=<value optimized out>, 
    honu_mode=<value optimized out>, recur=0, expose_comment=0, extra_char=-1, init_readtable=0x0, magic_sym=0x0, magic_val=0x0, delay_load_info=0x2b4d47402e18, 
    get_info=0) at ../../../mzscheme/gc2/../src/read.c:2271
#57 0x00002b4d4631b30f in scheme_internal_read_k () at ../../../mzscheme/gc2/../src/read.c:2345
#58 0x00002b4d4623f4eb in scheme_top_level_do_worker (k=0x2b4d4631b240 <scheme_internal_read_k>, eb=<value optimized out>, new_thread=0, dyn_state=0x0)
    at ../../../mzscheme/gc2/../src/fun.c:2078
#59 0x00002b4d46312490 in scheme_internal_read (port=0x2b4d47055348, stxsrc=0x2b4d47054298, crc=<value optimized out>, cantfail=0, 
    honu_mode=<value optimized out>, recur=0, expose_comment=0, pre_char=<value optimized out>, init_readtable=0x0, magic_sym=0x0, magic_val=0x0, 
    delay_load_info=0x2b4d4704fd68) at ../../../mzscheme/gc2/../src/read.c:2379
#60 0x00002b4d462f7c12 in do_load_handler (data=<value optimized out>) at ../../../mzscheme/gc2/../src/portfun.c:4050
#61 0x00002b4d46236599 in scheme_dynamic_wind (pre=0, act=0x2b4d462f7a80 <do_load_handler>, post=0x2b4d462f78b0 <post_load_handler>, jmp_handler=0, 
    data=0x2b4d47402e68) at ../../../mzscheme/gc2/../src/fun.c:7683
#62 0x00002b4d462f7663 in default_load (argc=1180893016, argv=0x2b4d4734de80) at ../../../mzscheme/gc2/../src/portfun.c:4282
#63 0x00002b4d473957a0 in ?? ()
#64 0x0000000000000004 in ?? ()
#65 0x00002b4d4626040d in add_symbol (start=140734882729340, end=0, value=0x0, gc_able=<value optimized out>) at ../../../mzscheme/gc2/../src/codetab.inc:98
#66 0x00002b4d46277215 in on_demand () at ../../../mzscheme/gc2/../src/jit.c:8770
#67 0x00002b4d4739572f in ?? ()
#68 0x0000000000000001 in ?? ()
#69 0x00007fff64b14da8 in ?? ()
#70 0x000000000000001d in ?? ()
#71 0x00002b4d4662e720 in disappeared_binding_symbol () from /usr/local/lib/libmzscheme3m-4.2.2.so
#72 0x00002b4d4665ffd8 in scheme_multiple_values () from /usr/local/lib/libmzscheme3m-4.2.2.so
#73 0x0000000000000000 in ?? ()
(gdb) 

Posted on the users mailing list.