[Gridflow-dev] [bug] profiler_dump sefault in rb_big_2comp()

Claude Heiland-Allen claudiusmaximus at goto10.org
Fri Jan 6 12:38:01 EST 2006


Hi all,

Claude Heiland-Allen wrote:
> Also, I ran this patch overnight, and in the morning selected profiler 
> dump, and it segfaulted while printing the report.  The last line 
> printed was something like 34000 microseconds using 0.0022% of the time 
> (which is how I got an estimate of total Gridflow time used being 26 
> minutes).

Here is what top reported just before I hit profiler_dump after another 
all night test:

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 

  1051 claude    15   0 37012  11m 5268 S 20.3  2.2 160:57.53 pd 


Here's the output of pd and gdb:

claude at minimus 
~/ClaudiusMaximus/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned 
$ 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 1051)]
sys_audioapi 5
sys_nmidiin 0, nmidiindev 0
input channels = 0, output channels = 0
Pd version 0.39-1
compiled 05:20:44 Nov  7 2005
port 5401
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" 5401
... connected
opened 0 MIDI input device(s) and 0 MIDI output device(s).
input channels = 0, output channels = 0
tried 
/mnt/minimus/infinity/ClaudiusMaximus/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned/gridflow.pd_linux 
and failed
tried /usr/local/lib/pd/extra/gridflow.pd_linux and succeeded
setting up Ruby-for-PureData...
STACK_END old=0xbfce6ffc; new=0xbfcefffc
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  5 2006, 16:51:08
[gf] startup_cpu: using MMX optimisations
tried 
/mnt/minimus/infinity/ClaudiusMaximus/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned/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/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned/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/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned/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/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned/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/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned/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
tried 
/mnt/minimus/infinity/ClaudiusMaximus/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned/#remap_image.pd_linux 
and failed
tried /usr/local/lib/pd/extra/#remap_image.pd_linux and failed
tried 
/home/claude/ClaudiusMaximus/Goto10/SVN/puredata/pd-patches/claudiusmaximus/ClearSpot/Abstractions/#remap_image.pd_linux 
and failed
tried /home/claude/ClaudiusMaximus/Pd/#remap_image.pd_linux and failed
tried /home/claude/ClaudiusMaximus/Samples/CM1/#remap_image.pd_linux and 
failed
tried 
/home/claude/ClaudiusMaximus/Samples/Technology/#remap_image.pd_linux 
and failed
tried /usr/local/lib/pd/extra/#remap_image.pd_linux and failed
tried 
/mnt/minimus/infinity/ClaudiusMaximus/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned/#remap_image/#remap_image.pd_linux 
and failed
tried /usr/local/lib/pd/extra/#remap_image/#remap_image.pd_linux and failed
tried 
/home/claude/ClaudiusMaximus/Goto10/SVN/puredata/pd-patches/claudiusmaximus/ClearSpot/Abstractions/#remap_image/#remap_image.pd_linux 
and failed
tried /home/claude/ClaudiusMaximus/Pd/#remap_image/#remap_image.pd_linux 
and failed
tried 
/home/claude/ClaudiusMaximus/Samples/CM1/#remap_image/#remap_image.pd_linux 
and failed
tried 
/home/claude/ClaudiusMaximus/Samples/Technology/#remap_image/#remap_image.pd_linux 
and failed
tried /usr/local/lib/pd/extra/#remap_image/#remap_image.pd_linux and failed
tried 
/mnt/minimus/infinity/ClaudiusMaximus/Goto10/SVN/puredata/pd-patches/claudiusmaximus/Scanned/#remap_image.pd 
and failed
tried /usr/local/lib/pd/extra/#remap_image.pd and succeeded
[gf] size = 307200
[gf] shmaddr=0xb71d8000
/usr/lib/ruby/site_ruby/1.9/gridflow/format/main.rb:185: warning: 
instance variable @title not initialized
[New Thread 32769 (LWP 1077)]
[New Thread 16386 (LWP 1078)]
[gf] size = 65536
[gf] shmaddr=0xb7213000
/usr/lib/ruby/site_ruby/1.9/gridflow/format/main.rb:271: warning: 
instance variable @title not initialized
input channels = 2, output channels = 2
/dev/dsp (read/write): Device or resource busy
(now will try write-only...)
/dev/dsp (writeonly): Device or resource busy
/dev/dsp (readonly): Device or resource busy
input channels = 2, output channels = 2
[New Thread 32771 (LWP 1079)]
input channels = 0, output channels = 2
[Thread 32771 (LWP 1079) exited]
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 = 86, fragsize 1024

audiobuffer set to 500 msec
OSS: requested audio buffer size 88200 limited to 65536
opened audio input device /dev/dsp; got 2 channels
bytes per sample = 2
OSS: issuing first ADC 'read' ... ...done.
input channels = 0, output channels = 2
opened /dev/dsp for writing only

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

audiobuffer set to 500 msec
OSS: requested audio buffer size 88200 limited to 65536
[gf] --------------------------------
[gf] microseconds percent pointer  constructor
[gf]            0  0.0000 fdb9993f0 [#pack 2.0 int32]
[gf]            0  0.0000 fdb992208 [#out]
[gf]            0  0.0000 fdb99be02 [#<Class:0xb7344e7c> ...]
[gf]            0  0.0000 fdb9a5038 [gridflow]
[gf]        38744  0.0006 fdb999eae [# rand]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1051)]
0xb7bb6276 in rb_big_2comp () from /usr/lib/libruby19.so.1.9
(gdb) bt
#0  0xb7bb6276 in rb_big_2comp () from /usr/lib/libruby19.so.1.9
#1  0xb7bdf71b in rb_exec_recursive () from /usr/lib/libruby19.so.1.9
#2  0xb7bd11f7 in rb_with_disable_interrupt () from 
/usr/lib/libruby19.so.1.9
#3  0xb7bd14c8 in rb_with_disable_interrupt () from 
/usr/lib/libruby19.so.1.9
#4  0xb7bcb630 in rb_remove_event_hook () from /usr/lib/libruby19.so.1.9
#5  0xb7bcb4fa in rb_remove_event_hook () from /usr/lib/libruby19.so.1.9
#6  0xb7bcb4fa in rb_remove_event_hook () from /usr/lib/libruby19.so.1.9
#7  0xb7bcaf38 in rb_remove_event_hook () from /usr/lib/libruby19.so.1.9
#8  0xb7bcec9d in rb_need_block () from /usr/lib/libruby19.so.1.9
#9  0xb7bcf379 in rb_yield () from /usr/lib/libruby19.so.1.9
#10 0xb7bb28d7 in rb_ary_each () from /usr/lib/libruby19.so.1.9
#11 0xb7bdf73e in rb_exec_recursive () from /usr/lib/libruby19.so.1.9
#12 0xb7bd11f7 in rb_with_disable_interrupt () from 
/usr/lib/libruby19.so.1.9
#13 0xb7bd14c8 in rb_with_disable_interrupt () from 
/usr/lib/libruby19.so.1.9
#14 0xb7bcb630 in rb_remove_event_hook () from /usr/lib/libruby19.so.1.9
#15 0xb7bca91e in rb_remove_event_hook () from /usr/lib/libruby19.so.1.9
#16 0xb7bd0d33 in rb_with_disable_interrupt () from 
/usr/lib/libruby19.so.1.9
#17 0xb7bd14c8 in rb_with_disable_interrupt () from 
/usr/lib/libruby19.so.1.9
#18 0xb7bd1943 in rb_funcall2 () from /usr/lib/libruby19.so.1.9
#19 0xb78bca9b in send_in_2 (h=0xbfa29a50) at main.c.fcs:176
#20 0xb7bd035a in rb_ensure () from /usr/lib/libruby19.so.1.9
#21 0xb78bcc66 in FObject::send_in (this=0x8291d90, argc=2, 
argv=0xbfa29d00) at main.c.fcs:185
#22 0xb78bcbc8 in FObject::send_in_wrap (argc=2, argv=0xbfa29d00, 
rself=3073679472) at main.c.fcs:183
#23 0xb7bdf736 in rb_exec_recursive () from /usr/lib/libruby19.so.1.9
#24 0xb7bd11f7 in rb_with_disable_interrupt () from 
/usr/lib/libruby19.so.1.9
#25 0xb7bd14c8 in rb_with_disable_interrupt () from 
/usr/lib/libruby19.so.1.9
#26 0xb7bd1943 in rb_funcall2 () from /usr/lib/libruby19.so.1.9
#27 0xb7f12ee1 in BFObject_method_missing_1 (fm=0xbfa29e80) at 
puredata.c.fcs:227
#28 0xb7bd0009 in rb_rescue2 () from /usr/lib/libruby19.so.1.9
#29 0xb7f13051 in BFObject_method_missing (bself=0x82919a8, winlet=0, 
selector=0x82bf1c0, ac=0, at=0x81266e8) at puredata.c.fcs:248
#30 0xb7f1307c in BFObject_method_missing0 (self=0x82919a8, s=0x82bf1c0, 
argc=0, argv=0x81266e8) at puredata.c.fcs:256
#31 0x080a53b6 in pd_typedmess (x=0x82919a8, s=0xb7a9de4c, argc=0, 
argv=0x81266e8) at m_class.c:749
#32 0x080a8894 in binbuf_eval (x=0xb7a9de4c, target=0x82919a8, argc=0, 
argv=0x0) at m_binbuf.c:574
#33 0x080b0cf0 in socketreceiver_read (x=0x82432a0, fd=0) at s_inter.c:540
#34 0x080b28bf in sys_domicrosleep (microsec=-1213604276, pollem=1) at 
s_inter.c:180
#35 0x080b24fe in sys_pollgui () at s_inter.c:823
#36 0x080ad578 in m_scheduler () at m_sched.c:466
#37 0x080b80db in main (argc=-1213604276, argv=0xb7a9de4c) at s_entry.c:27
(gdb)



More information about the Gridflow-dev mailing list