Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#9 Segmentation fault

open
nobody
None
5
2009-03-16
2009-03-16
Victor Y. Sklyar
No

as I understand destructor of class ulxr::MultiThreadRpcServer do not check some variables inside

~MultiThreadRpcServer()
{
...
waitAsync(...)
{
for (i ...)
pthread_join(threads[i]->getHandle(), &status)

where threads[i]->getHandle() return 0... because it is not initialized yet

and as result have

Segmentation fault

Discussion

  • test code to demo error

     
    Attachments