This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/11842] New: compat_siginfo_from_siginfo and siginfo_from_compat_siginfo are wrong
- From: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 26 Jul 2010 09:37:13 -0000
- Subject: [Bug gdb/11842] New: compat_siginfo_from_siginfo and siginfo_from_compat_siginfo are wrong
- Reply-to: sourceware-bugzilla at sourceware dot org
Only biarch gdb is affected.
#include <unistd.h>
#include <sys/syscall.h>
#include <signal.h>
#define tgkill(tgid, tid, sig) syscall (__NR_tgkill, tgid, tid, sig)
int
main (void)
{
return tgkill (getpid (), getpid (), SIGUSR1);
}
gcc -o 1 1.c -Wall -g -m32
GNU gdb (GDB) 7.2.50.20100726-cvs
This GDB was configured as "x86_64-unknown-linux-gnu".
gcc-4.4.4-10.fc13.x86_64
kernel-2.6.33.6-147.fc13.x86_64
./gdb -nx -ex start -ex 'p getpid ()' -ex c -ex 'p
$_siginfo._sifields._kill.si_pid' ./1
[...]
$1 = 23172
Continuing.
Program received signal SIGUSR1, User defined signal 1.
0x00110430 in __kernel_vsyscall ()
$2 = 0
$1 and $2 are the same for native x86_64 and for native i686.
$1 and $2 SHOULD be the same even for i686 on x86_64 debugger.
compat_siginfo_from_siginfo and siginfo_from_compat_siginfo are wrong in:
gdb/gdbserver/linux-x86-low.c
gdb/amd64-linux-nat.c
--
Summary: compat_siginfo_from_siginfo and
siginfo_from_compat_siginfo are wrong
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: gdb
AssignedTo: unassigned at sourceware dot org
ReportedBy: jan dot kratochvil at redhat dot com
CC: gdb-prs at sourceware dot org
GCC target triplet: x86_64-fedora13-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11842
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.