Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225953 - net-ftp/proftpd-1.3.1; crash on start with message related to getpwnam
Summary: net-ftp/proftpd-1.3.1; crash on start with message related to getpwnam
Status: RESOLVED DUPLICATE of bug 219404
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-11 18:11 UTC by Alexandru N. Barloiu
Modified: 2008-06-11 21:40 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 Alexandru N. Barloiu 2008-06-11 18:11:35 UTC
[root@somehost:~] # uname -a; emerge --info; /usr/sbin/proftpd \
>  -n -d 999 -t -c /etc/proftpd/proftpd.conf -p1 -4; gdb /usr/sbin/proftpd --core core --batch -ex "thread apply all bt full" -ex "quit"
Linux interbrand 2.6.25-gentoo-r4 #2 Sun Jun 8 14:24:19 EEST 2008 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
Portage 2.1.5.4 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Wed, 11 Jun 2008 17:03:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.62
sys-devel/automake:  1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=athlon64 -march=athlon64 -O2 -pipe -g2 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-mtune=athlon64 -march=athlon64 -O2 -pipe -g2 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks nostrip parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="en en_EN"
MAKEOPTS="-j2"
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="(multilib) X acl acpi amd64 bash-completion bash-logger bc bcmath berkdb bzip2 chroot cli cracklib crypt custom-cflags customlog deflate diskio dri elf extensible fortran ftp gd gdbm glibc-compat20 gmp gnutls gpm iconv isdnlog justify largeterminal lm_sensors logrotate lzo maildir mailwrapper mbox md5sum midi mmx mmxext mudflap ncurses netboot nethack network nls nptl nptlonly offensive openmp pam pcre posix pppd rar readline reflection rtc samba session sharedext sharedmem slang snmp sockets spell spl sse sse2 suexec suid sysfs syslog sysvipc tcpd tools unicode urandom utils vhosts vroot xorg zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_EN" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vga vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Checking syntax of configuration file
 - using TCP receive buffer size of 87380 bytes
 - using TCP send buffer size of 16384 bytes
 - testing Unix domain socket using S_ISFIFO
 - testing Unix domain socket using S_ISSOCK
 - using S_ISSOCK macro for Unix domain socket detection
 - mod_facl/0.4: registered 'facl' FS
*** glibc detected *** /usr/sbin/proftpd: free(): invalid next size (fast): 0x0000000002454860 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fc260e217e7]
/lib/libc.so.6(cfree+0x76)[0x7fc260e23356]
/usr/sbin/proftpd[0x47af59]
/usr/sbin/proftpd[0x45d816]
/usr/sbin/proftpd[0x4267fa]
/usr/sbin/proftpd[0x426960]
/usr/sbin/proftpd[0x40b62d]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fc260dcc486]
/usr/sbin/proftpd(getpwnam+0xd1)[0x405749]
======= Memory map: ========
00400000-004a1000 r-xp 00000000 08:01 376232159                          /usr/sbin/proftpd
006a0000-006a1000 r--p 000a0000 08:01 376232159                          /usr/sbin/proftpd
006a1000-006ab000 rw-p 000a1000 08:01 376232159                          /usr/sbin/proftpd
006ab000-006bb000 rw-p 006ab000 00:00 0 
02452000-02494000 rw-p 02452000 00:00 0                                  [heap]
7fc25c000000-7fc25c021000 rw-p 7fc25c000000 00:00 0 
7fc25c021000-7fc260000000 ---p 7fc25c021000 00:00 0 
7fc260787000-7fc26079d000 r-xp 00000000 08:01 477851338                  /lib64/libgcc_s.so.1
7fc26079d000-7fc26099c000 ---p 00016000 08:01 477851338                  /lib64/libgcc_s.so.1
7fc26099c000-7fc26099d000 r--p 00015000 08:01 477851338                  /lib64/libgcc_s.so.1
7fc26099d000-7fc26099e000 rw-p 00016000 08:01 477851338                  /lib64/libgcc_s.so.1
7fc26099e000-7fc2609a8000 r-xp 00000000 08:01 302513481                  /lib64/libnss_files-2.8.so
7fc2609a8000-7fc260ba8000 ---p 0000a000 08:01 302513481                  /lib64/libnss_files-2.8.so
7fc260ba8000-7fc260ba9000 r--p 0000a000 08:01 302513481                  /lib64/libnss_files-2.8.so
7fc260ba9000-7fc260baa000 rw-p 0000b000 08:01 302513481                  /lib64/libnss_files-2.8.so
7fc260baa000-7fc260bac000 r-xp 00000000 08:01 302513469                  /lib64/libdl-2.8.so
7fc260bac000-7fc260dac000 ---p 00002000 08:01 302513469                  /lib64/libdl-2.8.so
7fc260dac000-7fc260dad000 r--p 00002000 08:01 302513469                  /lib64/libdl-2.8.so
7fc260dad000-7fc260dae000 rw-p 00003000 08:01 302513469                  /lib64/libdl-2.8.so
7fc260dae000-7fc260ef6000 r-xp 00000000 08:01 302506329                  /lib64/libc-2.8.so
7fc260ef6000-7fc2610f6000 ---p 00148000 08:01 302506329                  /lib64/libc-2.8.so
7fc2610f6000-7fc2610fa000 r--p 00148000 08:01 302506329                  /lib64/libc-2.8.so
7fc2610fa000-7fc2610fb000 rw-p 0014c000 08:01 302506329                  /lib64/libc-2.8.so
7fc2610fb000-7fc261100000 rw-p 7fc2610fb000 00:00 0 
7fc261100000-7fc261108000 r-xp 00000000 08:01 302513473                  /lib64/libcrypt-2.8.so
7fc261108000-7fc261307000 ---p 00008000 08:01 302513473                  /lib64/libcrypt-2.8.so
7fc261307000-7fc261308000 r--p 00007000 08:01 302513473                  /lib64/libcrypt-2.8.so
7fc261308000-7fc261309000 rw-p 00008000 08:01 302513473                  /lib64/libcrypt-2.8.so
7fc261309000-7fc261337000 rw-p 7fc261309000 00:00 0 
7fc261337000-7fc261342000 r-xp 00000000 08:01 33562258                   /lib64/libpam.so.0.81.12
7fc261342000-7fc261541000 ---p 0000b000 08:01 33562258                   /lib64/libpam.so.0.81.12
7fc261541000-7fc261542000 r--p 0000a000 08:01 33562258                   /lib64/libpam.so.0.81.12
7fc261542000-7fc261543000 rw-p 0000b000 08:01 33562258                   /lib64/libpam.so.0.81.12
7fc261543000-7fc261557000 r-xp 00000000 08:01 302513488                  /lib64/libnsl-2.8.so
7fc261557000-7fc261757000 ---p 00014000 08:01 302513488                  /lib64/libnsl-2.8.so
7fc261757000-7fc261758000 r--p 00014000 08:01 302513488                  /lib64/libnsl-2.8.so
7fc261758000-7fc261759000 rw-p 00015000 08:01 302513488                  /lAborted (core dumped)

warning: Can't read pathname for load map: Input/output error.
Core was generated by `/usr/sbin/proftpd -n -d 999 -t -c /etc/proftpd/proftpd.conf -p1 -4'.
Program terminated with signal 6, Aborted.
[New process 2464]
#0  0x00007fc260ddfe15 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
	in ../nptl/sysdeps/unix/sysv/linux/raise.c

Thread 1 (process 2464):
#0  0x00007fc260ddfe15 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
	pid = <value optimized out>
	selftid = <value optimized out>
#1  0x00007fc260de118a in *__GI_abort () at abort.c:88
	act = {__sigaction_handler = {sa_handler = 0x7fff69f8b760, sa_sigaction = 0x7fff69f8b760}, sa_mask = {__val = {140734971295728, 12884901888, 140734971295792, 
      140734971299701, 17, 140472826496473, 1, 4204875, 8, 140472826492116, 3, 140734971295774, 2, 140472826491338, 1, 140472826496493}}, sa_flags = 3, 
  sa_restorer = 0x7fff69f8b82a}
	sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007fc260e1c300 in __libc_message (do_abort=2, fmt=0x7fc260ec9d58 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:170
	ap = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fff69f8c180, reg_save_area = 0x7fff69f8c090}}
	ap_copy = {{gp_offset = 16, fp_offset = 48, overflow_arg_area = 0x7fff69f8c180, reg_save_area = 0x7fff69f8c090}}
	fd = 3
	on_2 = <value optimized out>
	list = <value optimized out>
	nlist = <value optimized out>
	cp = <value optimized out>
	written = 6
#3  0x00007fc260e217e7 in malloc_printerr (action=2, str=0x7fc260ec9da8 "free(): invalid next size (fast)", ptr=<value optimized out>) at malloc.c:5949
	buf = "0000000002454860"
	cp = 0x7fc260ec0380 "0123456789abcdefghijklmnopqrstuvwxyz"
#4  0x00007fc260e23356 in *__GI___libc_free (mem=0x7fc260ec0380) at malloc.c:3625
	ar_ptr = (mstate) 0x7fc2610fba00
	p = (mchunkptr) 0x6
	hook = <value optimized out>
#5  0x000000000047af59 in cap_free (data_p=0x9a0) at cap_alloc.c:105
No locals.
#6  0x000000000045d816 in cap_module_init () at mod_cap.c:358
	res = (cap_t) 0x0
#7  0x00000000004267fa in pr_module_load (m=0x6a89e0) at modules.c:611
	buf = "mod_cap.c", '\0' <repeats 246 times>
#8  0x0000000000426960 in modules_init () at modules.c:745
	i = 24
#9  0x000000000040b62d in main (argc=9, argv=0x7fff69f8c4b8, envp=<value optimized out>) at main.c:2782
	optc = <value optimized out>
	show_version = 0
	peerlen = 16
	peer = {sa_family = 0, sa_data = '\0' <repeats 13 times>}


Reproducible: Always

Steps to Reproduce:
1.it's a simple amd64 system. cannot figure out why that happens. happens on every try.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-11 21:40:20 UTC

*** This bug has been marked as a duplicate of bug 219404 ***