[Bug libc/364] strerror_r does not copy error string to user supplied buffer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug libc/364] strerror_r does not copy error string to user supplied buffer

tromey at sourceware dot org

------- Additional Comments From vda dot linux at googlemail dot com  2006-07-04 11:57 -------
Because I'm tracking down obscure bug in svn (seemingly),
and tracked it down to strerror_r not updating buffer
and _not_ returning -1.

From: Denis Vlasenko <[hidden email]>
To: Malcolm Rowe <[hidden email]>
Subject: Re: BUG: svn enters unkillable state, tracked down to UTF conv in locale!=C
Date: Tue, 4 Jul 2006 13:53:59 +0200

> If your native_strerror() looks like that, you must have STRERROR_R_RC_INT
> defined (in APR's include/arch/unix/apr_private.h), which implies you're
> using the platform-native C library for either AIX or Tru64 (from the
> comments in the above file).
>
> I thought you were using glibc?  What OS are you using?

It _is_ glibc 2.4. Looks like glibc people switched to POSIX version
of strerror_r. See here:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=364

But sometimes it returns >=0, yet buffer is not modified.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


http://sourceware.org/bugzilla/show_bug.cgi?id=364

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.