Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385683 - dev-lang/path64 pathdb segfaults instantly
Summary: dev-lang/path64 pathdb segfaults instantly
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Kacper Kowalik (Xarthisius) (RETIRED)
URL:
Whiteboard: use.masked
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 03:47 UTC by Alec Meyers
Modified: 2015-11-05 19:55 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Meyers 2011-10-05 03:47:18 UTC
$ pathdb
PathScale Debugger, Version 4.0.5
Copyright (C) 2004-2011 Pathscale Inc.
All Rights Reserved

Segmentation fault



Reproducible: Always

Steps to Reproduce:
1. emerge path64
2. run pathdb
Actual Results:  
Backtrace:

$ gdb pathdb
Reading symbols from /usr/lib64/path64/bin/pathdb...Reading symbols from /usr/lib64/debug/usr/lib64/path64/bin/pathdb.debug...done.
done.
gdb> r pathdb
Starting program: /usr/lib64/path64/bin/pathdb pathdb
[Thread debugging using libthread_db enabled]
PathScale Debugger, Version 4.0.5
Copyright (C) 2004-2011 Pathscale Inc.
All Rights Reserved


Program received signal SIGSEGV, Segmentation fault.
std::vector<Section*, std::allocator<Section*> >::size() const () at /usr/lib64/path64/include/1.0.0/stl/vector:214
214	        return size_type (_C_alloc._C_end - _C_alloc._C_begin);
gdb> bt
#0  std::vector<Section*, std::allocator<Section*> >::size() const () at /usr/lib64/path64/include/1.0.0/stl/vector:214
#1  0x000000000058d39c in ELF::get_section(std::istream&, std::string) ()
    at /var/tmp/portage-ondisk/portage/dev-lang/path64-1.0.0_pre20110924/work/path64/compiler/pathdb/src/dbg_elf.cc:547
#2  0x00000000005bfd4d in DwInfo::read_abbreviations() ()
    at /var/tmp/portage-ondisk/portage/dev-lang/path64-1.0.0_pre20110924/work/path64/compiler/pathdb/src/dwf_info.cc:376
#3  0x000000000053cbca in SymbolTable::read(PStream*, bool) ()
    at /var/tmp/portage-ondisk/portage/dev-lang/path64-1.0.0_pre20110924/work/path64/compiler/pathdb/src/symtab.cc:245
#4  0x000000000053d205 in SymbolTable::SymbolTable(Architecture*, ELF*, std::istream&, AliasManager*, PStream*, bool) ()
    at /var/tmp/portage-ondisk/portage/dev-lang/path64-1.0.0_pre20110924/work/path64/compiler/pathdb/src/symtab.cc:161
#5  0x000000000050ed9d in Process::open_object_file(std::string, long, bool) ()
    at /var/tmp/portage-ondisk/portage/dev-lang/path64-1.0.0_pre20110924/work/path64/compiler/pathdb/src/process.cc:1235
#6  0x00000000005150ec in Process::Process(ProcessController*, std::string, Architecture*, Target*, PStream&, AttachType) ()
    at /var/tmp/portage-ondisk/portage/dev-lang/path64-1.0.0_pre20110924/work/path64/compiler/pathdb/src/process.cc:553
#7  0x00000000004f392d in ProcessController::ProcessController(CommandInterpreter*, bool) ()
    at /var/tmp/portage-ondisk/portage/dev-lang/path64-1.0.0_pre20110924/work/path64/compiler/pathdb/src/pcm.cc:157
#8  0x000000000065b67f in CommandInterpreter::CommandInterpreter(PStream&, int, bool) ()
    at /var/tmp/portage-ondisk/portage/dev-lang/path64-1.0.0_pre20110924/work/path64/compiler/pathdb/src/cli.cc:2632
#9  0x00000000004ebaf3 in main () at /var/tmp/portage-ondisk/portage/dev-lang/path64-1.0.0_pre20110924/work/path64/compiler/pathdb/src/driver.cc:175




# emerge --info path64
Portage 2.2.0_alpha60 (default/linux/amd64/10.0/desktop, gcc-4.6.1, glibc-2.13-r4, 3.1.0-rc8+ x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.0-rc8+-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Wed, 05 Oct 2011 01:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1, 4.6.1-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo local
Installed sets: @kde4, @texlive, @xfce4
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/tomoyo/conf /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildsyspkg distlocks ebuild-locks fixlafiles fixpackages news preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/tree/official"
PORTDIR_OVERLAY="/usr/portage/tree/local"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aio alsa amd64 apng audiofile avi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr chm cli cracklib crypt css cups curl custom-optimization cxx dbus dell dirac dri dts dvd dvdr emboss encode exif expat ffmpeg fftw firefox flac foomaticdb ftp gallium gdu gif git gles gmp gpm graphviz gtk iconv imagemagick imlib inotify java5 java6 jpeg kde kdehiddenvisibility kvm laptop latex lcms libnotify logrotate lqr lzma lzo mad mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses nptl nptlonly nsplugin nvidia ogg opengl openmp openssl pam pango pch pcre pdf perl pgo png ppds pppd python qt qt3support qt4 quicktime rar readline resolvconf rtmp samba schroedinger sdl session sndfile speex spell sqlite sqlite3 srt sse sse2 sse3 sse4 ssl ssse3 startup-notification subversion svg sysfs systemd tcpd theora threads tiff tokyocabinet truetype udev unicode usb v4l v4l2 vaapi vcd videos vim-syntax vorbis vpx webkit webp wifi wmf x264 xcb xcomposite xft xorg xscreensaver xulrunner xv xvid xvmc xz zip 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="clock logout menu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

dev-lang/path64-1.0.0_pre20110924 was built with the following:
USE="debugger (multilib) native openmp valgrind (-assembler) -custom-cflags -fortran"
CFLAGS=""
CXXFLAGS=""
Comment 1 Alec Meyers 2011-11-09 03:48:31 UTC
Does not work with 1.0.0_pre20111108 either.
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-11-09 08:54:08 UTC
+# Kacper Kowalik <xarthisius@gentoo.org> (9 Nov 2011)
+# pathdb works only as a SIGSEGV generator, mask until upstream
+# fixes it bug #385683
+dev-lang/path64 debugger
Comment 3 Alec Meyers 2011-11-09 15:29:54 UTC
Does upstream know about it? I don't see anything about it in the issues...

https://github.com/path64/debugger/issues
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-11-09 17:08:33 UTC
(In reply to comment #3)
> Does upstream know about it? I don't see anything about it in the issues...
> 
> https://github.com/path64/debugger/issues

Yes, they're aware. They even explicitly told me to remove pathdb from dev-lang/ekopath. Poke them to let them know that it's a feature users care about, by e.g. filling the bug on github.
Comment 5 Pacho Ramos gentoo-dev 2015-11-05 19:55:15 UTC
removed from the tree