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. |