Package: gdb
Version: 6.3-6
Severity: normal

Hello,

when trying to debug one of my programs I encountered a case where gdb
crashed on the command "break main" before my programm was even
started.  The problem occurs on a powerpc machine.

Since the files are largish, I put them up on my web page instead of
appending them to this mail.  The files are

    http://seehuhn.de/data/gdb-bug           - the binary
    http://seehuhn.de/data/gdb-bug.i         - the preprocessed source

1) Reproducing the bug.  You will probably need the atlas3-base and
libg2c0 packages installed to reproduce this.

    [EMAIL PROTECTED] [~/y] uname -a
    Linux quiche 2.6.12 #1 Wed Jun 22 13:34:21 BST 2005 ppc GNU/Linux
    [EMAIL PROTECTED] [~/y] ldd gdb-bug
    ldd: warning: you do not have execution permission for `./gdb-bug'
            libm.so.6 => /lib/libm.so.6 (0x0ff6b000)
            liblapack.so.3 => /usr/lib/atlas/liblapack.so.3 (0x0f9c5000)
            libblas.so.3 => /usr/lib/atlas/libblas.so.3 (0x0f4c0000)
            libg2c.so.0 => /usr/lib/libg2c.so.0 (0x0f481000)
            libc.so.6 => /lib/libc.so.6 (0x0f322000)
            /lib/ld.so.1 => /lib/ld.so.1 (0x08000000)
    [EMAIL PROTECTED] [~/y] dpkg -S /usr/lib/atlas/liblapack.so.3 
/usr/lib/atlas/libblas.so.3 /usr/lib/libg2c.so.0
    atlas3-base: /usr/lib/atlas/liblapack.so.3
    atlas3-base: /usr/lib/atlas/libblas.so.3
    libg2c0: /usr/lib/libg2c.so.0
    [EMAIL PROTECTED] [~/y] gdb gdb-bug
    GNU gdb 6.3-debian
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain 
conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "powerpc-linux"...Using host libthread_db 
library "/lib/libthread_db.so.1".

    (gdb) break main
    Segmentation fault

2) Regenerating the binary.  The binary gdb-bug was compiled from
gdb-bug.i using the following two commands:

    [EMAIL PROTECTED] [~/y] gcc -ggdb3 -c gdb-bug.i
    [EMAIL PROTECTED] [~/y] gcc -ggdb3 -o gdb-bug gdb-bug.o -lm -llapack -lblas 
-lg2c

If you need additional information, please let me know.

I hope this helps,
Jochen

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=en_GB.iso885915, LC_CTYPE=en_GB.iso885915 (charmap=ISO-8859-15)

Versions of packages gdb depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-8        Shared libraries for terminal hand
ii  libreadline4                4.3-15       GNU readline and history libraries

gdb recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to