Your message dated Tue, 22 May 2012 14:49:05 +0000
with message-id <[email protected]>
and subject line Bug#550361: fixed in gdb 7.4.1-1.1
has caused the Debian Bug report #550361,
regarding Program received signal ?, Unknown signal.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
550361: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550361
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gdb
Version: 7.0.1-2+b1
Severity: normal
Tags: patch
User: [email protected]
Usertags: kfreebsd
When debugged process receives signal 32, 33 or 34, gdb prints an error
message without actual signal information:
Program received signal ?, Unknown signal.
This happens because Glibc on GNU/kFreeBSD uses these signal numbers
internally (in LinuxThreads). As they have no associated macro name,
they need to be registered manually by their numbers. See attached
patch.
This is only temporary so please don't forward the patch upstream. When
we switch to NPTL we'll likely be able to use standarized macro names
from <bits/signum.h>.
-- System Information:
Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gdb depends on:
ii libc0.1 2.11.3-2 Embedded GNU C Library: Shared lib
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii libkvm0 8.1-5+squeeze1 FreeBSD kvm (kernel memory interfa
ii libncurses5 5.7+20100313-5 shared libraries for terminal hand
ii libpython2.6 2.6.6-8+b1 Shared Python runtime library (ver
ii libreadline6 6.1-3 GNU readline and history libraries
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
gdb recommends no packages.
Versions of packages gdb suggests:
pn gdb-doc <none> (no description available)
-- no debconf information
int
main ()
{
kill (getpid(), 34);
}
=== modified file 'gdb/common/signals.c'
--- gdb/common/signals.c 2012-04-16 11:24:47 +0000
+++ gdb/common/signals.c 2012-04-16 16:50:01 +0000
@@ -334,6 +334,15 @@ target_signal_from_host (int hostsig)
return TARGET_SIGNAL_INFO;
#endif
+#if defined(__GLIBC__) && defined(__FreeBSD_kernel__)
+ if (hostsig == 32)
+ return TARGET_SIGNAL_LINUXTHREADS_RESTART;
+ if (hostsig == 33)
+ return TARGET_SIGNAL_LINUXTHREADS_CANCEL;
+ if (hostsig == 34)
+ return TARGET_SIGNAL_LINUXTHREADS_DEBUG;
+#endif
+
#if defined (REALTIME_LO)
if (hostsig >= REALTIME_LO && hostsig < REALTIME_HI)
{
=== modified file 'include/gdb/signals.def'
--- include/gdb/signals.def 2012-04-16 11:24:47 +0000
+++ include/gdb/signals.def 2012-04-16 16:51:18 +0000
@@ -194,7 +194,11 @@ SET (TARGET_EXC_EMULATION, 148, "EXC_EMU
SET (TARGET_EXC_SOFTWARE, 149, "EXC_SOFTWARE", "Software generated exception")
SET (TARGET_EXC_BREAKPOINT, 150, "EXC_BREAKPOINT", "Breakpoint")
+SET (TARGET_SIGNAL_LINUXTHREADS_RESTART, 151, "32", "LinuxThreads restart signal")
+SET (TARGET_SIGNAL_LINUXTHREADS_CANCEL, 152, "33", "LinuxThreads cancel signal")
+SET (TARGET_SIGNAL_LINUXTHREADS_DEBUG, 153, "34", "LinuxThreads debug signal")
+
/* If you are adding a new signal, add it just above this comment. */
/* Last and unused enum value, for sizing arrays, etc. */
-SET (TARGET_SIGNAL_LAST, 151, NULL, "TARGET_SIGNAL_MAGIC")
+SET (TARGET_SIGNAL_LAST, 154, NULL, "TARGET_SIGNAL_MAGIC")
--- End Message ---
--- Begin Message ---
Source: gdb
Source-Version: 7.4.1-1.1
We believe that the bug you reported is fixed in the latest version of
gdb, which is due to be installed in the Debian FTP archive:
gdb-minimal_7.4.1-1.1_kfreebsd-amd64.deb
to main/g/gdb/gdb-minimal_7.4.1-1.1_kfreebsd-amd64.deb
gdb-multiarch_7.4.1-1.1_kfreebsd-amd64.deb
to main/g/gdb/gdb-multiarch_7.4.1-1.1_kfreebsd-amd64.deb
gdb-source_7.4.1-1.1_all.deb
to main/g/gdb/gdb-source_7.4.1-1.1_all.deb
gdb_7.4.1-1.1.debian.tar.gz
to main/g/gdb/gdb_7.4.1-1.1.debian.tar.gz
gdb_7.4.1-1.1.dsc
to main/g/gdb/gdb_7.4.1-1.1.dsc
gdb_7.4.1-1.1_kfreebsd-amd64.deb
to main/g/gdb/gdb_7.4.1-1.1_kfreebsd-amd64.deb
libgdb-dev_7.4.1-1.1_kfreebsd-amd64.deb
to main/g/gdb/libgdb-dev_7.4.1-1.1_kfreebsd-amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Robert Millan <[email protected]> (supplier of updated gdb package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 12 May 2012 12:25:16 +0200
Source: gdb
Binary: gdb gdb-minimal gdb64 gdb-multiarch gdbserver libgdb-dev gdb-source
Architecture: source all kfreebsd-amd64
Version: 7.4.1-1.1
Distribution: unstable
Urgency: low
Maintainer: Hector Oron <[email protected]>
Changed-By: Robert Millan <[email protected]>
Description:
gdb - The GNU Debugger
gdb-minimal - The GNU Debugger
gdb-multiarch - The GNU Debugger (with support for multiple architectures)
gdb-source - The GNU Debugger (source)
gdb64 - The GNU Debugger (64-bit)
gdbserver - The GNU Debugger (remote server)
libgdb-dev - The GNU Debugger (libgdb.a)
Closes: 550361 669043
Changes:
gdb (7.4.1-1.1) unstable; urgency=low
.
* Non-maintainer upload.
* Fix LinuxThreads signal handling on GNU/kFreeBSD. (Closes: #550361,
#669043)
Checksums-Sha1:
df4aab549d4c7b6bbe12cd052b0444696da12d13 1896 gdb_7.4.1-1.1.dsc
ae93a13c352aeb381be38ea42160dd69443d304c 46289 gdb_7.4.1-1.1.debian.tar.gz
7ae382ce66b58477062ced75d4dc49b4b3737a21 21678174 gdb-source_7.4.1-1.1_all.deb
2d89a7a9901f6e9fbc58a91f8193d923d45479e1 2183900
gdb_7.4.1-1.1_kfreebsd-amd64.deb
18ab2c4139cf1736bd2fc3f8203477372f488a35 1893286
gdb-minimal_7.4.1-1.1_kfreebsd-amd64.deb
f285c04fadc4a2ba651b4282093e944be7daf44b 5083298
gdb-multiarch_7.4.1-1.1_kfreebsd-amd64.deb
15958773f14e82e7fae2a39fa975826165c9c651 2593874
libgdb-dev_7.4.1-1.1_kfreebsd-amd64.deb
Checksums-Sha256:
d32f1952a813fb81a108d90111e96d04231315de51a6909e421a19d7c6126676 1896
gdb_7.4.1-1.1.dsc
5c33e3909954e7705368003448b2bc7f6fc2c53282bcf803c3854649cea42bc4 46289
gdb_7.4.1-1.1.debian.tar.gz
12d91d8145c995c7992ed1b20c7c622dcd3b7094196267162a3995f2c3efba8b 21678174
gdb-source_7.4.1-1.1_all.deb
6d2e3564a72e327e13334f9e8c2b002de8069f0056c60a28c2488591247760b0 2183900
gdb_7.4.1-1.1_kfreebsd-amd64.deb
6fa5f6174d5fbf1ae419c47e4450cb71848747b2135803b1e9c7774b9959ebf6 1893286
gdb-minimal_7.4.1-1.1_kfreebsd-amd64.deb
ff1d4a9f2645fbc3c6addeaecaaa08b041b388d84e468408a6e5ad2ee7faaee7 5083298
gdb-multiarch_7.4.1-1.1_kfreebsd-amd64.deb
74224cd8d6549e95cac7344fd922f6e9f945a580e172ab20a0d99b4ff3ade015 2593874
libgdb-dev_7.4.1-1.1_kfreebsd-amd64.deb
Files:
ba6c676a8b69b73796380560f54909ac 1896 devel optional gdb_7.4.1-1.1.dsc
a47a8006e54881a0603cfe2f37af1d20 46289 devel optional
gdb_7.4.1-1.1.debian.tar.gz
678671e95cb2016ab07304b50c5749cf 21678174 devel optional
gdb-source_7.4.1-1.1_all.deb
2463d0ff1b27b5388993d90762fdafcd 2183900 devel optional
gdb_7.4.1-1.1_kfreebsd-amd64.deb
25f640ab0186247add6f151aa0c7f2a7 1893286 devel optional
gdb-minimal_7.4.1-1.1_kfreebsd-amd64.deb
75422d8cce529e4ac11355635458802f 5083298 devel optional
gdb-multiarch_7.4.1-1.1_kfreebsd-amd64.deb
671defb922fafc785c822cc91a3ebc97 2593874 libdevel extra
libgdb-dev_7.4.1-1.1_kfreebsd-amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/kFreeBSD)
iEYEARECAAYFAk+uZ4cACgkQC19io6rUCv+KSwCfa1zvcm3lXtvRHvnQYRH6eK21
GAYAnR50hwyGdShakN3cqjteOyoJVrHD
=Fd7e
-----END PGP SIGNATURE-----
--- End Message ---