[Gridflow-dev] repeatable segfault in current cvs at grid.c.fcs:384
Claude Heiland-Allen
claudiusmaximus at goto10.org
Wed Apr 26 06:01:21 EDT 2006
Hi all,
Here's a simple patch that segfaults gridflow, the same way each time
claude at minimus ~/Build/gridflow-cvs/gridflow $ gdb pd
GNU gdb 6.4
Copyright 2005 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 -verbose -stderr -lib gridflow -open ../test-store-cast.pd
Starting program: /usr/local/bin/pd -verbose -stderr -lib gridflow -open
../test-store-cast.pd
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 18110)]
input channels = 0, output channels = 0
Pd version 0.39-2
compiled 18:11:34 Mar 30 2006
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 = 0, output channels = 0
tried /home/claude/Build/gridflow-cvs/gridflow/gridflow.pd_linux and
succeeded
setting up Ruby-for-PureData...
tried
/home/claude/Build/gridflow-cvs/gridflow/gridflow/gridflow.pd_linux and
failed
tried /usr/local/lib/pd/extra/gridflow/gridflow.pd_linux and failed
tried /home/claude/Build/gridflow-cvs/gridflow/gridflow.pd_linux and
succeeded
gridflow.pd_linux found itself in /home/claude/Build/gridflow-cvs/gridflow
we are using Ruby version 1.9.0
DIR = "/home/claude/Build/gridflow-cvs/gridflow"
Ruby's path = ["/home/claude/Build/gridflow-cvs/gridflow/..",
"/home/claude/Build/gridflow-cvs/gridflow",
"/home/claude/Build/gridflow-cvs/gridflow/optional/rblti",
"/usr/lib/ruby/site_ruby/1.9", "/usr/lib/ruby/site_ruby/1.9/i686-linux",
"/usr/lib/ruby/site_ruby", "/usr/lib/ruby/1.9",
"/usr/lib/ruby/1.9/i686-linux", "."]
[gf] This is GridFlow 0.8.4 within Ruby version 1.9.0-2006-01-11
[gf] base/main.c was compiled on Apr 26 2006, 10:34:28
[gf] LTI support not found (#<LoadError: no such file to load -- rblti>)
[gf] startup_cpu: using MMX optimisations
[gf] GridFlow::VideoTypeFlags: [:CAPTURE, :TUNER, :TELETEXT, :OVERLAY,
:CHROMAKEY, :CLIPPING, :FRAMERAM, :SCALES, :MONOCHROME, :SUBCAPTURE,
:MPEG_DECODER, :MPEG_ENCODER, :MJPEG_DECODER, :MJPEG_ENCODER]
[gf] GridFlow::VideoTunerFlags: [:PAL, :NTSC, :SECAM, :LOW, :NORM,
:DUMMY5, :DUMMY6, :STEREO_ON, :RDS_ON, :MBS_ON]
[gf] GridFlow::VideoChannelFlags: [:TUNER, :AUDIO]
[gf] GridFlow::VideoPalette: [[:NIL, :GREY, :HI240, :RGB565, :RGB24,
:RGB32, :RGB555, :YUV422, :YUYV, :UYVY, :YUV420, :YUV411, :RAW,
:YUV422P, :YUV411P, :YUV420P, :YUV410P]]
[gf] GridFlow::VideoTunerMode: [:PAL, :NTSC, :SECAM, :AUTO]
tried /home/claude/Build/gridflow-cvs/gridflow/../test-store-cast.pd and
succeeded
pre: 249
pre: 62
pre: 267
pre: -19
pre: 57
pre: 228
pre: -318
pre: 220
pre: 412
pre: -504
pre: -422
pre: 390
pre: -88
pre: 343
pre: 78
pre: -7
pre: -308
pre: -131
pre: -133
pre: -450
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 18110)]
0xb70cfc99 in GridOutlet::send<unsigned char> (this=0x8446150, n=4096,
data=0xb6813020 "") at grid.c.fcs:384
384 for (int i=0; i<n; i++) out[i]=(T)in[i];
Current language: auto; currently c++
(gdb) bt
#0 0xb70cfc99 in GridOutlet::send<unsigned char> (this=0x8446150,
n=4096, data=0xb6813020 "") at grid.c.fcs:384
#1 0xb719d0c3 in GridCast::grin_0<unsigned char> (this=0x82d7b00,
in=0x0, n=0, data=0xb6813020 "") at grid.h.fcs:386
#2 0xb719d1e6 in GridCast::grinw_0<unsigned char> (in=0x0, n=4096,
data=0xb6813020 "") at flow_objects.c.fcs:69
#3 0xb70c5184 in GridInlet::flow<unsigned char> (this=0x83f4860,
mode=4, n=4096, data=0xb6813020 "") at grid.h.fcs:818
#4 0xb70caa31 in GridOutlet::send_direct<unsigned char>
(this=0x84462b0, n=921600, data=0xb6813020 "") at stl_vector.h:462
#5 0xb70cf645 in GridOutlet::send<unsigned char> (this=0x84462b0,
n=921600, data=0x84462b0 "\200«?·E=q`\001") at grid.c.fcs:408
#6 0xb71beab6 in GridStore::grin_0<int> (this=0x82a8070, in=0x83e8a30,
n=1, data=0x84b3d40) at grid.h.fcs:386
#7 0xb71c18e6 in GridStore::grinw_0<int> (in=0x0, n=1, data=0x84b3d40)
at flow_objects.c.fcs:238
#8 0xb70c2090 in GridInlet::from_grid2<int> (this=0x83e8a30,
g=0xbf91d6c0, foo=0) at grid.h.fcs:818
#9 0xb70b910f in GridInlet::from_grid (this=0x83e8a30, g=0xbf91d6c0) at
grid.c.fcs:334
#10 0xb70bf7bd in GridObject::method_missing (this=0x82a8070, argc=2,
argv=0xbf91d9e0) at grid.h.fcs:854
#11 0xb70c0484 in GridObject::method_missing_wrap (argc=2,
argv=0xbf91d9e0, rself=3070094700) at grid.c.fcs:557
#12 0xb7686626 in rb_exec_recursive () from /usr/lib/libruby19.so.1.9
#13 0xb7677ba7 in rb_with_disable_interrupt () from
/usr/lib/libruby19.so.1.9
#14 0xb7677e83 in rb_with_disable_interrupt () from
/usr/lib/libruby19.so.1.9
#15 0xb7678393 in rb_funcall2 () from /usr/lib/libruby19.so.1.9
#16 0xb767702c in rb_with_disable_interrupt () from
/usr/lib/libruby19.so.1.9
#17 0xb7677ebd in rb_with_disable_interrupt () from
/usr/lib/libruby19.so.1.9
#18 0xb7678393 in rb_funcall2 () from /usr/lib/libruby19.so.1.9
#19 0xb70b511c in send_in_2 (h=0xbf91dd30) at main.c.fcs:172
#20 0xb7676cba in rb_ensure () from /usr/lib/libruby19.so.1.9
#21 0xb70b1929 in FObject::send_in (this=0x0, argc=0, argv=0x0) at
main.c.fcs:181
#22 0xb70b1a14 in FObject::send_in_wrap (argc=4, argv=0xbf91dff0,
rself=3070094700) at main.c.fcs:179
#23 0xb7686626 in rb_exec_recursive () from /usr/lib/libruby19.so.1.9
#24 0xb7677ba7 in rb_with_disable_interrupt () from
/usr/lib/libruby19.so.1.9
#25 0xb7677e83 in rb_with_disable_interrupt () from
/usr/lib/libruby19.so.1.9
#26 0xb7678393 in rb_funcall2 () from /usr/lib/libruby19.so.1.9
#27 0xb7f032a4 in BFObject_method_missing_1 (fm=0xbf91e160) at
puredata.c.fcs:215
#28 0xb7676969 in rb_rescue2 () from /usr/lib/libruby19.so.1.9
#29 0xb7f033e6 in BFObject_method_missing0 (self=0xb7f03130, s=0x0,
argc=0, argv=0x0) at puredata.c.fcs:236
#30 0x080aa19d in pd_typedmess (x=0x8302d58, s=0x82deaa0, argc=2,
argv=0x811b468) at m_class.c:749
#31 0x080ac207 in outlet_anything (x=0x0, s=0x82deaa0, argc=2,
argv=0x811b468) at m_obj.c:387
#32 0x080aa19d in pd_typedmess (x=0x82c438c, s=0x82deaa0, argc=2,
argv=0x811b468) at m_class.c:749
#33 0x080aebc8 in binbuf_eval (x=0x0, target=0x82c438c, argc=1,
argv=0xbf91e370) at m_binbuf.c:574
#34 0x0805f7db in message_float (x=0x0, f=0) at g_text.c:300
#35 0x080ac06f in outlet_float (x=0x0, f=-450) at m_obj.c:354
#36 0x080ef5bf in trigger_list (x=0x82c4430, s=0x0, argc=1,
argv=0xbf91e3e0) at x_connective.c:977
#37 0x080efba7 in trigger_float (x=0x0, f=0) at x_connective.c:1024
#38 0x080ac06f in outlet_float (x=0x0, f=-450) at m_obj.c:354
#39 0x080ac06f in outlet_float (x=0x0, f=62) at m_obj.c:354
#40 0x080f4a96 in random_bang (x=0x82cbe88) at x_misc.c:67
#41 0x080abf6b in outlet_bang (x=0x0) at m_obj.c:328
#42 0x080f525a in metro_tick (x=0x8297830) at x_time.c:87
#43 0x080b4edb in m_scheduler () at m_sched.c:355
#44 0x080b77b2 in sys_main (argc=7, argv=0x8238410) at s_main.c:292
#45 0x080c15fe in main (argc=0, argv=0x0) at s_entry.c:27
(gdb)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-store-cast.pd
Url: http://ns.artengine.ca/pipermail/gridflow-dev/attachments/20060426/3502b307/test-store-cast-0001.cc
More information about the Gridflow-dev
mailing list