[plt-scheme] Seg fault in 371.3

From: Eric Hanchrow (offby1 at blarg.net)
Date: Sat Jan 5 01:51:06 EST 2008

Linux debian 2.6.15-29-386 #1 PREEMPT Mon Sep 24 17:18:25 UTC 2007 i686 GNU/Linux

Just invoking it with no arguments yields this -- presumably frame 22 is where the action is.

Current directory is ~/doodles/anagrams/scheme/mzscheme/
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/bin/mzscheme 
Welcome to MzScheme v371.3 [3m], Copyright (c) 2004-2007 PLT Scheme Inc.

Program received signal SIGSEGV, Segmentation fault.
0x080a434b in get_bucket (table=0xb7be8e70, key=0xb7d0e628 "0", add=1, b=0x0) at xsrc/hash.c:680
(gdb) bt
#0  0x080a434b in get_bucket (table=0xb7be8e70, key=0xb7d0e628 "0", add=1, b=0x0) at xsrc/hash.c:680
#1  0x080a497d in scheme_bucket_or_null_from_table (table=0xb7d10020, key=0x0, add=0) at xsrc/hash.c:756
#2  0x080a49ac in scheme_bucket_from_table (table=0xb7d10020, key=0xb7d10020 "") at xsrc/hash.c:765
#3  0x0805fcaa in scheme_do_add_global_symbol (env=0xb7be8e94, sym=0xb7d0e628, obj=0x8308dd0, valvar=1, constant=0) at xsrc/env.c:799
#4  0x0805fe14 in scheme_add_global_symbol (sym=0xb7d10020, obj=0xb7d10020, env=0xb7d10020) at xsrc/env.c:834
#5  0x080cece1 in add_single_require (me=0xb7be8f68, base_k=0, idx=0xb7d0c140, orig_env=0xb7be8e94, rt_rn=0xb7be8f04, post_ex_rt_rn=0xb7be8f04, et_rn=0x0, post_ex_et_rn=0x0, dt_rn=0x0, post_ex_dt_rn=0x0, exns=0x0, onlys=0x0, prefix=0x0, iname=0xb7d0e628, orig_ename=0x0, mark_src=0xb7be8f48, unpack_kern=1, copy_vars=1, for_unmarshal=0, can_save_marshal=0, all_simple=0x0, ck=0, rt_data=0x0, et_data=0x0, dt_data=0x0, form=0xb7be8f28, err_src=0xb7be8f48, cki=0xb7be8f48) at xsrc/module.c:6810
#6  0x080cf28c in parse_requires (form=0xb7be8f28, base_modidx=0x82ebba8, env=0xb7be8e94, rn=0xb7be8f04, post_ex_rn=0xb7be8f04, et_rn=0x0, post_ex_et_rn=0x0, dt_rn=0x0, post_ex_dt_rn=0x0, ck=0, data=0x0, et_data=0x0, dt_data=0x0, start=1, expstart=0, redef_modname=0x0, unpack_kern=1, copy_vars=1, can_save_marshal=0, all_simple=0x0) at xsrc/module.c:7182
#7  0x080d0001 in do_namespace_require (env=0xb7d38d30, argc=<value optimized out>, argv=0xb7f70fc8, for_exp=0, copy=1, etonly=0) at xsrc/module.c:985
#8  0x080d0e74 in namespace_require_copy (argc=0, argv=0x0) at xsrc/module.c:1010
#9  0x0807e018 in scheme_do_eval (obj=<value optimized out>, num_rands=1, rands=0xb7f70fc8, get_value=-1) at xsrc/eval.c:7169
#10 0x0815fbc7 in splice_one_expr (expr=0xb7d10020, argc=0, argv=0x0) at xsrc/syntax.c:5270
#11 0x0807e34b in scheme_do_eval (obj=0xb7be9050, num_rands=0, rands=0x0, get_value=-1) at xsrc/eval.c:7577
#12 0x0809d70e in scheme_finish_apply_for_prompt (prompt=0xb7d10020, _prompt_tag=0xb7d10020, proc=0xb7be9050, argc=0, argv=0x0) at xsrc/fun.c:5894
#13 0x0809d856 in scheme_apply_for_prompt (prompt=0xb7be9070, prompt_tag=0xb7be8a6c, proc=0xb7be9050, argc=-1211039712, argv=0x0) at xsrc/fun.c:5965
#14 0x0809e0e9 in call_with_prompt (in_argc=3, in_argv=0xbfd91e3c) at xsrc/fun.c:6212
#15 0x0807e018 in scheme_do_eval (obj=<value optimized out>, num_rands=3, rands=0xbfd91e3c, get_value=-1) at xsrc/eval.c:7169
#16 0x0809e75c in do_call_with_prompt (f=<value optimized out>, data=<value optimized out>, multi=1, top_level=0) at xsrc/fun.c:6436
#17 0x0815fc4d in splice_execute (data=0xb7d10020) at xsrc/syntax.c:5286
#18 0x0807cee7 in scheme_do_eval (obj=0x0, num_rands=-1, rands=0x0, get_value=1) at xsrc/eval.c:7631
#19 0x080818af in eval_k () at xsrc/eval.c:8325
#20 0x08081bd8 in _scheme_eval_compiled (obj=0xb7d10020, env=0x0) at xsrc/eval.c:8359
#21 0x08193a6c in scheme_eval_compiled_sized_string_with_magic (str=0x81bb860 "#~\005371.3\003", len=-101, env=0xb7d38d30, magic_sym=0x0, magic_val=0x0, multi_ok=0) at xsrc/builtin.c:24
#22 0x08193abd in scheme_eval_compiled_sized_string (str=0xb7d10020 "", len=-1211039712, env=0xb7d10020) at xsrc/builtin.c:32
#23 0x08193d19 in scheme_add_embedded_builtins (env=0xb7be8e94) at xsrc/builtin.c:209
#24 0x0806875a in scheme_basic_env () at xsrc/env.c:183
#25 0x0805cc33 in actual_main (argc=1, argv=0xbfd923b4) at xsrc/main.c:2045
#26 0x0805c7d4 in main (argc=-1211039712, argv=0xb7d10020) at xsrc/main.c:2167
(gdb) 
-- 
"That sounds like a bunch of baloney," [Feynman] said. "Give
me something real to do." So we sent him out to buy some office
supplies.
        -- Danny Hillis


Posted on the users mailing list.