[Gridflow-dev] #transpose crashes

Claude Heiland-Allen claudiusmaximus at goto10.org
Wed Jul 5 21:29:00 EDT 2006


Hi all,

the attached patch crashes Pd+Gridflow very reliably

"grid[3,400,600,2]"
 |
[#transpose 0 -1]
 |
[#transpose 0 -1]
 |
{segfault}

pd 0.39-2 from msp's site

gridflow fresh cvs update -dP ./configure'd with --debug

--------
(gdb) frame
#0  0xb74742ac in GridTranspose::grin_0<int> (this=0x82e0a30,
in=0x82e1150, n=1440000, data=0xb67c4020) at flow_objects.c.fcs:1054
1054                                            COPY(res
+((c*nb+b)*na+a)*nd,
(gdb) info frame
Stack level 0, frame at 0xbf524e80:
 eip = 0xb74742ac in void GridTranspose::grin_0<int>(GridInlet*, long,
int*) (flow_objects.c.fcs:1054); saved eip 0xb744dab5
 called by frame at 0xbf524ea0
 source language c++.
 Arglist at 0xbf524e78, args: this=0x82e0a30, in=0x82e1150, n=1440000,
data=0xb67c4020
 Locals at 0xbf524e78, Previous frame's sp is 0xbf524e80
 Saved registers:
  ebx at 0xbf524e6c, ebp at 0xbf524e78, esi at 0xbf524e70, edi at
0xbf524e74, eip at 0xbf524e7c
(gdb) list
1049            int prod = na*nb*nc*nd;
1050            for (; n; n-=prod, data+=prod) {
1051                    for (long a=0; a<na; a++)
1052                            for (long b=0; b<nb; b++)
1053                                    for (long c=0; c<nc; c++)
1054                                            COPY(res
+((c*nb+b)*na+a)*nd,
1055
data+((a*nb+b)*nc+c)*nd,nd);
1056                    out->send(na*nb*nc*nd,res);
1057            }
1058    } GRID_END
(gdb) info locals
c = 0
b = 0
a = 0
res = 0xbefa6a10
prod = 1440000
(gdb) print n
$6 = 1440000
(gdb) print na
warning: RTTI symbol not found for class 'GridTranspose'
$7 = 2
(gdb) print nb
warning: RTTI symbol not found for class 'GridTranspose'
$8 = 240000
(gdb) print nc
warning: RTTI symbol not found for class 'GridTranspose'
$9 = 3
(gdb) print nd
warning: RTTI symbol not found for class 'GridTranspose'
$10 = 1
(gdb)
--------



Claude

PS: I managed to crash gdb by typing "list GridObject::GridObject"

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: transpose-crash.pd
Url: http://ns.artengine.ca/pipermail/gridflow-dev/attachments/20060706/f3466090/transpose-crash.asc


More information about the Gridflow-dev mailing list