Bug 1558111 - strerror_r returns malformed buffer
Summary: strerror_r returns malformed buffer
Keywords:
Status: CLOSED DUPLICATE of bug 1558107
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-19 16:15 UTC by Robbie Harwood
Modified: 2018-03-19 19:18 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-19 19:18:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
minimized reproducer (639 bytes, text/plain)
2018-03-19 16:17 UTC, Robbie Harwood
no flags Details

Description Robbie Harwood 2018-03-19 16:15:01 UTC
On i686 Fedora, under valgrind, when running the following code, we get a GPF:

==16456== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==16456==  General Protection Fault
==16456==    at 0x80485B4: main (test.c:23)

while gdb on the core yields that

Program terminated with signal SIGSEGV, Segmentation fault.
#0  main (argc=1, argv=0xbecaac44) at test.c:23
23		buf[MAX_GP_STRERROR -1] = '\0';

This has been in gssproxy for some time, and we believe it was previously working.

Comment 1 Robbie Harwood 2018-03-19 16:17:25 UTC
Created attachment 1410006 [details]
minimized reproducer

Comment 2 Robbie Harwood 2018-03-19 19:18:24 UTC
Sorry, botched submission.

*** This bug has been marked as a duplicate of bug 1558107 ***


Note You need to log in before you can comment on or make changes to this bug.