-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flisp segfault on master #2
Comments
What is your locale setting? Also, could you set a breakpoint in |
Woops, deleted last trace with breakpoint, that was from a source tree with my own feeble attempt at a fix ;-) Coming up with a clean trace. |
Wow, this is most odd. Suddenly I can't reproduce anymore. All I did was 'make' and './flisp'... most odd. Even tried on a clean checkout and it works like a charm. I'll investigate some more. |
I can reproduce it: Program received signal SIGSEGV, Segmentation fault. fl_isnumber (f=0x68fa58, v=140737488344120) at flisp.c:736 736 return c->type != wchartype; (gdb) bt #0 fl_isnumber (f=0x68fa58, v=140737488344120) at flisp.c:736 #1 smallp (f=0x68fa58, v=140737488344120) at print.c:180 #2 allsmallp (f=0x68fa58, v=140737488344120) at print.c:218 #3 blockindent (f=0x68fa58, v=140737488344120) at print.c:259 #4 print_pair (f=0x68fa58, v=140737488344120) at print.c:282 #5 0x000000000042b32a in fl_print_child (f=0x68fa58, v=140737488344120) at print.c:483 #6 0x00000000004249bd in fl_print (f=0x68fa58, v=140737488344120) at print.c:852 #7 0x0000000000440a5d in main (argc=1, argv=0x7fffffffdb78) at flmain.c:66
|
I am also getting a segmentation fault.
Hope this helps. Let me know if you need any more info (er, and how to get it...).
|
I just pulled latest trunk and can no longer reproduce this. Thanks! |
Reproduced in master. (gdb) r
Starting program: /home/mike/github/femtolisp/flisp unittest.lsp
Breakpoint 2, fl_raise (e=140737353032295) at flisp.c:166
166 fl_lasterror = e;
(gdb) t
[Current thread is 1 (process 3148)]
(gdb) bt
#0 fl_raise (e=140737353032295) at flisp.c:166
#1 0x0000000000401eae in type_error (fname=0x42453b "apply", expected=0x425173 "function", got=1) at flisp.c:210
#2 0x000000000040d08a in _applyn (n=1) at flisp.c:638
#3 0x000000000040d2fa in fl_applyn (n=1, f=1) at flisp.c:675
#4 0x000000000041d7a5 in main (argc=2, argv=0x7fffffffe2c8) at flmain.c:54
(gdb) c
Continuing.
fatal error:
(
Program received signal SIGSEGV, Segmentation fault.
0x000000000040d788 in fl_isnumber (v=1) at flisp.c:737
737 return c->type != wchartype;
(gdb) bt
#0 0x000000000040d788 in fl_isnumber (v=1) at flisp.c:737
#1 0x0000000000409b92 in smallp (v=1) at print.c:180
#2 0x0000000000409d98 in allsmallp (v=140737353032343) at print.c:218
#3 0x0000000000409f08 in blockindent (v=140737353032295) at print.c:259
#4 0x000000000040a11d in print_pair (f=0x632100, v=140737353032295) at print.c:282
#5 0x000000000040ac9c in fl_print_child (f=0x632100, v=140737353032295) at print.c:483
#6 0x000000000040c289 in fl_print (f=0x632100, v=140737353032295) at print.c:858
#7 0x000000000041d818 in main (argc=2, argv=0x7fffffffe2c8) at flmain.c:59 ubuntu 14.04 LTS 64 bit $ uname -a $ gcc --version |
|
Just in case anyone cares: For me this behavior was caused by |
If this is no longer reproducible or is fixed, we should close this issue. |
Running flisp segfaults on current master (71a1cb6). OS is Ubuntu 12.10, 64 bit. Stacktrace:
(gdb) run
Starting program: /home/kamstrup/Projects/femtolisp/flisp
fatal error:
(
Program received signal SIGSEGV, Segmentation fault.
0x000000000040930b in fl_isnumber (v=) at flisp.c:736
736 return c->type != wchartype;
(gdb) bt full
#0 0x000000000040930b in fl_isnumber (v=) at flisp.c:736
#1 fl_isnumber (v=) at flisp.c:731
No locals.
#2 0x0000000000409398 in smallp (v=1) at print.c:180
No locals.
#3 0x000000000040990c in allsmallp (v=, v@entry=140737353036343) at print.c:218
#4 0x000000000040a064 in blockindent (v=140737353036343) at print.c:259
No locals.
#5 print_pair (v=140737353036343, f=0x627100) at print.c:282
#6 fl_print_child (f=f@entry=0x627100, v=v@entry=140737353036343) at print.c:483
#7 0x000000000040abd4 in fl_print (f=0x627100, v=140737353036343) at print.c:852
#8 0x0000000000401b27 in main (argc=1, argv=0x7fffffffe0a8) at flmain.c:66
The text was updated successfully, but these errors were encountered: