If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

Segmentation Fault ??

Hi, i have a very weird fatal exception happening very rarely on my application (compiled under gcc - Ubuntu linux)

it seems that this this function :

Code:

bool GetConnect( ) {return m_Connected;}

causes a Segmentation Fault sometimes (not all the times)

No the instance of the class is not deleted when i call that function.
I tried declaring m_Connected as volatile bool m_Connected but still the error happens.
several different threads also access the function that calls this function.

it always crashes when it outputs CBE4.
to make sure that another thread doesnt crash the application i also tried creating the other threads in completely different timings. It crashes every time on the same line. Although it makes no sense at all..