Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44070 - nasd Segmentation Fault
Summary: nasd Segmentation Fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-08 13:40 UTC by Michael Labhard
Modified: 2004-07-10 15:14 UTC (History)
0 users

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


Attachments
Hardware profile (hardware.profile,9.10 KB, text/plain)
2004-03-08 13:41 UTC, Michael Labhard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Labhard 2004-03-08 13:40:58 UTC
nasd (of media-libs/nas) emerge works normally on a single-processor Opteron amd64 machine, but a segmentation fault is the only result of attempting to start the daemon.

Here is the gdb output:
Starting program: /usr/X11R6/bin/nasd -aa

Program received signal SIGSEGV, Segmentation fault.
0x0000002a956e1200 in strchr () from /lib/libc.so.6
(gdb) where
#0  0x0000002a956e1200 in strchr () from /lib/libc.so.6
#1  0x000000000040235a in AuServerName ()
#2  0x0000000000402292 in main ()

emerge --info:
Portage 2.0.50-r1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.3-gentoo-r2)
=================================================================
System uname: 2.6.3-gentoo-r2 x86_64 5
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -fPIC -DDEBUG -D_DEBUG"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -fPIC -DDEBUG -D_DEBUG"
DISTDIR="/opt/no_archive/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/opt/no_archive/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm arts avi berkdb cdr crypt debug doc encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde ldap libg++ libwww log4cpp mikmod motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png postgres python qt quicktime readline ruby sdl slang spell ssl tcltk tcpd truetype usb wxwindows xinerama xml2 xmms xv zlib"

lshw output: attached.
Comment 1 Michael Labhard 2004-03-08 13:41:36 UTC
Created attachment 27053 [details]
Hardware profile
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2004-07-10 07:35:53 UTC
Problem solved. server/dia/main.c doens't #include <stdlib.h>.

I don't know how that code could ever have worked, no idea where the declaration of "getenv(char *)" came from, but a sane declaration cured the segfaults.
Waiting for eradicator to approve my patch to be applied unconditionally.
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2004-07-10 15:14:31 UTC
Fixes in CVS, take media-libs/nas-1.6c-r2.