Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448622 - net-fs/samba USE=debug - utils generate segmentation faults
Summary: net-fs/samba USE=debug - utils generate segmentation faults
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Low normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-26 01:11 UTC by Andreas Nüßlein
Modified: 2014-03-06 17:23 UTC (History)
1 user (show)

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


Attachments
emerge --info net-fs/samba >emerge.info (emerge.info,5.20 KB, text/plain)
2014-02-24 06:52 UTC, Alex B
Details
cat smbd.txt |bzip2 > smbd.txt.bz2 (smbd.txt.bz2,44.12 KB, application/octet-stream)
2014-02-24 06:53 UTC, Alex B
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Nüßlein 2012-12-26 01:11:00 UTC
when emerge samba with the debug-useflag, /usr/sbin/smbd, /usr/bin/net, /usr/bin/smbclient and possibly others wont start but Segfault right away.

dmesg says the following:
nmbd[30139]: segfault at 7fffe18fcff8 ip 00007f96868d7f03 sp 00007fffe18fd000 error 6 in libc-2.15.so[7f968685d000+19f000]
smbd[30156]: segfault at 7fffe8515ec8 ip 00007ffcb0d873f2 sp 00007fffe8515da0 error 6 in libc-2.15.so[7ffcb0d40000+19f000]
smbclient[32017]: segfault at 7fffb431efd8 ip 00007f181676f508 sp 00007fffb431efe0 error 6 in libc-2.15.so[7f1816672000+19f000]
net[28555]: segfault at 7ffff2657f68 ip 00007f828efe54dd sp 00007ffff2657ee0 error 6 in libc-2.15.so

it's possibly some glibc-thing, but as i said: just doing USE="-debug" will fix this problem. just posting this so others will not spend ours debugging the debug-useflag as i did ;)

Reproducible: Always

Steps to Reproduce:
1. USE="debug" emerge samba
2. smbd | smbclient | net

Actual Results:  
Segmentation fault


Expected Results:  
good ol' samba performing
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-26 03:09:54 UTC
1) Please post your `emerge --info net-fs/samba' output in a comment.
2) Obtain a gdb backtrace and post the result on this bug report.
Comment 2 Alex B 2014-02-24 06:52:00 UTC
Created attachment 371162 [details]
emerge --info net-fs/samba >emerge.info
Comment 3 Alex B 2014-02-24 06:53:20 UTC
Created attachment 371164 [details]
cat smbd.txt |bzip2 > smbd.txt.bz2

txt is big
Comment 4 Alex B 2014-02-24 06:55:18 UTC
IMHO the bug is in the dmalloc or near it.
Comment 5 Alex B 2014-03-06 17:23:07 UTC
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.17, 3.10.7-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.7-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:     3005820 total,   1290368 free
KiB Swap:    5859324 total,   5855056 free
Timestamp of tree: Thu, 20 Feb 2014 12:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /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 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://bbox.internal.lgrflab.ru/gentoo/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://bbox.internal.lgrflab.ru/gentoo-portage"
USE="ads amd64 apache2 berkdb bindist bzip2 cli cracklib crypt cups cxx cyrillic debug dri dvi2tty dvipdfm epspdf extra fontconfig fortran gd gdbm graphics iconv ipv6 jpeg ldap mmx modules multilib ncurses nls nptl openmp pam pcre perl png postgres python readline ruby session sse sse2 ssl tcl tcpd texi2html truetype unicode xml zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

net-fs/samba-3.6.22 was built with the following:
USE="ads aio client cups ldap (multilib) netapi pam readline server smbclient winbind -acl -addns -avahi -caps -cluster -debug -dmapi -doc -examples -fam -ldb -quota (-selinux) -smbsharemodes -swat -syslog" ABI_X86="64"