httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Lefoul <benjamin.lef...@nwise.se>
Subject Re: mod_ftp segaults on rheloids
Date Fri, 11 Nov 2016 13:02:10 GMT
On Fri, 2016-11-11 at 13:22 +0100, Rainer Canavan wrote:
> On Fri, Nov
11, 2016 at 10:27 AM, Benjamin Lefoul
> <benjamin.lefoul@nwise.se>
wrote:
> > 
> > On Fri, 2016-11-11 at 08:53 +0000, Nick Kew wrote:
> > > 
>
> > Did you build mod_ftp yourself on a distro-provided httpd?
> > Yes.
I did build myself from the latest svn.
> > I installed:
> > httpd-devel-
2.4.6-40.sl7.4.x86_64 from Scientific Linux 7
> > httpd-devel-2.4.6-
40.el7.centos.4.x86_64 on centOS7
> > (so, the same, essentially), as
well as the "Development Tools"
> > group.
> 
> If you have a core dump,
try analyzing it with gdb, otherwise, since
> you can apparently
trivially reproduce the segfault, just attach gdb
> to
> any httpd
process (except maybe the one that has pid 1 as its parent)
> with
> 
>
gdb $(which httpd) <PID>
> 
> it will tell you that lots of debug symbols
are absent, and how to
> run
> debuginfo-install
> to install them. Do
that as instructed, re-run gdb, verify that no
> "symbols missing"
messages
> are printed on startup. Execute "cont" at the gdb prompt and
start
> causing segfaults  again
> until gdb returns to the prompt. Do a
"bt full". Not sure if httpd-
> dev
> is the right place, it
> might be a
bug in CentOS and/or the ancient httpd they're using.
> 

Thanks for your help and patience. I wasn't able to get the prompt back
so after a while I just C-c'd. Any comment?
This is what I get:

(gdb) cont
Continuing.
Detaching after fork from child process 13499.
Detaching after fork from child process 13500.
Detaching after fork from child process 13501.
Detaching after fork from child process 13502.
Detaching after fork from child process 13503.
^C
Program received signal SIGINT, Interrupt.
0x00007f598fc773f3 in __select_nocancel () at ../sysdeps/unix/syscall-
template.S:81
81      T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) bt full
#0  0x00007f598fc773f3 in __select_nocancel () at
../sysdeps/unix/syscall-template.S:81
No locals.
#1  0x00007f599038f585 in apr_sleep (t=t@entry=1000000) at
time/unix/time.c:246
        tv = {tv_sec = 0, tv_usec = 713807}
#2  0x00007f59916b1dd1 in ap_wait_or_timeout (status=status@entry=0x7ff
dd22c85f8, exitcode=exitcode@entry=0x7ffdd22c85fc, ret=ret@entry=0x7ffd
d22c8600, p=<optimized out>, s=<optimized out>) at mpm_common.c:195
        rv = <optimized out>
#3  0x00007f5986e8a13e in prefork_run (_pconf=<optimized out>,
plog=<optimized out>, s=<optimized out>) at prefork.c:1016
        status = 11
        pid = {pid = -1, in = 0x7f599308ef58, out = 0x34a9000034a9, err
= 0x7f599300c340}
        child_slot = <optimized out>
        exitwhy = APR_PROC_SIGNAL
        processed_status = <optimized out>
        index = <optimized out>
        remaining_children_to_start = 0
        rv = <optimized out>
#4  0x00007f59916b15be in ap_run_mpm (pconf=pconf@entry=0x7f5992fe3158,
plog=0x7f5993010378, s=0x7f599300c340) at mpm_common.c:96
        pHook = <optimized out>
        n = 0
        rv = -1
#5  0x00007f59916aab46 in main (argc=2, argv=0x7ffdd22c88f8) at
main.c:777
        c = 68 'D'
        showcompile = 0
        showdirectives = 0
        confname = 0x7f59916e68af "conf/httpd.conf"
        def_server_root = 0x7f59916e68a4 "/etc/httpd"
        temp_error_log = 0x0
        error = <optimized out>
        process = 0x7f5992fe1238
        pconf = 0x7f5992fe3158
        plog = 0x7f5993010378
        ptemp = 0x7f599300e368
        pcommands = 0x7f5993005268
        opt = 0x7f5993005358
        rv = <optimized out>
        mod = 0x7f5991904098 <ap_prelinked_modules+24>
        opt_arg = 0x7ffdd22c9f7d "FOREGROUND"
        signal_server = <optimized out>




And the error log:

[Fri Nov 11 12:50:45.402984 2016] [mpm_prefork:notice] [pid 13481]
AH00163: Apache/2.4.6 (CentOS) mod_ftp/1.0.1-dev OpenSSL/1.0.1e-fips
mod_fcgid/2.3.9 configured -- resuming normal operations
[Fri Nov 11 12:50:45.403003 2016] [core:notice] [pid 13481] AH00094:
Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Nov 11 12:50:45.427847 2016] [ftp:notice] [pid 13482] FTP low
numbered port daemon waiting for port requests
[Fri Nov 11 12:51:26.868223 2016] [core:notice] [pid 13481] AH00052:
child pid 13484 exit signal Segmentation fault (11)
[Fri Nov 11 12:51:56.902013 2016] [core:notice] [pid 13481] AH00052:
child pid 13485 exit signal Segmentation fault (11)
[Fri Nov 11 12:52:15.923595 2016] [core:notice] [pid 13481] AH00052:
child pid 13486 exit signal Segmentation fault (11)
[Fri Nov 11 12:52:22.932293 2016] [core:notice] [pid 13481] AH00052:
child pid 13487 exit signal Segmentation fault (11)
[Fri Nov 11 12:52:25.935810 2016] [core:notice] [pid 13481] AH00052:
child pid 13488 exit signal Segmentation fault (11)
Mime
View raw message