Re: Bug in pthread glibc 7.0 & 7.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 01, 2001 at 07:52:15PM -0400, TWEDE,ROGER (HP-Boise,ex1) wrote:
> 
> 
> The following code reveals a bug in the MIPS Gnu C Libraries available via
> ftp on oss.sgi.com (ftp.linux.sgi.com).
> 
> The bug is posix thread related and occurs when using the libc and
> libpthread versions available at:
> /pub/linux/mips/redhat/7.1/RPMS/mipsel/glibc*
> 
> The bug also appears to exist in:
> /pub/linux/mips/mipsel-linux/RedHat-7.0/RPMS/mipsel/glibc*
> 
> The bug does not exist in earlier versions of the pthread library, or on the
> non-MIPS (non-SGI) distributions.  (ie. RedHat 7.0 for ix86 does not exhibit
> a failure with this code, but RedHat 7.0/7.1 on mips does)
> 
> Upon failure the following code sequence will core dump (SEGV) instead of
> exiting normally.
> 
> 

On RedHat 7.1/mips:

# gcc pthread.c -o mips -lpthread -Wall
pthread.c: In function `StartFunction':
pthread.c:64: warning: unsigned int format, pointer arg (arg 3)
pthread.c:69: warning: unsigned int format, pointer arg (arg 3)
# ./mips
pid=21905 Init mutex
pid=21905 About to create thread: mythread
pid=21905 about to cond_wait for mythread init 1.
pid=21907 thread mutex locked at x7fff79c8
pid=21907 thread cond signal sent, unlocking at 0x7fff79c8
pid=21907 thread unlocked
pid=21905 back from cond_wait for mythread init 1.  result=0
pid=21907 yielded and back again
# rpm -q glibc
glibc-2.2.4-11.2


H.J.


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux