Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161147 - sys-devel/gdb doesn't recognize core dumps
Summary: sys-devel/gdb doesn't recognize core dumps
Status: RESOLVED DUPLICATE of bug 155903
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-09 16:25 UTC by Maksim 'max_posedon' Melnikau
Modified: 2007-01-09 18:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
.config (.config,37.29 KB, text/plain)
2007-01-09 16:26 UTC, Maksim 'max_posedon' Melnikau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim 'max_posedon' Melnikau 2007-01-09 16:25:14 UTC
gdb doesn't understand core files, that my system generate

Reproducible: Always

Steps to Reproduce:
1. ulimit -c unlimited
2. %cat test.c
#include <stdio.h>
int main()
{
        char a[10];
        a[30000] = 15;
        return 0;
}
3. cat Makefile
all:
        gcc -Wall -ggdb test.c -o test
4. rm core && make && ./test
gcc -Wall -ggdb test.c -o test
zsh: segmentation fault (core dumped)  ./test
5. gdb test core

Actual Results:  
GNU gdb 6.6
Copyright (C) 2006 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 "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
"/home/max_posedon/work/svn/trash/gdb/coredump/core" is not a core dump: File format not recognized
(gdb)  

Expected Results:  
gdb should understand core files, I think...

% emerge -pv sys-devel/gdb coreutils sys-libs/glibc

[ebuild   R   ] sys-devel/gdb-6.6  USE="nls -test -vanilla" 0 kB
[ebuild   R   ] sys-apps/coreutils-6.7-r1  USE="acl nls (-selinux) -static" 0 kB
[ebuild   R   ] sys-libs/glibc-2.5  USE="nls nptl nptlonly -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) -profile (-selinux)" 0 kB
....................
% emerge --info
Portage 2.1.2_rc4-r7 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19.1-rt15 i686)
=================================================================
System uname: 2.6.19.1-rt15 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.8
Last Sync: Mon, 08 Jan 2007 09:00:01 +0000
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4"
DISTDIR="/home/gentoo/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="en ru be_BY"
MAKEOPTS="-j2"
PKGDIR="/home/gentoo/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/gentoo/portage"
PORTDIR_OVERLAY="/home/gentoo/overlay /home/gentoo/pro-audio /home/gentoo/xeffects/trunk /home/gentoo/xeffects/experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aiglx alsa apache2 berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dedicated djvu dlloader dri dst dvd dvdr emacs emboss encode examples exif fam fbcon ffmpeg flac ftp gdbm gif glut gphoto2 gpm gstreamer gtk2 hal iconv imagemagick isdnlog javascript jpeg kde kdeenablefinal kdehiddenvisibility kerberos ldap libcaca libg++ lm_sensors mad mikmod mmap mmx mng mp3 mpeg ncurses nfs nls nptl nptlonly ogg opengl pam pcre pdf perl png posix postgres ppds pppd python qt4 quicktime readline real reflection ruby samba sasl scanner sdl session sharedmem slang sockets socks5 speex spell spl sse sse2 ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l vcd vim vorbis win32codecs winbind x86 xine xml xml2 xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LINGUAS="en ru be_BY" USERLAND="GNU" VIDEO_CARDS="i810 fbdev vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Maksim 'max_posedon' Melnikau 2007-01-09 16:26:38 UTC
Created attachment 106229 [details]
.config

It's may be helps...
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-09 18:46:14 UTC

*** This bug has been marked as a duplicate of bug 155903 ***