From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6277C3858418; Sat, 3 Sep 2022 11:40:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6277C3858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662205223; bh=qWc0xwQk8lYEAONf6lPc0RQVA3AjGV7e9lGuNe5SgBY=; h=From:To:Subject:Date:From; b=tINejRLK/OqTssn27e7H9qQ+9Ph5/GM3QfizgGJtqy87lKR3jkmQ71sp6xR8TpZIr 3aDS1YcwrW7kanOJxW7yKKAE1qRIgcLKj0/R2SaOOC1GwnDM8icXmhE9QScOxH1AHZ 2hrTVVco5Qp1aDg84RCG3T7czlSF9wGT0HWKcox8= From: "bruno at clisp dot org" To: glibc-bugs@sourceware.org Subject: [Bug string/29546] New: sigdescr_np for SIGEMT is useless Date: Sat, 03 Sep 2022 11:40:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: string X-Bugzilla-Version: 2.34 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29546 Bug ID: 29546 Summary: sigdescr_np for SIGEMT is useless Product: glibc Version: 2.34 Status: UNCONFIRMED Severity: normal Priority: P2 Component: string Assignee: unassigned at sourceware dot org Reporter: bruno at clisp dot org Target Milestone: --- Created attachment 14315 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14315&action=3Ded= it test case The function sigdescr_np is supposed to "return the message describing the signal signum", see https://www.gnu.org/software/libc/manual/html_node/Signal-Messages.html. However, for the value SIGEMT, it returns a string without real information. If a user did not know what SIGEMT means before, he won't know it afterward= s. How to reproduce: $ gcc -Wall foo.c $ ./a.out SIGEMT -> EMT trap Suggestion: Use the description string "Instruction emulation needed" inste= ad. That's what is understandable from the FreeBSD man page https://www.freebsd.org/cgi/man.cgi?sektion=3D3&query=3Dsignal . Seen on - Debian GNU/Hurd, with glibc 2.34. - Linux/sparc64, with glibc 2.33. --=20 You are receiving this mail because: You are on the CC list for the bug.=