Skip to content

Instantly share code, notes, and snippets.

@mzaffalon
Created August 12, 2015 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzaffalon/3a0e58a3eeecd1054adc to your computer and use it in GitHub Desktop.
Save mzaffalon/3a0e58a3eeecd1054adc to your computer and use it in GitHub Desktop.
segfault on constructing array of Rationals
michele@gulliver:~/local/julia_src$ cat test.jl
[1:10//3]
michele@gulliver:~/local/julia_src$ gdb --args usr/bin/julia-debug ./test.jl
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from usr/bin/julia-debug...done.
(gdb) r
Starting program: /home/michele/local/julia_src/usr/bin/julia-debug ./test.jl
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff1e6b700 (LWP 27330)]
[New Thread 0x7ffff166a700 (LWP 27331)]
[New Thread 0x7fffeee69700 (LWP 27332)]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4d828aa in ?? ()
(gdb) bt
#0 0x00007ffff4d828aa in ?? ()
#1 0x0000000000000001 in ?? ()
#2 0x000000000000000a in ?? ()
#3 0x0000000000000003 in ?? ()
#4 0x00000000024e2140 in ?? ()
#5 0x0000000000000004 in ?? ()
#6 0x00007fffffffcbc0 in ?? ()
#7 0x00000000024e2140 in ?? ()
#8 0x0000000002c02b10 in ?? ()
#9 0x5094df8f4d1d4400 in ?? ()
#10 0x00007fffffffcc58 in ?? ()
#11 0x000000000182af60 in ?? ()
#12 0x0000000000000001 in ?? ()
#13 0x00007fffffffd5e8 in ?? ()
#14 0x000000000071c8d0 in ?? ()
#15 0x00007fffffffca90 in ?? ()
#16 0x00007ffff4d82753 in ?? ()
#17 0x00007fffffffcad0 in ?? ()
#18 0x00007ffff6e1b494 in jl_apply (f=0x1, args=0x182af60, nargs=32767) at julia.h:982
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment