Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 473832

Summary: access violation in /var/cache/samba/gencache.tdb by hostname -f
Product: Gentoo Linux Reporter: willemo <willem>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: environment

Description willemo 2013-06-19 14:19:14 UTC
Created attachment 351390 [details]
environment

ACCESS VIOLATION during ebuild


VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /var/cache/samba/gencache.tdb
A: /var/cache/samba/gencache.tdb
R: /var/cache/samba/gencache.tdb
C: ./conftest

F: open_wr
S: deny
P: /var/cache/samba/gencache.tdb
A: /var/cache/samba/gencache.tdb
R: /var/cache/samba/gencache.tdb
C: hostname -f

build.log
---------
[32;01m * [39;49;00mPackage:    net-ftp/ncftp-3.2.5-r2
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: jer@gentoo.org
[32;01m * [39;49;00mUSE:        elibc_glibc kernel_linux userland_GNU x86
[32;01m * [39;49;00mFEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking ncftp-3.2.5.474.tar.bz2 to /var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work
>>> Unpacking ncftp-325-v6.diff.gz to /var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work
>>> Source unpacked in /var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work
>>> Preparing source in /var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5 ...
 [32;01m*[0m Applying ncftp-325-v6.diff ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running eautoreconf in '/var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5' ...
 [32;01m*[0m Running aclocal -I autoconf_local/ ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running autoconf -I autoconf_local/ ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running autoheader -I autoconf_local/ ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5 ...
 * econf: updating ncftp-3.2.5/sh/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ncftp-3.2.5/sh/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-precomp --disable-ipv6 --disable-ccdv --disable-universal
checking if you set and exported the environment variable CC... i686-pc-linux-gnu-gcc
checking for environment variable CFLAGS... -O0 -march=native
checking for environment variable CPPFLAGS... no
checking for environment variable LDFLAGS... -Wl,-O1 -Wl,--as-needed
checking for environment variable LIBS... no
checking version of C library... 
glibc2.15
checking platform... "linux-x86"
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking if the C compiler can use precompiled headers... no
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking the version of GCC... 4.6.3
checking if we should customize your CFLAGS environment variable... no
checking for ldd... yes
checking if compiled programs use a shared library version of libgcc... no
checking if this is a debug build... no
checking for unistd.h... (cached) yes
checking size of st_size field in struct stat... 4
checking size of off_t... 4
checking size of st_size field in struct stat64... 8
checking size of off64_t... 8
checking size of st_size field in struct stat... 4
checking size of off_t... 4
checking if we should add CFLAGS for LFS64 support... -D_LARGEFILE64_SOURCE
checking if we should add CFLAGS for reentrancy... -D_REENTRANT
checking for strip... strip
checking for ANSI C header files... (cached) yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking gnu/libc-version.h usability... yes
checking gnu/libc-version.h presence... yes
checking for gnu/libc-version.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking nserve.h usability... no
checking nserve.h presence... no
checking for nserve.h... no
checking resolv.h usability... yes
checking resolv.h presence... yes
checking for resolv.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/id.h usability... no
checking sys/id.h presence... no
checking for sys/id.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for unistd.h... (cached) yes
checking for gnu/libc-version.h... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for UNIX domain sockets... yes
checking for sun_len field in struct sockaddr_un... no
checking for strerror... yes
checking for socket... yes
checking for gethostbyname... yes
checking if we need to look for a separate DNS resolver library... no
checking if SOCKS5 will be used... no
checking for curses library headers... checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for termios.h... (cached) yes
checking for termio.h... (cached) yes
checking for sgtty.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for curses library... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for off_t... yes
checking for mode_t... yes
checking for pid_t... yes
checking for uid_t in sys/types.h... yes
checking what type main() should return... int
checking for 64-bit integral type: long long... yes
checking how to print a 64-bit integral type... %lld
checking how to scan a 64-bit integral type... %lld
checking if everything was available to use the 64-bit integral type... yes
checking what type the tv_sec field of struct timeval is... long
checking what type the tv_usec field of struct timeval is... long
checking for perl... /usr/bin/perl
checking for mktemp... /usr/bin/mktemp
checking for return type from write... ssize_t
checking for size parameter to write... size_t
checking for return type from send... ssize_t
checking for size parameter to send... size_t
checking for size parameter to connect... socklen_t
checking for size parameter to setsockopt... socklen_t
checking for backlog parameter to listen... int
checking for seconds parameter to alarm... unsigned int
checking for address parameter to gethostbyaddr... const struct in_addr *
checking for size parameter to gethostname... size_t
checking types of arguments for select()... int,fd_set *,struct timeval *
checking for struct stat64... yes
checking for sig_atomic_t... yes
checking how to access getopt() global variables... automatic
checking for useable _res global variable... yes
checking for struct cmsghdr... yes
checking for msg_control field in struct msghdr... yes
checking for msg_accrights field in struct msghdr... no
checking for sys/time.h... (cached) yes
checking whether to enable ipv6... no
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking if sockaddr has sa_len member... no
checking if sockaddr_storage has ss_family member... no
checking for getcwd... yes
checking for getwd... yes
checking for fstat64... yes
checking for getdomainname... yes
checking for gethostname... yes
checking for getpass... yes
checking for getpassphrase... no
checking for gnu_get_libc_release... yes
checking for gnu_get_libc_version... yes
checking for inet_aton... yes
checking for inet_ntop... yes
checking for llseek... yes
checking for lseek64... yes
checking for lstat64... yes
checking for memmove... yes
checking for mktime... yes
checking for open64... yes
checking for pathconf... yes
checking for readlink... yes
checking for res_init... no
checking for setlocale... yes
checking for setpgid... yes
checking for setpgrp... yes
checking for setsid... yes
checking for setvbuf... yes
checking for sigaction... yes
checking for sigsetjmp... no
checking for stat64... yes
checking for strcasecmp... yes
checking for strcoll... yes
checking for strdup... yes
checking for strerror... (cached) yes
checking for strncoll... no
checking for strstr... yes
checking for strtoq... yes
checking for symlink... yes
checking for sysconf... yes
checking for sysctl... yes
checking for sysinfo... yes
checking for syslog... yes
checking for tcgetattr... yes
checking for uname... yes
checking for waitpid... yes
checking for gethostbyaddr_r... yes
checking for gethostbyname_r... yes
checking for gethostbyname2_r... yes
checking for getlogin_r... yes
checking for getpwnam_r... yes
checking for _posix_getpwnam_r... no
checking for getpwuid_r... yes
checking for _posix_getpwuid_r... no
checking for getservbyname_r... yes
checking for getservbyport_r... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for readdir_r... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking if snprintf works correctly... yes
checking what snprintf() returns... length of data written
checking for sigsetjmp and siglongjmp... yes
checking if setpgrp behavior needs to be checked... no
checking whether setvbuf behavior can be checked... yes
checking whether setvbuf arguments are reversed... no
checking for working alloca.h... yes
checking for alloca... yes
checking string parameter to waddstr... const char *
checking whether curses structure has maxx or _maxx field... _maxx
checking for getcurx() functionality in curses library... yes
checking for getyx() functionality in curses library... yes
checking for getmaxx() functionality in curses library... yes
checking for getmaxyx() functionality in curses library... yes
checking for getbegx() functionality in curses library... yes
checking for getbegyx() functionality in curses library... yes
checking for touchwin() functionality in curses library... yes
checking for beep() functionality in curses library... yes
checking for keypad... yes
checking for nodelay... yes
checking for curs_set... yes
checking for doupdate... yes
checking for wnoutrefresh... yes
checking for long file names... yes
checking whether make sets $(MAKE)... yes
checking for gtar... /usr/bin/gtar
checking how to create TAR files... /usr/bin/gtar -c --owner=root --group=root --verbose -f
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for pwd... /usr/bin/pwd
checking for ccdv... (disabled)
checking if shell can test for symlinks... yes
[31;01mACCESS DENIED[0m  open_wr:      /var/cache/samba/gencache.tdb
checking CC... i686-pc-linux-gnu-gcc
checking CFLAGS... -D_REENTRANT -D_LARGEFILE64_SOURCE -O0 -march=native -Wno-format-y2k
checking CPPFLAGS... -I/var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5 -I/var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5/libncftp -I/var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5/sio -I/var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5/Strn -I -D__ss_family=ss_family -D__ss_len=ss_len
checking DEFS... 
checking NDEFS...  -DLINUX=34003 -DLINUX_GLIBC=35000
checking LDFLAGS... -L/var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5/libncftp -L/var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5/sio -L/var/tmp/portage/net-ftp/ncftp-3.2.5-r2/work/ncftp-3.2.5/Strn -Wl,-O1 -Wl,--as-needed
checking LIBS... 
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating Makefile.bin
config.status: WARNING:  'Makefile.bin.in' seems to ignore the --datarootdir setting
config.status: creating ncftp/Makefile
config.status: creating libncftp/Makefile
config.status: creating Strn/Makefile
config.status: WARNING:  'Strn/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating sio/Makefile
config.status: creating sh_util/Makefile
config.status: creating vis/Makefile
config.status: creating config.h
config.status: executing default-1 commands
>>> Source configured.
[31;01m--------------------------- ACCESS VIOLATION SUMMARY ---------------------------[0m
[31;01mLOG FILE[0m "/var/log/sandbox/sandbox-25627.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /var/cache/samba/gencache.tdb
A: /var/cache/samba/gencache.tdb
R: /var/cache/samba/gencache.tdb
C: ./conftest 

F: open_wr
S: deny
P: /var/cache/samba/gencache.tdb
A: /var/cache/samba/gencache.tdb
R: /var/cache/samba/gencache.tdb
C: hostname -f 
[31;01m--------------------------------------------------------------------------------[0m
Comment 1 willemo 2013-06-19 14:21:21 UTC
Portage 2.1.12.2 (default/linux/x86/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.4.3-gentoo i686)
=================================================================
System uname: Linux-3.4.3-gentoo-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-2.2
KiB Mem:     3374988 total,   2655772 free
KiB Swap:    3911820 total,   3911820 free
Timestamp of tree: Tue, 18 Jun 2013 14:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.1.5, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O0 -march=native"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O0 -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs 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"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi airplay alsa animgif ant apache2 arts bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus device-mapper dri dts dvd dvdr emboss encode exif extras fam firefox flac fortran gdbm gif gnome gpm gtk iconv idea imap java jpeg kde lcms ldap libnotify mad maildir mng modperl modules mozilla mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin odbc ogg opengl openmp pam pango pcre pdf perl php png pnp policy-kit policykit postgres ppds qt3support qt4 readline sasl sdl session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vhosts vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ABI_X86="32" 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" 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 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-19 15:41:18 UTC
*** Bug 473834 has been marked as a duplicate of this bug. ***
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-19 15:43:02 UTC
Nothing to do with ncftp (or upower). Looks like you are using samba for DNS or something? Please check your networking configuration.