Menu

#4 SIGSGV bignum/gmp (64bit)

open
nobody
None
5
2009-09-02
2009-09-02
Anonymous
No

I wanted to learn Scheme and a friend suggested Stklos. I downloaded
stklos-0.98.tar.gz from the Homepage, ran "./configure && make && sudo
make install && stklos" and stumbled right into a segfault:

stklos> 100000000000000000000000000000000000000000000
Received a SIGSGV signal.
Try to augment stack size (--stack-size option).
If the problem persists, send a mail to <bugs@stklos.net>

Ubuntu 9.04, uname -a:
Linux myhostname 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34
UTC 2009 x86_64 GNU/Linux

gdb backtracke:

$ gdb stklos
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute
it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run
Starting program: /usr/local/bin/stklos
[Thread debugging using libthread_db enabled]
[New Thread 0x7f30c55af6f0 (LWP 19877)]
* STklos version 0.98
* Copyright (C) 1999-2008 Erick Gallesio - I3S-CNRS/ESSI <eg@essi.fr>
* * [Linux-2.6.28-15-generic-x86_64/pthread]
stklos> 10000000
10000000
stklos> 10000000000000000000000000
10001526999206814891599872
stklos> 100000000000000000000000000000000000000000000

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f30c55af6f0 (LWP 19877)]
0x000000000043c445 in STk_print ()
Current language: auto; currently asm
(gdb) bt
#0 0x000000000043c445 in STk_print ()
#1 0x000000000043be4c in STk_write_star ()
#2 0x000000000044cfee in run_vm ()
#3 0x000000000044e2fc in STk_C_apply ()
#4 0x000000000043d956 in map ()
#5 0x000000000043db5b in STk_for_each ()
#6 0x000000000044cfaa in run_vm ()
#7 0x000000000044e2fc in STk_C_apply ()
#8 0x000000000044cdf3 in run_vm ()
#9 0x000000000044de14 in STk_boot_from_C ()
#10 0x0000000000443b6f in mymain ()
#11 0x00007f30c479e5a6 in __libc_start_main () from /lib/libc.so.6
#12 0x000000000041d339 in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb)

(PS: bugs@stklos.net does not work)

Discussion


Log in to post a comment.