[racket-dev] Segmentation fault 11?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Sep 18 08:59:33 EDT 2012

I wasn't able to replicate the crash. Does it happen consistently for
you in v5.3? In v5.3.0.24?

At Mon, 17 Sep 2012 21:07:43 -0600, Danny Yoo wrote:
> I'm seeing weirdness when trying to import Dave Herman's memoize
> package on Racket 5.3:
> 
> ;;;;;;;;;;;
> > (require (planet dherman/memoize:3:1))
> WARNING: collected information for key multiple times: '(index-entry
> (mod-path "(planet schematics/sake)")); values: Segmentation fault: 11
> ;;;;;;;;;;;
> 
> I'm on a Macbook Air running 10.7.
> 
> 
> 
> 
> The following includes the stack trace I'm seeing under gdb.  What
> else can I do to help with debugging information?
> 
> #################################
> (gdb) 204-99-169-77:~ dyoo$ gdb racket
> GNU gdb 6.3.50-20050815 (Apple version gdb-1820) (Sat Jun 16 02:40:11 UTC 2012)
> Copyright 2004 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 "x86_64-apple-darwin"...Reading symbols for
> shared libraries ... done
> 
> (gdb) handle SIGSEGV nostop noprint
> Signal        Stop	Print	Pass to program	Description
> SIGSEGV       No	No	Yes		Segmentation fault
> (gdb) run
> Starting program: /Applications/Racket v5.3/bin/racket
> Welcome to Racket v5.3.
> > (require (planet dherman/memoize:3:1))
> Reading symbols for shared libraries .. done
> Reading symbols for shared libraries . done
> WARNING: collected information for key multiple times: '(mod-path
> "(planet schematics/sake)"); values: '#(("Build files") (mod-path
> "(planet schematics/sake)") (2)
> #<path:/Users/dyoo/Library/Racket/planet/300/5.3/cache/schematics/sake.plt/1/0/
> doc/sake/Build_files.html>
> #t) '#(("The Sake API") (mod-path "(planet schematics/sake)") (3)
> #<path:/Users/dyoo/Library/Racket/planet/300/5.3/cache/schematics/sake.plt/1/0/
> doc/sake/The_Sake_API.html>
> #t)
> WARNING: collected information for key multiple times: '(index-entry
> (mod-path "(planet schematics/sake)")); values:
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x2566d2f4
> 0x002142fb in chaperone_struct_ref ()
> (gdb) bt
> #0  0x002142fb in chaperone_struct_ref ()
> #1  0x001ad91c in setup_graph_table ()
> #2  0x001ad934 in setup_graph_table ()
> #3  0x001ad74b in setup_graph_table ()
> #4  0x001ad934 in setup_graph_table ()
> #5  0x001ad74b in setup_graph_table ()
> #6  0x001ad74b in setup_graph_table ()
> #7  0x001ad6c0 in setup_graph_table ()
> #8  0x001b6efb in print_to_string ()
> #9  0x001b7d55 in print_to_string_k ()
> #10 0x00075b1e in scheme_top_level_do_worker ()
> #11 0x00075d48 in scheme_top_level_do ()
> #12 0x0004743d in error_write_to_string_w_max ()
> #13 0x00047566 in scheme_make_provided_string ()
> #14 0x001fd398 in scheme_do_format ()
> #15 0x001fd9b7 in sch_eprintf ()
> #16 0x00367d6d in ?? ()
> #17 0x0007bf7f in _apply_native ()
> #18 0x0008206d in scheme_apply_chaperone ()
> #19 0x0006043b in _scheme_apply_multi_from_native ()
> #20 0x011f663c in ?? ()
> #21 0x0005ccfe in scheme_do_eval ()
> #22 0x00060329 in _scheme_apply_multi_from_native ()
> #23 0x011f89a8 in ?? ()
> #24 0x0005ccfe in scheme_do_eval ()
> #25 0x00060529 in _scheme_apply_from_native ()
> #26 0x00366f20 in ?? ()
> #27 0x00357ac4 in ?? ()
> #28 0x0005ccfe in scheme_do_eval ()
> #29 0x00060329 in _scheme_apply_multi_from_native ()
> #30 0x00367962 in ?? ()
> #31 0x00357ac4 in ?? ()
> #32 0x0005ccfe in scheme_do_eval ()
> #33 0x0007d718 in scheme_finish_apply_for_prompt ()
> #34 0x0007d8cc in scheme_apply_for_prompt ()
> #35 0x0008838f in call_with_prompt ()
> #36 0x003509d3 in ?? ()
> #37 0x003551d4 in ?? ()
> #38 0x00356e84 in ?? ()
> #39 0x0005ccfe in scheme_do_eval ()
> #40 0x0007d718 in scheme_finish_apply_for_prompt ()
> #41 0x0007d8cc in scheme_apply_for_prompt ()
> #42 0x0008838f in call_with_prompt ()
> #43 0x003509d3 in ?? ()
> #44 0x011f6364 in ?? ()
> #45 0x0005ccfe in scheme_do_eval ()
> #46 0x000760ba in apply_k ()
> #47 0x00075c78 in scheme_top_level_do_worker ()
> #48 0x00075ee4 in scheme_apply_thread_thunk ()
> #49 0x00243c4d in start_child ()
> #50 0x00247b5d in make_subprocess ()
> #51 0x00247d96 in scheme_thread_w_details ()
> #52 0x00247c5b in scheme_thread_w_details ()
> Previous frame inner to this frame (gdb could not unwind past this frame)
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev

Posted on the dev mailing list.