[gambit-list] print vs. display segfault

Christian Jaeger christian at pflanze.mine.nu
Thu Apr 26 12:17:57 EDT 2007


On my b21 installation, when loading it into gsc, it never segfaults.
When running it through gsi-script, it does segfault. Albeit in another
function for me (not really surprising), always in mark_continuation:

0xb7c99c10 in mark_continuation () from
/usr/local/Gambit-C/current/lib/libgambc.so

but the stack seems corrupted anyway:
> bt
#0  0xb7c32c10 in mark_continuation () from
/usr/local/Gambit-C/current/lib/libgambc.so
#1  0x00000016 in ?? ()
#2  0x000b7973 in ?? ()
#3  0x00000000 in ?? ()
#4  0x0000001a in ?? ()
#5  0x00000000 in ?? ()
#6  0xb7ef6680 in completed.1 () from
/usr/local/Gambit-C/current/lib/libgambc.so
#7  0xb7ef2020 in __JCR_LIST__ () from
/usr/local/Gambit-C/current/lib/libgambc.so
#8  0x00000000 in ?? ()
#9  0x00000000 in ?? ()
#10 0x00000002 in ?? ()
#11 0xb7c319c3 in ___garbage_collect () from
/usr/local/Gambit-C/current/lib/libgambc.so
#12 0x00000000 in ?? ()
....
#697 0x00000000 in ?? ()
#698 0x00000000 in ?? ()
#699 0xb7b529f8 in ?? ()
#700 0xbfc1a3a4 in ?? ()
#701 0xb7f153b4 in _dl_map_object () from /lib/ld-linux.so.2

gdb /usr/local/Gambit-C/current/bin/gsi
..
run
..
> (load "printsegvbug2script.scm")
"/home/chris/schemedevelopment/gambit/work/printsegvbug2script.scm"
> (main)

Program received signal SIGSEGV, Segmentation fault.
0xb7c59c10 in mark_continuation () from
/usr/local/Gambit-C/current/lib/libgambc.so
(gdb)

but :

chris at elvis-5 work > gdb /usr/local/Gambit-C/current/bin/gsc
GNU gdb 6.3-debian
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 "i386-linux"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/Gambit-C/4.0b21/bin/gsc
Failed to read a valid object file image from memory.
Gambit Version 4.0 beta 21

> (load "printsegvbug2script.scm")
"/home/chris/schemedevelopment/gambit/work/printsegvbug2script.scm"
> (main)
(time (let lp ((count 20000)) (or (= 0 count) (begin (sql-parse-object
(make-string 50 #\a)) (lp (- count 1))))))
    7667 ms real time
    7668 ms cpu time (7628 user, 40 system)
    662 collections accounting for 2259 ms real time (2280 user, 4 system)
    452458088 bytes allocated
    119 minor faults
    no major faults
#t
> (main)
..
> (main)
..

never segfaults





More information about the Gambit-list mailing list