Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246772 - sys-apps/hwsetup-1-2-r1 - process 'hwsetup' used the deprecated sysctl system call with 1.23
Summary: sys-apps/hwsetup-1-2-r1 - process 'hwsetup' used the deprecated sysctl system...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-14 20:57 UTC by justXi
Modified: 2008-12-02 10:54 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 justXi 2008-11-14 20:57:15 UTC
The hwsetup program segfaults while using with kernel 2.6.25-gentoo-r9 "SMP PREEMPT i686 Intel Atom CPU 330", info from /var/log/messages:

-----
process 'hwsetup' used the deprecated sysctl system call with 1.23
hwsetup[11140]: segfaults at 0 ip b7f320f8 sp bfe70310 error 4 in libpci.so.3.0.2[b7f2d000+8000]
-----


Reproducible: Always

Steps to Reproduce:
1. Build liveCD with hwsetup
2. start CD
3. get an error



Expected Results:  
running hwsetup without segfault

Portage 2.1.4.5 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.14 i686)
=================================================================
System uname: 2.6.25.14 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Thu, 13 Nov 2008 18:35:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r6, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-O2 -mtune=i586 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=i586 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa binary-drivers cairo cdr cli cracklib crypt dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox gif gnome gstreamer gtk hal iconv isdnlog jpeg livecd mad midi mikmod mp3 mpeg mudflap ncurses nls nptl ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spl ssl svg tcpd tiff truetype unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="radeon i810 mach64 mga r128 s3virge savage sis tdfx trident via nvidia fglrx nv s3 rendition vesa cirrus intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-17 06:46:13 UTC
I can reproduce the deprecation warnings here (with, say, sys-kernel/vanilla-sources-2.6.28_rc3):

Nov 17 07:42:13 elmer [437609.472000] warning: process `hwsetup' used the deprecated sysctl system call with 1.23.
Nov 17 07:42:57 elmer [437654.292000] warning: process `hwsetup' used the deprecated sysctl system call with 1.23.

But with `hwsetup -v -n' I also get some nice output and no segfault:

elmer ~ # hwsetup -v -n 2>&1 | tee hwsetup.out
---
class:  OTHER
bus:    PCI
device: (null)
driver: (null)
desc:   National Semiconductor Corporation 87560 Legacy I/O
---
class:  OTHER
bus:    USB
device: (null)
driver: (null)
desc:   Device 1d6b:0001
---
class:  NETWORK
bus:    PCI
device: eth0
driver: (null)
desc:   Digital Equipment Corporation DECchip 21142/43
---
class:  SCSI
bus:    PCI
device: (null)
driver: (null)
desc:   LSI Logic / Symbios Logic 53C896/897
---
class:  SCSI
bus:    PCI
device: (null)
driver: (null)
desc:   LSI Logic / Symbios Logic 53C896/897
---
class:  AUDIO
bus:    PCI
device: (null)
driver: snd_ad1889
desc:   Analog Devices AD1889 sound chip
---
class:  CDROM
bus:    IDE
device: hda
driver: (null)
desc:   sf03 SAMSUNG DVD-ROM SD-612S
---
class:  HD
bus:    SCSI
device: sda
driver: (null)
desc:   HP 18.2G ST318406LC
---
class:  HD
bus:    SCSI
device: sdb
driver: (null)
desc:   COMPAQ BB018135B5
---
class:  KEYBOARD
bus:    KEYBOARD
device: ttyS0
driver: (null)
desc:   Serial console (9600 baud) ttyS0
---
class:  USB
bus:    PCI
device: (null)
driver: (null)
desc:   National Semiconductor Corporation USB Controller
---
class:  UNKNOWN
bus:    PCI
device: (null)
driver: (null)
desc:   National Semiconductor Corporation 87415/87560 IDE

Could you run that manually on the same system to get more information on where it fails?
Comment 2 justXi 2008-11-17 17:36:55 UTC
I get no ouput, just the segfault.
Comment 3 justXi 2008-11-18 12:39:22 UTC
I steppted thru hwsetup.c with some printf() output and currently it seems to be a problem in "probeDevices" from libkudzu. I will try the latest version of libkudzu and report my results.
Comment 4 justXi 2008-12-02 10:54:22 UTC
The problem occured while switching from kernl 2.6.23-gentoo-r3 to a later kernel.
I could not figure out the problem exactly, but after rebuilding libkudzu and hwsetup the problem is gone.