Discussion:
[ProFTPD-committers] [Bug 3653] Segfault with DefaultServer off and no matching server for incoming IP address
(too old to reply)
b***@horde.net
2011-05-13 14:05:06 UTC
Permalink
http://bugs.proftpd.org/show_bug.cgi?id=3653

TJ Saunders <***@castaglia.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@castaglia.org

--- Comment #1 from TJ Saunders <***@castaglia.org> 2011-05-13 10:05:05 EDT ---
Could you provide the output from `proftpd -V' please, so that I can make sure
that my attempts to reproduce the issue locally are using the same build-time
settings?
--
Configure bugmail: http://bugs.proftpd.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@horde.net
2011-05-13 14:12:08 UTC
Permalink
http://bugs.proftpd.org/show_bug.cgi?id=3653

--- Comment #2 from Paul Howarth <***@city-fan.org> 2011-05-13 10:12:07 EDT ---
(In reply to comment #1)
Post by b***@horde.net
Could you provide the output from `proftpd -V' please, so that I can make sure
that my attempts to reproduce the issue locally are using the same build-time
settings?
# proftpd -V
Compile-time Settings:
Version: 1.3.4rc2 (devel)
Platform: LINUX [Linux 2.6.35.12-90.fc14.x86_64 x86_64]
Built: Fri Apr 8 2011 10:50:33 BST
Built With:
configure '--build=x86_64-unknown-linux-gnu'
'--host=x86_64-unknown-linux-gnu' '--program-prefix='
'--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64'
'--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib'
'--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--libexecdir=/usr/libexec/proftpd' '--localstatedir=/var/run/proftpd'
'--enable-ctrls' '--enable-dso' '--enable-facl' '--enable-ipv6'
'--enable-memcache' '--enable-nls' '--enable-openssl' '--enable-pcre'
'--enable-shadow' '--enable-tests' '--with-libraries=/usr/lib64/mysql'
'--with-includes=/usr/include/mysql'
'--with-modules=mod_readme:mod_auth_pam:mod_tls:mod_vroot'
'--with-shared=mod_sql:mod_sql_passwd:mod_sql_mysql:mod_sql_postgres:mod_quotatab:mod_quotatab_file:mod_quotatab_ldap:mod_quotatab_radius:mod_quotatab_sql:mod_ldap:mod_ban:mod_wrap:mod_ctrls_admin:mod_facl:mod_load:mod_radius:mod_ratio:mod_rewrite:mod_site_misc:mod_exec:mod_shaper:mod_geoip:mod_wrap2:mod_wrap2_file:mod_wrap2_sql:mod_copy:mod_deflate:mod_ifversion:mod_qos:mod_sftp:mod_sftp_pam:mod_sftp_sql:mod_tls_shmcache:mod_tls_memcache:mod_ifsession'
'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-unknown-linux-gnu'
'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'

CFLAGS: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall
LDFLAGS: -L$(top_srcdir)/lib -L/usr/lib64/mysql -L/usr/lib64/mysql
-L/usr/lib64
LIBS: -lacl -lpcreposix -lpcre -lssl -lcrypto -lssl -lcrypto -lcap
-lmemcached -lmemcachedutil -lssl -lcrypto -lpam -lsupp -lcrypt -ldl -ldl
-lz

Files:
Configuration File:
/etc/proftpd.conf
Pid File:
/var/run/proftpd/proftpd.pid
Scoreboard File:
/var/run/proftpd/proftpd.scoreboard
Header Directory:
/usr/include/proftpd
Shared Module Directory:
/usr/libexec/proftpd

Features:
- Autoshadow support
+ Controls support
+ curses support
- Developer support
+ DSO support
+ IPv6 support
+ Largefile support
- Lastlog support
+ Memcache support
+ ncursesw support
+ NLS support
+ OpenSSL support (FIPS enabled)
+ PCRE support
+ POSIX ACL support
+ Shadow file support
+ Sendfile support
+ Trace support

Tunable Options:
PR_TUNABLE_BUFFER_SIZE = 1024
PR_TUNABLE_DEFAULT_RCVBUFSZ = 8192
PR_TUNABLE_DEFAULT_SNDBUFSZ = 8192
PR_TUNABLE_GLOBBING_MAX_MATCHES = 100000
PR_TUNABLE_GLOBBING_MAX_RECURSION = 8
PR_TUNABLE_HASH_TABLE_SIZE = 40
PR_TUNABLE_NEW_POOL_SIZE = 512
PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80
PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30
PR_TUNABLE_SELECT_TIMEOUT = 30
PR_TUNABLE_TIMEOUTIDENT = 10
PR_TUNABLE_TIMEOUTIDLE = 600
PR_TUNABLE_TIMEOUTLINGER = 30
PR_TUNABLE_TIMEOUTLOGIN = 300
PR_TUNABLE_TIMEOUTNOXFER = 300
PR_TUNABLE_TIMEOUTSTALLED = 3600
PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10
--
Configure bugmail: http://bugs.proftpd.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@horde.net
2011-05-13 15:39:11 UTC
Permalink
http://bugs.proftpd.org/show_bug.cgi?id=3653

TJ Saunders <***@castaglia.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |***@debian.org,
| |***@maytech.net
Platform|PC |All
Summary|Segfault with DefaultServer |Segfault with
|off and no matching server |"DefaultServer off" and no
|for incoming IP address |matching server for
| |incoming IP address
OS/Version|Linux |All

--- Comment #3 from TJ Saunders <***@castaglia.org> 2011-05-13 11:39:10 EDT ---
Thanks! I am able to reproduce the issue locally now; will hopefully have a
fix shortly.
--
Configure bugmail: http://bugs.proftpd.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@horde.net
2011-05-13 15:52:40 UTC
Permalink
http://bugs.proftpd.org/show_bug.cgi?id=3653

TJ Saunders <***@castaglia.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|1.3.4rc2 |1.3.4rc1

--- Comment #4 from TJ Saunders <***@castaglia.org> 2011-05-13 11:52:39 EDT ---
Fortunately, it looks like this bug first appeared in 1.3.4rc1, as fallout from
the reordering of things in order to support the mod_qos module (Bug#3353).
This means that it doesn't affect the 1.3.3 releases.
--
Configure bugmail: http://bugs.proftpd.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@horde.net
2011-05-13 15:55:20 UTC
Permalink
http://bugs.proftpd.org/show_bug.cgi?id=3653

--- Comment #5 from TJ Saunders <***@castaglia.org> 2011-05-13 11:55:19 EDT ---
Created attachment 3617
--> http://bugs.proftpd.org/attachment.cgi?id=3617
Fixes bug

This segfault was caused by a null pointer dereference when trying to set
socket options; the socket option code was looking for configuration directives
using a null pointer (since there was no vhost found for handling the requested
IP address). Some re-reordering of the code fixes the problem, and restores
the behavior ("500 No server available") from the 1.3.3 release.
--
Configure bugmail: http://bugs.proftpd.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@horde.net
2011-05-13 15:57:10 UTC
Permalink
http://bugs.proftpd.org/show_bug.cgi?id=3653

TJ Saunders <***@castaglia.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED

--- Comment #6 from TJ Saunders <***@castaglia.org> 2011-05-13 11:57:09 EDT ---
Patch committed to CVS.
--
Configure bugmail: http://bugs.proftpd.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Loading...