Segmentation fault

Marc Szymanski <[email protected]> Wed, 9 Feb 2005 11:35:52 +0100
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
Dear Jon,

I get a segmentation fault in slShapeInitNeighbors line 290 (running the 
newest cvs version). The slEdge* e points to 0x00 because e = 
p->neighbors[m]; with m=2 returns null. I tried to figure out why the 
neighbours of the point are not set correctly, but I had no time to go into 
deep detail. Maybe you know what's wrong. I added the gdb backtrace to this 
email.

Best regards,

	Marc.


#0  0x080ae010 in slShapeInitNeighbors (s=0x83c38a8, density=1) at 
shape.cc:290
#1  0x080af0f6 in slSetCube (s=0x83c38a8, size=0xbfffb880, density=1) at 
shape.cc:655
#2  0x080ad745 in slNewCube (size=0xbfffb880, density=1) at shape.cc:130
#3  0x080e3e68 in brINewCube (args=0xbfffb880, target=0xbfffc350, i=0x83c3578) 
at breveFunctionsShape.cc:119
#4  0x080fa2ce in stEvalCallFunc (c=0x8386a90, i=0xbfffc080, 
result=0xbfffc350) at evaluation.c:1856
#5  0x080fd410 in stExpEval (s=0x8386ac8, i=0xbfffc080, result=0xbfffc350, 
tClass=0x0) at evaluation.c:2988
#6  0x080fce1b in stExpEval3 (s=0x8386ac8, i=0xbfffc080, result=0xbfffc350) at 
evaluation.c:2884
#7  0x080fa62c in stEvalAssignment (a=0x8386ae8, i=0xbfffc080, t=0xbfffc350) 
at evaluation.c:1959
#8  0x080fd31d in stExpEval (s=0x8386b08, i=0xbfffc080, result=0xbfffc350, 
tClass=0x0) at evaluation.c:2979
#9  0x080fce1b in stExpEval3 (s=0x8386b08, i=0xbfffc080, result=0xbfffc350) at 
evaluation.c:2884
#10 0x080f80f9 in stEvalArray (a=0x8386a10, i=0xbfffc080, result=0xbfffc350) 
at evaluation.c:951
#11 0x080fc8ad in stCallMethod (caller=0xbfffc3d0, target=0xbfffc080, 
method=0x83869b0, args=0xbfffbf90, argcount=1, result=0xbfffc350) at 
evaluation.c:2705
#12 0x080f8b9a in stRealEvalMethodCall (mexp=0x83a3c70, target=0xbfffc080, 
caller=0xbfffc3d0, t=0xbfffc350) at evaluation.c:1268
#13 0x080f834e in stEvalMethodCall (mexp=0x83a3c70, i=0xbfffc3d0, 
t=0xbfffc350) at evaluation.c:1041
#14 0x080fd3bf in stExpEval (s=0x83a3cd0, i=0xbfffc3d0, result=0xbfffc350, 
tClass=0x0) at evaluation.c:2985
#15 0x080fce1b in stExpEval3 (s=0x83a3cd0, i=0xbfffc3d0, result=0xbfffc350) at 
evaluation.c:2884
#16 0x080fa62c in stEvalAssignment (a=0x83a3cf0, i=0xbfffc3d0, t=0xbfffc350) 
at evaluation.c:1959
#17 0x080fd31d in stExpEval (s=0x83a3d10, i=0xbfffc3d0, result=0xbfffc350, 
tClass=0x0) at evaluation.c:2979
#18 0x080fce1b in stExpEval3 (s=0x83a3d10, i=0xbfffc3d0, result=0xbfffc350) at 
evaluation.c:2884
#19 0x080f80f9 in stEvalArray (a=0x83a3d30, i=0xbfffc3d0, result=0xbfffc350) 
at evaluation.c:951
#20 0x080fc8ad in stCallMethod (caller=0xbfffc3d0, target=0xbfffc3d0, 
method=0x83a1650, args=0x0, argcount=0, result=0xbfffc350) at 
evaluation.c:2705
#21 0x08100dd3 in stMethodTrace (i=0xbfffc3d0, name=0x8134507 "init") at 
object.c:400
#22 0x08100d86 in stMethodTrace (i=0xbfffc460, name=0x8134507 "init") at 
object.c:394
#23 0x08100953 in stInstanceInit (i=0x839b1d8) at object.c:153
#24 0x08102141 in stLoadSimulation (d=0x8167390, engine=0x814d730, 
code=0x81534c8 " # author: Marc Szymanski 24 Jan 2005\n# email: 
[email protected]\n# include some frequently used classes and specify 
common classpaths\n\n@path \"classes\"\n@path \"lib/classes\"\n\n@use Mobile.
\n@use Control"..., file=0xbfffefd0 "tests/raytraceTest.tz") at 
steveFrontend.c:282
#25 0x08101b40 in breveFrontendLoadSimulation (frontend=0x814d0f8, 
code=0x81534c8 " # author: Marc Szymanski 24 Jan 2005\n# email: 
[email protected]\n# include some frequently used classes and specify 
common classpaths\n\n@path \"classes\"\n@path \"lib/classes\"\n\n@use Mobile.
\n@use Control"..., file=0xbfffefd0 "tests/raytraceTest.tz") at 
steveFrontend.c:24
#26 0x080943b3 in main (argc=2, argv=0xbfffed94) at breve.cc:176
-- 
--------------------------------------------------------------------------
Dipl.-Inform. Marc Szymanski
Institute for Process Control and Robotics(IPR), Universität Karlsruhe(TH)
Kaiserstr. 12, D-76128 Karlsruhe, Germany
Phone: +49 721 608 6694, Fax: +49 721 608 7141
WWW http://wwwipr.ira.uka.de/~szymansk

_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve