Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167003 - net-ftp/proftpd-1.3.1_rc2 segfaults on startup w/ USE=acl (?)
Summary: net-ftp/proftpd-1.3.1_rc2 segfaults on startup w/ USE=acl (?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Luca Longinotti (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 11:20 UTC by Calum
Modified: 2007-05-11 22:03 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 Calum 2007-02-15 11:20:57 UTC
Upgraded ProFTPd after seeing the GLSA.
It compiles, and installs OK.
But it doesn't run, which isn't cool :(


torro ~ # proftpd
Segmentation fault
torro ~ # killall proftpd
proftpd: no process killed
torro ~ # /etc/init.d/proftpd zap
torro ~ # /etc/init.d/proftpd start
 * Starting proftpd ...
/etc/init.d/proftpd: line 19: 16686 Segmentation fault      start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/proftpd.pid --exec /usr/sbin/proftpd                                                                                                          [ !! ]
torro ~ #    


Portage 2.1.1-r1 (default-linux/amd64/2006.1/desktop, gcc-vanilla, glibc-2.3.6-r5, 2.6.19.1 x86_64)
=================================================================
System uname: 2.6.19.1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
Last Sync: Thu, 15 Feb 2007 04:29:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.12-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://gentoo.osuosl.org http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en_GB"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 a52 aac aalib acl aim alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amr apache2 aper avi berkdb bzip2 bzlib cdparanoia crypt dga directfb divx4linux dlloader dri dv dvb dvb_cards_tda1004x dvd dvdr dvdread elibc_glibc encode faac faad ffmpeg fla flash gd-external gdbm gif gmp gphoto2 gtk2 hardened ieee1394 imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 jabber jack java jpeg kde kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en_GB lirc_devices_devinput live lm_sensors logrotate lzo mad maildir matroska mozbranding moznopango mozsvg mp3 mp4 mpeg mpeg4 mplayer msn network nls nodrm nsplugin ntlm ogg oggvorbis opengl oscar pam pcre perl php png postgres quotas rrdtool rtc samba sdl session sftplogging ssl svg tcpd tga theora tiff truetype truetype-fonts ukcid underscores unicode userland_GNU v4l v4l2 video_cards_nv video_cards_nvidia voodoo3 vorbis xanim xfs xml2 xorg xv xvid xvmc yahoo yv12 zaptel zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


torro ~ # emerge -pv proftpd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-ftp/proftpd-1.3.1_rc2  USE="acl hardened* ipv6 nls pam ssl tcpd -authfile -clamav -ifsession -ldap -mysql -ncurses -noauthunix -opensslcrypt -postgres -radius -rewrite (-selinux) -shaper -sitemisc -softquota -vroot -xinetd" 0 kB

Total size of downloads: 0 kB

Tried it with hardened, and -hardened.


dmesg shows:
proftpd[10731]: segfault at 0000000000000009 rip 0000000000426228 rsp 00007fff374b4078 error 4
proftpd[11379]: segfault at 0000000000000009 rip 0000000000426228 rsp 00007ffff459f208 error 4
proftpd[11623]: segfault at 0000000000000009 rip 0000000000426228 rsp 00007fff49bca828 error 4
proftpd[13482]: segfault at 0000000000000009 rip 0000000000426228 rsp 00007fff4f236e78 error 4
proftpd[16457]: segfault at 0000000000000009 rip 0000000000426228 rsp 00007fff81ca88e8 error 4
proftpd[16686]: segfault at 0000000000000009 rip 0000000000426228 rsp 00007fffe82aae68 error 4
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-15 17:27:09 UTC
Attach a backtrace and reopen then...

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Calum 2007-02-15 18:16:59 UTC
Is this what you need?

#0  0x0000000000426228 in ?? ()
#1  0x00000000004263d4 in ?? ()
#2  0x0000000000426e22 in ?? ()
#3  0x00000000004270e4 in ?? ()
#4  0x000000000040d30f in ?? ()
#5  0x00002b2f1e8a9ce0 in __libc_start_main () from /lib/libc.so.6
#6  0x0000000000407aca in ?? ()
#7  0x00007fff8cd99148 in ?? ()
#8  0x000000000000001c in ?? ()
#9  0x0000000000000001 in ?? ()
#10 0x00007fff8cd9a625 in ?? ()
#11 0x0000000000000000 in ?? ()


PS. mozilla-firefox-bin used to crash all the time on my AMD64 box. I think that was due to some threading library.
Let me know if you need anything more
Comment 3 Calum 2007-02-15 18:18:26 UTC
(gdb) bt full
#0  0x0000000000426228 in ?? ()
No symbol table info available.
#1  0x00000000004263d4 in ?? ()
No symbol table info available.
#2  0x0000000000426e22 in ?? ()
No symbol table info available.
#3  0x00000000004270e4 in ?? ()
No symbol table info available.
#4  0x000000000040d30f in ?? ()
No symbol table info available.
#5  0x00002ad1d7550ce0 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#6  0x0000000000407aca in ?? ()
No symbol table info available.
#7  0x00007fffd40f1498 in ?? ()
No symbol table info available.
#8  0x000000000000001c in ?? ()
No symbol table info available.
#9  0x0000000000000001 in ?? ()
No symbol table info available.
#10 0x00007fffd40f3625 in ?? ()
No symbol table info available.
#11 0x0000000000000000 in ?? ()
No symbol table info available.
Comment 4 Calum 2007-02-15 18:21:57 UTC
Stopped stripping:

Starting program: /usr/sbin/proftpd

Program received signal SIGSEGV, Segmentation fault.
symtab_hash (name=0x9 <Address 0x9 out of bounds>) at modules.c:113
113     modules.c: No such file or directory.
        in modules.c
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-02-15 18:22:22 UTC
Go read the howto a couple more time, the backtrace is completely useless.
Comment 6 Calum 2007-02-15 18:24:14 UTC
OK, here's a bt full.

#0  symtab_hash (name=0x9 <Address 0x9 out of bounds>) at modules.c:113
        cp = (unsigned char *) 0x9 <Address 0x9 out of bounds>
        total = 0
#1  0x00000000004263d4 in pr_stash_add_symbol (sym_type=9, data=0x591b30) at modules.c:181
        i = 0
        buf = '\0' <repeats 864 times>, "h\212]\000\000\000\000\000\210\212]\000\000\000\000\000\001\000\000\000\000\000\000\000I\211]", '\0' <repeats 69 times>, "8\210]\000\000\000\000\000�bG\000\000\000\000\000vF\000\000\000\000\0008\210]", '\0' <repeats 13 times>, "\001\000\000\000\000\000\000\000\200�\000\000\000\000\000�237B\000\000\000\000"
        sym = (struct stash *) 0x5d9328
        idx = 5839664
#2  0x0000000000426e22 in pr_module_load (m=0x591a40) at modules.c:600
        cmdtab = (cmdtable *) 0x591b60
        buf = "mod_facl.c", '\0' <repeats 245 times>
#3  0x00000000004270e4 in modules_init () at modules.c:707
        m = (module *) 0x591a40
        i = 10
#4  0x000000000040d30f in main (argc=1, argv=0x7fff4827c638, envp=0x7fff4827c5a0) at main.c:2737
        optc = 0
        show_version = 0
        main_umask = (mode_t *) 0x0
        peerlen = 16
        peer = {sa_family = 0, sa_data = '\0' <repeats 13 times>}
Comment 7 Calum 2007-02-15 18:29:49 UTC
OK, fixed it.

USE="-acl" CFLAGS="-O2 -pipe -ggdb" FEATURES="nostrip" emerge -v proftpd

produced a working proftpd.

Looks like the ACL use flag barfed it.

I'll leave it for someone else to close in case this something that needs to go upstream?
Comment 8 satoshi okuno 2007-05-02 00:40:51 UTC
"acl module" has simply mistake.
I made patch.

*** work.org/proftpd-1.3.1rc2/modules/mod_facl.c        Tue Dec 19 11:42:53 2006
--- work/proftpd-1.3.1rc2/modules/mod_facl.c    Wed May  2 09:17:47 2007
***************
*** 823,832 ****
    "facl",

    /* Module configuration directive handlers */
!   NULL,

    /* Module command handlers */
!   facl_conftab,

    /* Module authentication handlers */
    NULL,
--- 823,832 ----
    "facl",

    /* Module configuration directive handlers */
!   facl_conftab,

    /* Module command handlers */
!   NULL,

    /* Module authentication handlers */
    NULL,
Comment 9 Luca Longinotti (RETIRED) gentoo-dev 2007-05-11 22:03:22 UTC
Fixed in net-ftp/proftpd-1.3.1_rc2-r1.
Best regards, CHTEKK.