buggrep - Bugs: bug #12187, old lib/error.c garbles error...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #12187: old lib/error.c garbles error messages on some systems

Submitter:  None
Submitted:  Wed 02 Mar 2005 03:22:48 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Fri 04 Dec 2009 07:31:38 PM UTC, comment #1: 

Fixed by gnulibification.



Thank you for the bug report. This bug has been fixed in the
development sources, which can be downloaded using git from
git://git.sv.gnu.org/grep.git

Paolo Bonzini <bonzini>
Wed 02 Mar 2005 03:22:48 AM UTC, original submission:  

lib/error.c contains old configuration checks for strerror_r, and it assumes that strerror_r should return char*, while now the standard is to return int.

This conjunction can cause a conflict with the strerror_r provided by the host, and error messages printed through the error() function can get garbled, because the return value of strerror_r is passed to printf to fill a %s.

The quick solution is to remove references to lib/error.c and lib/error.h in the package, and use the functions already available in the system.

A better solution for the long term would be to fix the configure script and update from gnulib.

Claudio

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bonzini (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-12-04 bonzini Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code