From: "H . J . Lu" <hjl@lucon.org>
To: "TWEDE,ROGER (HP-Boise,ex1)" <roger_twede@hp.com>
Cc: "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>
Subject: Re: Bug in pthread glibc 7.0 & 7.1
Date: Mon, 1 Oct 2001 17:10:03 -0700 [thread overview]
Message-ID: <20011001171003.A18883@lucon.org> (raw)
In-Reply-To: <CBD6266EA291D5118144009027AA63353F922A@xboi05.boi.hp.com>; from roger_twede@hp.com on Mon, Oct 01, 2001 at 07:52:15PM -0400
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.
next prev parent reply other threads:[~2001-10-02 0:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-01 23:52 Bug in pthread glibc 7.0 & 7.1 TWEDE,ROGER (HP-Boise,ex1)
2001-10-02 0:10 ` H . J . Lu [this message]
2001-10-02 12:09 ` Robin Humble
2001-10-02 16:14 ` H . J . Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011001171003.A18883@lucon.org \
--to=hjl@lucon.org \
--cc=linux-mips@oss.sgi.com \
--cc=roger_twede@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox