[Gridflow-dev] [bug] "( 1 1 )"--[#store] causes segfault

Claude Heiland-Allen claudiusmaximus at goto10.org
Wed Jan 4 20:57:51 EST 2006


Hi all, and Happy New Year,

This patch segfaults in Gridflow (fresh "cvs update -d") when you click 
on the msg.

----
#N canvas 0 0 450 300 10;
#X obj 112 79 #store;
#X msg 112 51 ( 1 1 );
#X connect 1 0 0 0;
----


Claude

PS:  GDB backtraces without --enable-debug, I will recompile tomorrow, 
need sleep...


$ gdb pd
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".

(gdb) run
Starting program: /usr/local/bin/pd
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 17295)]
sys_audioapi 5
sys_nmidiin 0, nmidiindev 0
input channels = 2, output channels = 2
Pd version 0.39-1
compiled 05:20:44 Nov  7 2005
port 5400
Waiting for connection request...

TCL_LIBRARY="/usr/local/lib/pd/tcl/library" 
TK_LIBRARY="/usr/local/lib/pd/tk/library" 
"/usr/local/lib/pd/bin/pd-gui" 5400
... connected
opened 0 MIDI input device(s) and 0 MIDI output device(s).
input channels = 2, output channels = 2
tried /mnt/minimus/infinity/ClaudiusMaximus/gridflow.pd_linux and failed
tried /usr/local/lib/pd/extra/gridflow.pd_linux and succeeded
setting up Ruby-for-PureData...
STACK_END old=0xbfc06ffc; new=0xbfc0fffc
we are using Ruby version 1.9.0
(done)
[gf] This is GridFlow 0.8.1 within Ruby version 1.9.0
[gf] base/main.c was compiled on Jan  4 2006, 21:47:29
[gf] startup_cpu: using MMX optimisations
tried /mnt/minimus/infinity/ClaudiusMaximus/iemlib1.pd_linux and failed
tried /usr/local/lib/pd/extra/iemlib1.pd_linux and succeeded
iemlib1 (R-1.16) library loaded!   (c) Thomas Musil 05.2005
    musil at iem.at iem KUG Graz Austria
tried /mnt/minimus/infinity/ClaudiusMaximus/iemlib2.pd_linux and failed
tried /usr/local/lib/pd/extra/iemlib2.pd_linux and succeeded
iemlib2 (R-1.16) library loaded!   (c) Thomas Musil 05.2005
    musil at iem.at iem KUG Graz Austria
tried /mnt/minimus/infinity/ClaudiusMaximus/iem_mp3.pd_linux and failed
tried /usr/local/lib/pd/extra/iem_mp3.pd_linux and succeeded
iem_mp3 (R-1.16) library loaded!   (c) Thomas Musil 05.2005
    musil at iem.at iem KUG Graz Austria
tried /mnt/minimus/infinity/ClaudiusMaximus/iem_t3_lib.pd_linux and failed
tried /usr/local/lib/pd/extra/iem_t3_lib.pd_linux and succeeded
iem_t3_lib (R-1.16) library loaded!   (c) Gerhard Eckel, Thomas Musil 
05.2005
    musil at iem.at iem KUG Graz Austria
tried /mnt/minimus/infinity/ClaudiusMaximus/PDContainer.pd_linux and failed
tried /usr/local/lib/pd/extra/PDContainer.pd_linux and succeeded

PD-Container, Version: 0.2, by Georg Holzmann <grh at mur.at>, 2004-2005

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 17295)]
0xb7c0b0d6 in rb_rescue2 () from /usr/lib/libruby19.so.1.9
(gdb) bt
#0  0xb7c0b0d6 in rb_rescue2 () from /usr/lib/libruby19.so.1.9
#1  0xb7f4ed6b in BFObject_method_missing0 (self=0xb7c0afca, s=0x7, 
argc=7, argv=0x7) at puredata.c.fcs:248
#2  0x080a53b6 in pd_typedmess (x=0x828b490, s=0x0, argc=3, 
argv=0x8126710) at m_class.c:749
#3  0x080a6d07 in outlet_anything (x=0xb7c0afca, s=0x8297db0, argc=3, 
argv=0x8126710) at m_obj.c:387
#4  0x080a53b6 in pd_typedmess (x=0x82a102c, s=0x0, argc=3, 
argv=0x8126710) at m_class.c:749
#5  0x080a8894 in binbuf_eval (x=0x7, target=0x82a102c, argc=1, 
argv=0xbfd642b8) at m_binbuf.c:574
#6  0x080668ac in text_click (z=0x82a1010, glist=0x8249470, xpix=152, 
ypix=56, shift=0, alt=-1076477256, dbl=0, doit=136974380) at g_text.c:300
#7  0x08082a15 in canvas_doclick (x=0x8249470, xpos=152, ypos=56, 
which=1, mod=0, doit=1) at g_editor.c:758
#8  0x080875db in canvas_mousedown (x=0x7, xpos=0, ypos=0, which=0, 
mod=0) at g_editor.c:1252
#9  0x080a54ed in pd_typedmess (x=0x8249470, s=0x0, argc=136615024, 
argv=0x43180000) at m_class.c:728
#10 0x080a53b6 in pd_typedmess (x=0x82a1080, s=0x0, argc=4, 
argv=0x81266e8) at m_class.c:749
#11 0x080a8894 in binbuf_eval (x=0x7, target=0x82a1080, argc=0, 
argv=0x0) at m_binbuf.c:574
#12 0x080b0cf0 in socketreceiver_read (x=0x82432a0, fd=0) at s_inter.c:540
#13 0x080b28bf in sys_domicrosleep (microsec=7, pollem=1) at s_inter.c:180
#14 0x080b1f58 in sys_microsleep (microsec=7) at s_inter.c:202
#15 0x080ad6cf in m_scheduler () at m_sched.c:487
#16 0x080b80db in main (argc=7, argv=0x7) at s_entry.c:27





Also, adding a loadbang gives this backtrace on load:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 17368)]
0xb7c360d6 in rb_rescue2 () from /usr/lib/libruby19.so.1.9
(gdb) bt
#0  0xb7c360d6 in rb_rescue2 () from /usr/lib/libruby19.so.1.9
#1  0xb7f79d6b in BFObject_method_missing0 (self=0xb7c35fca, 
s=0x700a7d7b, argc=1879735675, argv=0x700a7d7b) at puredata.c.fcs:248
#2  0x080a53b6 in pd_typedmess (x=0x82a1068, s=0x0, argc=3, 
argv=0x8126700) at m_class.c:749
#3  0x080a6d07 in outlet_anything (x=0xb7c35fca, s=0x8297db0, argc=3, 
argv=0x8126700) at m_obj.c:387
#4  0x080a53b6 in pd_typedmess (x=0x831bbe4, s=0x0, argc=3, 
argv=0x8126700) at m_class.c:749
#5  0x080a8894 in binbuf_eval (x=0x700a7d7b, target=0x831bbe4, argc=0, 
argv=0x0) at m_binbuf.c:574
#6  0x08065035 in message_bang (x=0x700a7d7b) at g_text.c:293
#7  0x080a46bf in pd_bang (x=0x700a7d7b) at m_pd.c:269
#8  0x080a6a9b in outlet_bang (x=0xb7c35fca) at m_obj.c:328
#9  0x080a54ed in pd_typedmess (x=0x8249498, s=0x0, argc=136615064, 
argv=0x0) at m_class.c:728
#10 0x080a5897 in pd_vmess (x=0x8249498, sel=0x700a7d7b, fmt=0x81133a2 
"") at m_class.c:784
#11 0x0805b1bd in canvas_loadbang (x=0x82fe890) at g_canvas.c:1053
#12 0x080a54ed in pd_typedmess (x=0x82fe890, s=0x0, argc=137357456, 
argv=0xb7e1f3b1) at m_class.c:728
#13 0x080a5897 in pd_vmess (x=0x82fe890, sel=0x700a7d7b, fmt=0x81133a2 
"") at m_class.c:784
#14 0x080a469f in pd_doloadbang () at m_pd.c:263
#15 0x080ac7fe in glob_evalfile (ignore=0x822cfa0, name=0x82b0f20, 
dir=0x0) at m_binbuf.c:1212
#16 0x080a5570 in pd_typedmess (x=0x822cfa0, s=0x0, argc=136592632, 
argv=0x3e7) at m_class.c:732
#17 0x080a8894 in binbuf_eval (x=0x700a7d7b, target=0x822cfa0, argc=0, 
argv=0x0) at m_binbuf.c:574
#18 0x080b0cf0 in socketreceiver_read (x=0x82432a0, fd=0) at s_inter.c:540
#19 0x080b28bf in sys_domicrosleep (microsec=1879735675, pollem=1) at 
s_inter.c:180
#20 0x080b1f58 in sys_microsleep (microsec=1879735675) at s_inter.c:202
#21 0x080ad6cf in m_scheduler () at m_sched.c:487
#22 0x080b80db in main (argc=1879735675, argv=0x700a7d7b) at s_entry.c:27
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: #store-uninitialized-test.pd
Url: http://ns.artengine.ca/pipermail/gridflow-dev/attachments/20060105/eb932dc1/store-uninitialized-test.cc


More information about the Gridflow-dev mailing list