Bug 438170 - strsignal generates segmentation fault on x86_64
strsignal generates segmentation fault on x86_64
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
x86_64 Linux
low Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-03-19 10:53 EDT by Ahmon Dancy
Modified: 2008-03-29 19:56 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-03-19 11:12:30 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ahmon Dancy 2008-03-19 10:53:54 EDT
Description of problem:

This program generates a segmentation fault on x86_64 but not i386:

#include <signal.h>
#include <stdio.h>

int main() {
        printf("DESC: %s\n", strsignal(7));
        return 0;

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Compile signal.c
2. Execute the compiled binary.
Actual results:

Segmentation fault

Expected results:

stdout should read:
DESC: Bus Error
Comment 1 Jakub Jelinek 2008-03-19 11:12:30 EDT
Compile it with -Wall and the compiler will tell you a helpful hint - the
function is implicitly prototyped when you compile with the default namespace.
Then read
info libc 'Feature Test Macros'
and note that strsignal is a GNU extension.
Comment 2 Ahmon Dancy 2008-03-19 11:27:14 EDT
Gah..  thanks.

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