[LCP]Pthread_mutex_lock-dual processor-Address out of bounds

Jack Lloyd lloyd at acm.jhu.edu
Mon May 26 03:57:02 UTC 2003


On Sat, 24 May 2003, Raghavendra D. wrote:

>
> Hi,
>
> While I am running a core system application on dual processor, it is
> crashing intermittently at the same point. When I saw the stack trace,
> an pointer variable is getting Address out of bounds error.  I didn't
> find this type of crashing on single processor systems.
>
> What might be the reason ?

1) A bug in the kernel
2) A bug in the pthreads library
3) A bug in your application

Ordered from least to most likely. It's possible you never initialize the
pthread_mutex_t that is being locked, or something along those lines.

> Another thing is Will this pthread_mutex_lock concept work fine on dual
> processor or more generic multi-processors ?

It certainly is supposed to.




More information about the linuxCprogramming mailing list