Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166642 - sys-apps/lshw segfaults on uclibc/uclibc++/hardened
Summary: sys-apps/lshw segfaults on uclibc/uclibc++/hardened
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-13 10:52 UTC by Natanael Copa
Modified: 2010-10-19 22:33 UTC (History)
0 users

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 Natanael Copa 2007-02-13 10:52:17 UTC
Affects both lshw-B.02.08.01 and lshw-B.02.09.

output from strace:
...
write(2, " ", 1 )                        = 1
)                       = 1
write(2, "CPUID", 5CPUID)                    = 5
)                       = 1
open("/dev/cpu/0/cpuid", O_RDONLY)      = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 1922 detached
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-13 11:17:06 UTC
http://www.gentoo.org/proj/en/qa/backtraces.xml

You also didn't post emerge --info.
Comment 2 Natanael Copa 2007-02-13 11:51:58 UTC
I had some problems to get symbols linked in. I think this would work:

(gdb) run
Starting program: /root/lshw-B.02.09/src/lshw-static 
warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at
ffffe0b4
CPUID        
Program received signal SIGSEGV, Segmentation fault.
0x0807d2ca in cpuid (cpunumber=5, idx=0, eax=@0xff91fb8c, ebx=@0xff91fb90, 
    ecx=@0xff91fb94, edx=@0xff91fb98) at cpuid.cc:114
114         );
(gdb) bt
#0  0x0807d2ca in cpuid (cpunumber=5, idx=0, eax=@0xff91fb8c, ebx=@0xff91fb90, 
    ecx=@0xff91fb94, edx=@0xff91fb98) at cpuid.cc:114
#1  0x0807fc3c in scan_cpuid (n=@0xff920148) at cpuid.cc:632
#2  0x08057eb5 in scan_system (system=@0xff920278) at main.cc:75
#3  0x0804896b in main (argc=1, argv=0xff9201e8) at lshw.cc:134
(gdb) 


Portage 2.1.1-r2 (uclibc/x86/hardened, gcc-3.4.6, uclibc-0.9.28.1-r0,
2.6.20-gentoo i686)
=================================================================
System uname: 2.6.20-gentoo i686 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System version 1.12.6
Last Sync: Tue, 13 Feb 2007 09:30:01 +0000
distcc 2.18.3 i386-gentoo-linux-uclibc (protocols 1 and 2) (default port 3632)
[disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-march=i386 -Os -pipe -fomit-frame-pointer"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/qmail/alias
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -pipe"
DISTDIR="/var/cache/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman
sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/var/cache/packages/default"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/alpine-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X509 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw
alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix
alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty
alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks
alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa
alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter
alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null
alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route
alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol
bitmap-fonts bri bzip2 cli cracklib dlloader dri elibc_uclibc encode expat
extensions hardened input_devices_evdev input_devices_keyboard
input_devices_mouse iproute2 ipv6 jpeg kernel_linux lcd_devices_bayrad
lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780
lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses
lcd_devices_text lua mad midi minimal misdn_cards_avmfritz misdn_cards_hfcmulti
misdn_cards_hfcpci misdn_cards_hfcsmini misdn_cards_hfcsusb
misdn_cards_netjetpci misdn_cards_sedlfax misdn_cards_w6692pci misdn_cards_xhfc
ncurses netboot ntfs ogg oss pci pcmcia pic png pppd pri readline reflection
rrdtool sensord session snmp speex spl ssl tdb truetype truetype-fonts
type1-fonts uclibc uclibc++ udev usb userland_GNU userlocales video_cards_apm
video_cards_ark video_cards_chips video_cards_cirrus video_cards_cyrix
video_cards_dummy video_cards_epson video_cards_fbdev video_cards_glint
video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt
video_cards_mach64 video_cards_mga video_cards_neomagic video_cards_nsc
video_cards_nv video_cards_r128 video_cards_radeon video_cards_rendition
video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion
video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga
video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa
video_cards_vga video_cards_via video_cards_voodoo wordexp xorg zaptel zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 SpanKY gentoo-dev 2010-10-19 22:33:47 UTC
ucibc++ isnt supported anymore