View Single Post

   
  #2 (permalink)  
Old 01-16-2008, 06:50 PM
Paul Pluzhnikov
 
Posts: n/a
Default Re: pthread_create, "this" pointer and SIGBUS

"jd" <jedrzej_dudkiewicz@poczta.interia.pl> writes:

> int do_sth(int sd)
> {
> segment segm; // HERE (explained later)


The sizeof(segm) is 20000, that's not so big as to cause the thread
to run out of stack, unless you specified extremely small default
stack at pthread_create() time.

> pthread_create(... fun, this);


Perhaps the problem hides in the '...' above.
Post a minimal compilable test case, and your error will be revealed.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Reply With Quote