this pointer getting screwed

S

Steven Wong

hi,

I've got a pthreaded app, which seg faults. Taking a look at the
stack in gdb
I notice the "this" pointer gets nulled in the stackframe where the
seg fault occurs. Say its in an object, this really messes up things,
since trying to
access member variables will cause some big problems.

What could cause the this pointer to get screwed up like that?

TIA
 
J

Jakob Bieling

Steven Wong said:
hi,

I've got a pthreaded app, which seg faults. Taking a look at the
stack in gdb
I notice the "this" pointer gets nulled in the stackframe where the
seg fault occurs. Say its in an object, this really messes up things,
since trying to
access member variables will cause some big problems.

What could cause the this pointer to get screwed up like that?


You probably invoked a member function using a null-pointer. Check the
code that calls your function.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top