|
From: <gil...@ya...> - 2004-04-08 02:07:44
|
Hi, I'm getting output like this when I run my program under addrcheck or memcheck: ==852== Invalid write of size 4 ==852== at 0x8050887: ??? ==852== by 0x80510EC: ??? ==852== by 0x80514C0: ??? ==852== by 0x80514B5: ??? ==852== Address 0x9BFFD1A8 is not stack'd, malloc'd or free'd and only slightly more helpfully: ==852== Invalid write of size 4 ==852== at 0x804A4B3: ??? ==852== by 0x804A84A: ??? ==852== by 0x7510655B: processEventsAndTimeouts (in /usr/lib/libglut.so.3.7.1) ==852== by 0xCE: ??? ==852== Address 0x9BFFD2B8 is not stack'd, malloc'd or free'd Could the lack of pointers to source code be a problem with the way I've compiled my program? I've got -g in there - is there anything else I need? Thanks ____________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html |
|
From: Nicholas N. <nj...@ca...> - 2004-04-08 08:18:42
|
On Thu, 8 Apr 2004, G B wrote: > I'm getting output like this when I run my program > under addrcheck or memcheck: > > ==852== Invalid write of size 4 > ==852== at 0x8050887: ??? > ==852== by 0x80510EC: ??? > ==852== by 0x80514C0: ??? > ==852== by 0x80514B5: ??? > ==852== Address 0x9BFFD1A8 is not stack'd, malloc'd > or free'd > > and only slightly more helpfully: > ==852== Invalid write of size 4 > ==852== at 0x804A4B3: ??? > ==852== by 0x804A84A: ??? > ==852== by 0x7510655B: processEventsAndTimeouts (in > /usr/lib/libglut.so.3.7.1) > ==852== by 0xCE: ??? > ==852== Address 0x9BFFD2B8 is not stack'd, malloc'd > or free'd > > Could the lack of pointers to source code be a problem > with the way I've compiled my program? I've got -g in > there - is there anything else I need? That output looks like the relevant part of the program has been stripped of both debug info and symbol tables. But if you are compiling with -g, that shouldn't be the case. Are you compiling with -fomit-frame-pointer? That could be a problem. N |