Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#652889: gdb: During startup program terminated with signal SIGKILL, Killed.

224 views
Skip to first unread message

Mathieu Malaterre

unread,
Dec 21, 2011, 9:00:02 AM12/21/11
to
Package: gdb
Version: 7.0.1-2+b1
Severity: important


Hi,

For some reason on my linux kernel (2.6.38.2-grsec-xxxx-grs-ipv6-64) I cannot use gdb on -m32 compiled program:

$ gcc -m32 hello.c -o hello
$ gdb ./hello
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/hello...(no debugging symbols found)...done.
(gdb) r
Starting program: /tmp/hello
During startup program terminated with signal SIGKILL, Killed.


where:

$ cat hello.c
#include <stdio.h>

int main()
{
printf("Hello gdb\n");
return 0;
}


more info:

$ ldd hello
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib32/libc.so.6 (0xf75f8000)
/lib/ld-linux.so.2 (0xf775d000)

$ readelf -d hello

Dynamic section at offset 0x4c4 contains 21 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000c (INIT) 0x8048298
0x0000000d (FINI) 0x804847c
0x00000004 (HASH) 0x804816c
0x6ffffef5 (GNU_HASH) 0x8048194
0x00000005 (STRTAB) 0x8048204
0x00000006 (SYMTAB) 0x80481b4
0x0000000a (STRSZ) 74 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000015 (DEBUG) 0x0
0x00000003 (PLTGOT) 0x8049598
0x00000002 (PLTRELSZ) 24 (bytes)
0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x8048280
0x00000011 (REL) 0x8048278
0x00000012 (RELSZ) 8 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x6ffffffe (VERNEED) 0x8048258
0x6fffffff (VERNEEDNUM) 1
0x6ffffff0 (VERSYM) 0x804824e
0x00000000 (NULL) 0x0


thanks !

-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38.2-grsec-xxxx-grs-ipv6-64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gdb depends on:
ii gdbserver 7.0.1-2+b1 The GNU Debugger (remote server)
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
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



--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Hector Oron

unread,
May 8, 2014, 9:00:02 AM5/8/14
to
On Wed, Dec 21, 2011 at 02:55:06PM +0100, Mathieu Malaterre wrote:
> Package: gdb
> Version: 7.0.1-2+b1
> Severity: important
>
>
> Hi,
>
> For some reason on my linux kernel (2.6.38.2-grsec-xxxx-grs-ipv6-64) I cannot use gdb on -m32 compiled program:
>
> $ gcc -m32 hello.c -o hello
> $ gdb ./hello
> GNU gdb (GDB) 7.0.1-debian
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /tmp/hello...(no debugging symbols found)...done.
> (gdb) r
> Starting program: /tmp/hello
> During startup program terminated with signal SIGKILL, Killed.

I am unable to reproduce with upcoming 7.7-1 release, could you please verify the issue still persists?

Regards,
--
Hector Oron
signature.asc
0 new messages