[Gridflow-dev] segmentation faults with pd-0.39-test6

Claude Heiland-Allen claudiusmaximus at goto10.org
Wed Aug 24 09:38:35 EDT 2005


Hi all,

Seems to be a problem with Ruby's GC.  This happens about 70% of the 
time when starting Pd, I find it strange that it doesn't happen 100% of 
the time or 0% of the time, I guess threading is involved.


$ ./configure --debug --debug-harder
$ make
# make install
# ldconfig -v

$ pd
input channels = 2, output channels = 2
Pd version 0.39 TEST 6
compiled 21:28:05 Aug 22 2005
port 5400
TCL_LIBRARY="/usr/local/lib/pd/tcl/library" 
TK_LIBRARY="/usr/local/lib/pd/tk/lib
rary"  "/usr/local/lib/pd/bin/pd-gui" 5400
Waiting for connection request...
... connected
opened 0 MIDI input device(s) and 0 MIDI output device(s).
input channels = 2, output channels = 2
opened /dev/dsp for reading and writing

opened audio output on /dev/dsp; got 2 channels
bytes per sample = 2
setting nfrags = 8, fragsize 1024

audiobuffer set to 50 msec
OSS: requested audio buffer size 8820 limited to 8192
opened audio input device /dev/dsp; got 2 channels
bytes per sample = 2
OSS: issuing first ADC 'read' ... ...done.
tried /home/claude/gridflow.pd_linux and failed
tried /usr/local/lib/pd/extra/gridflow.pd_linux and succeeded
setting up Ruby-for-PureData...

STACK_END old=0xbfac3ffc; new=0xbfacfffc
we are using Ruby version 1.8.2
(done)
[gf] This is GridFlow 0.8.1 within Ruby version 1.8.2
[gf] base/main.c was compiled on Aug 24 2005, 13:36:54
pd_gui: pd process exited
Segmentation fault (core dumped)

$ gdb /usr/local/bin/pd core
GNU gdb 6.3
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 "i686-pc-linux-gnu"...Using host libthread_db 
library
  "/lib/libthread_db.so.1".

Core was generated by `pd'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /usr/lib/libasound.so.2...done.
Loaded symbols for /usr/lib/libasound.so.2
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib/libjack.so.0...done.
Loaded symbols for /usr/lib/libjack.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/local/lib/pd/extra/gridflow.pd_linux...done.
Loaded symbols for /usr/local/lib/pd/extra/gridflow.pd_linux
Reading symbols from /usr/lib/libruby18.so.1.8...done.
Loaded symbols for /usr/lib/libruby18.so.1.8
Reading symbols from 
/usr/lib/gcc/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.
5...done.
Loaded symbols for 
/usr/lib/gcc/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5
Reading symbols from 
/usr/lib/gcc/i686-pc-linux-gnu/3.3.5-20050130/libgcc_s.so.1
...done.
Loaded symbols for 
/usr/lib/gcc/i686-pc-linux-gnu/3.3.5-20050130/libgcc_s.so.1
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from 
/usr/lib/ruby/site_ruby/1.8/i686-linux/gridflow.so...done.
Loaded symbols for /usr/lib/ruby/site_ruby/1.8/i686-linux/gridflow.so
Reading symbols from /usr/lib/libusb-0.1.so.4...done.
Loaded symbols for /usr/lib/libusb-0.1.so.4
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libSDL-1.2.so.0...done.
Loaded symbols for /usr/lib/libSDL-1.2.so.0
Reading symbols from /usr/lib/libaa.so.1...done.
Loaded symbols for /usr/lib/libaa.so.1
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng.so.3...done.
Loaded symbols for /usr/lib/libpng.so.3
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libmpeg3.so...done.
Loaded symbols for /usr/lib/libmpeg3.so
Reading symbols from /usr/lib/libquicktime.so.0...done.
Loaded symbols for /usr/lib/libquicktime.so.0
Reading symbols from /usr/lib/libglib-1.2.so.0...done.
Loaded symbols for /usr/lib/libglib-1.2.so.0
Reading symbols from /usr/lib/libaudio.so.2...done.
Loaded symbols for /usr/lib/libaudio.so.2
Reading symbols from /usr/lib/libXt.so.6...done.
Loaded symbols for /usr/lib/libXt.so.6
Reading symbols from /usr/lib/libcaca.so.0...done.
Loaded symbols for /usr/lib/libcaca.so.0
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libgpm.so.1...done.
Loaded symbols for /lib/libgpm.so.1
Reading symbols from /usr/lib/liba52.so.0...done.
Loaded symbols for /usr/lib/liba52.so.0
Reading symbols from /usr/lib/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libSM.so.6...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...done.
Loaded symbols for /usr/lib/libICE.so.6
#0  0xb7c74cd3 in rb_source_filename () from /usr/lib/libruby18.so.1.8
(gdb) where
#0  0xb7c74cd3 in rb_source_filename () from /usr/lib/libruby18.so.1.8
#1  0xb7c75ee6 in rb_gc_mark_frame () from /usr/lib/libruby18.so.1.8
#2  0xb7c748e9 in rb_newobj () from /usr/lib/libruby18.so.1.8
#3  0xb7c9de20 in rb_node_newnode () from /usr/lib/libruby18.so.1.8
#4  0xb7c9e7a5 in rb_node_newnode () from /usr/lib/libruby18.so.1.8
#5  0xb7c9952a in ruby_yyparse () from /usr/lib/libruby18.so.1.8
#6  0xb7c9a2da in ruby_yyparse () from /usr/lib/libruby18.so.1.8
#7  0xb7cb8258 in ruby_init_loadpath () from /usr/lib/libruby18.so.1.8
#8  0xb7cb8517 in rb_load_file () from /usr/lib/libruby18.so.1.8
#9  0xb7c63692 in rb_load () from /usr/lib/libruby18.so.1.8
#10 0xb7c642c5 in rb_require_safe () from /usr/lib/libruby18.so.1.8
#11 0xb7c63cbb in rb_f_require () from /usr/lib/libruby18.so.1.8
#12 0xb7c6e78b in rb_throw () from /usr/lib/libruby18.so.1.8
#13 0xb7c60ff5 in rb_with_disable_interrupt () from 
/usr/lib/libruby18.so.1.8
#14 0xb7c618ab in rb_with_disable_interrupt () from 
/usr/lib/libruby18.so.1.8
#15 0xb7c5c256 in rb_Array () from /usr/lib/libruby18.so.1.8
#16 0xb7c636ff in rb_load () from /usr/lib/libruby18.so.1.8
#17 0xb7c642c5 in rb_require_safe () from /usr/lib/libruby18.so.1.8
#18 0xb7c63cbb in rb_f_require () from /usr/lib/libruby18.so.1.8
#19 0xb7c6e78b in rb_throw () from /usr/lib/libruby18.so.1.8
#20 0xb7c60ff5 in rb_with_disable_interrupt () from 
/usr/lib/libruby18.so.1.8
#21 0xb7c618ab in rb_with_disable_interrupt () from 
/usr/lib/libruby18.so.1.8
#22 0xb7c5c256 in rb_Array () from /usr/lib/libruby18.so.1.8
#23 0xb7c5b8c1 in rb_Array () from /usr/lib/libruby18.so.1.8
#24 0xb7c6295e in rb_frame_last_func () from /usr/lib/libruby18.so.1.8
#25 0xb7b439c0 in ?? ()
#26 0xb7b2c694 in ?? ()
#27 0x00000001 in ?? ()
#28 0x00000000 in ?? ()
#29 0xb7ce9b6c in ?? () from /usr/lib/libruby18.so.1.8
#30 0x00000004 in ?? ()
#31 0x00000000 in ?? ()
#32 0xb7b2c694 in ?? ()
#33 0xb7b44d20 in ?? ()
#34 0x00000000 in ?? ()
#35 0x00000000 in ?? ()
#36 0x00000000 in ?? ()
#37 0xb7ce9b6c in ?? () from /usr/lib/libruby18.so.1.8
#38 0x00000004 in ?? ()
#39 0x00000000 in ?? ()
#40 0xbf8932d8 in ?? ()
#41 0xbf893170 in ?? ()
#42 0xb7c62623 in rb_frame_last_func () from /usr/lib/libruby18.so.1.8
#43 0x00000000 in ?? ()
#44 0xb7e29382 in pthread_mutex_unlock () from /lib/libpthread.so.0
#45 0xb7c584a2 in rb_eval_string () from /usr/lib/libruby18.so.1.8
#46 0xb79948e6 in Init_gridflow () at main.c.fcs:611
#47 0xb7c519ab in dln_load () from /usr/lib/libruby18.so.1.8
#48 0xb7c64253 in rb_require_safe () from /usr/lib/libruby18.so.1.8
#49 0xb7c63cbb in rb_f_require () from /usr/lib/libruby18.so.1.8
#50 0xb7c6e78b in rb_throw () from /usr/lib/libruby18.so.1.8
#51 0xb7c60ff5 in rb_with_disable_interrupt () from 
/usr/lib/libruby18.so.1.8
#52 0xb7c618ab in rb_with_disable_interrupt () from 
/usr/lib/libruby18.so.1.8
#53 0xb7c5c256 in rb_Array () from /usr/lib/libruby18.so.1.8
#54 0xb7c5b8c1 in rb_Array () from /usr/lib/libruby18.so.1.8
#55 0xb7c6295e in rb_frame_last_func () from /usr/lib/libruby18.so.1.8
#56 0xb7b439c0 in ?? ()
#57 0xb7b33aac in ?? ()
#58 0x00000001 in ?? ()
#59 0xb7cbb646 in st_lookup () from /usr/lib/libruby18.so.1.8
#60 0xb7c584a2 in rb_eval_string () from /usr/lib/libruby18.so.1.8
#61 0xb7f803f8 in gridflow_setup () at puredata.c.fcs:757
#62 0x08097562 in sys_load_lib (dirname=0x820bc00 "/home/claude",
     classname=0xb7cfabac "") at s_loader.c:162
#63 0x08092ea2 in glob_initfromgui (dummy=0x81f4fa0, s=0x82009d8, argc=23,
     argv=0x80ee6e8) at s_main.c:218
#64 0x0808c55e in pd_typedmess (x=0x81f4fa0, s=0x0, argc=23, argv=0x80ee6e8)
     at m_class.c:665
#65 0x0808eecf in binbuf_eval (x=0xbf899000, target=0x81f4fa0, argc=0,
     argv=0x0) at m_binbuf.c:574
#66 0x08094c1f in socketreceiver_read (x=0x820b258, fd=4) at s_inter.c:539
#67 0x080943ff in sys_domicrosleep (microsec=-1081503744, pollem=1)
     at s_inter.c:180
#68 0x080952a0 in sys_pollgui () at s_inter.c:822
#69 0x080929fb in m_scheduler () at m_sched.c:466
#70 0x0809871b in main (argc=-1081503744, argv=0xbf899000) at s_entry.c:27
(gdb)


Claude



More information about the Gridflow-dev mailing list