gdb/2241: Different errno when program signalled from gdb

Daniel Jacobowitz
Mon Mar 26 17:38:00 GMT 2007

The following reply was made to PR gdb/2241; it has been noted by GNATS.

From: Daniel Jacobowitz <>
Subject: Re: gdb/2241: Different errno when program signalled from gdb
Date: Mon, 26 Mar 2007 13:33:07 -0400

 On Mon, Mar 26, 2007 at 04:31:44PM -0000, wrote:
 > Program received signal SIGINT, Interrupt.
 > [Switching to Thread -1208489328 (LWP 22061)]
 > 0x00d958d2 in _dl_sysinfo_int80 () at rtld.c:576
 > 576     relocate_doit (void *a)
 > Current language:  auto; currently c
 > (gdb) sig 2
 > Continuing with signal SIGINT.
 > errno=514
 > Program exited normally.
 > (gdb) 
 FYI, I can reproduce this.  514 is ERESTARTNOHAND, a Linux internal
 errno code used for interrupted syscalls.  We've manually interrupted
 the syscall.
 I'm not entirely sure if this should be considered a GDB or kernel
 bug... someone will have to consider how the two should work together.
 It seems like the syscall should have been restarted.
 Daniel Jacobowitz

More information about the Gdb-prs mailing list