Page 1 of 1

[svn 3212] Crash (particles?)

Posted: Wed Apr 13, 2011 5:39 pm
by greycat
Crashed. Thaloren Archer, in the Rhaloren Camp. Just doing normal exploring/fighting, nothing special that comes to mind.

Code: Select all

Program terminated with signal 11, Segmentation fault.
#0  0x080868eb in particles_emit (L=0xa41d478) at ../src/particles.c:369
369		if (!ps->init) return 0;
(gdb) bt
#0  0x080868eb in particles_emit (L=0xa41d478) at ../src/particles.c:369
#1  0x080c056a in luaD_precall (L=0xa41d478, func=0xa4c910c, nresults=0)
    at ../src/lua/ldo.c:319
#2  0x080b9e66 in luaV_execute (L=0xa41d478, nexeccalls=1)
    at ../src/lua/lvm.c:587
#3  0x080c07c4 in luaD_call (L=0xa41d478, func=0xa4c90f4, nResults=0)
    at ../src/lua/ldo.c:377
#4  0x080aa542 in f_call (L=0xa41d478, ud=0xb63cc27c) at ../src/lua/lapi.c:800
#5  0x080bfa02 in luaD_rawrunprotected (L=0xa41d478, f=0x80aa518 <f_call>, 
    ud=0xb63cc27c) at ../src/lua/ldo.c:116
#6  0x080c0b14 in luaD_pcall (L=0xa41d478, func=0x80aa518 <f_call>, 
    u=0xb63cc27c, old_top=12, ef=0) at ../src/lua/ldo.c:463
#7  0x080aa5dc in lua_pcall (L=0xa41d478, nargs=1, nresults=0, errfunc=0)
    at ../src/lua/lapi.c:821
#8  0x08087650 in thread_particle_run (pt=0xb5a036c0, l=0xbb66bb8)
    at ../src/particles.c:531
#9  0x08088572 in thread_particles (data=0xb5a036c0) at ../src/particles.c:790
#10 0xb771885e in ?? () from /usr/lib/libSDL-1.2.so.0
#11 0xb77650bd in ?? () from /usr/lib/libSDL-1.2.so.0
#12 0xb75a6955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#13 0xb7526e7e in clone () from /lib/i686/cmov/libc.so.6
Classic NULL pointer dereference:

Code: Select all

(gdb) print ps
$1 = (particles_type *) 0x0

Re: [svn 3212] Crash (particles?)

Posted: Fri Apr 22, 2011 6:23 pm
by darkgod
Not sure how it happens but I put a fix to prevent it