apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John L. Poole" <jlpool...@gmail.com>
Subject Re: testprocmutex hangs
Date Wed, 22 Dec 2010 14:20:06 GMT
Sander,

Here's what I did:
    plug apr-1.4.2 # pwd
    /usr/local/src/apr-1.4.2
    plug apr-1.4.2 # echo $CFLAGS
    -DDEBUG -O0
    plug apr-1.4.2 #

    ./configure  --enable-maintainer-mode >configure_output2.txt
    make clean
    make
    make install

I can post the configure_output2.txt somewhere, if it would be helpful.
Then I tried running

     plug apr-1.4.2 # gdb /usr/sbin/apache2
     GNU gdb (Gentoo 7.0.1 p1) 7.0.1
     Copyright (C) 2009 Free Software Foundation, Inc.
     License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
     This is free software: you are free to change and redistribute it.
     There is NO WARRANTY, to the extent permitted by law.  Type "show 
copying"
     and "show warranty" for details.
     This GDB was configured as "armv5tel-softfloat-linux-gnueabi".
     For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
     Reading symbols from /usr/sbin/apache2...(no debugging symbols 
found)...done.
     (gdb) run
     Starting program: /usr/sbin/apache2
     [Thread debugging using libthread_db enabled]

     Program received signal SIGSEGV, Segmentation fault.
     0x402910e4 in apr_palloc () from /usr/lib/libapr-1.so.0
     (gdb) bt
     #0  0x402910e4 in apr_palloc () from /usr/lib/libapr-1.so.0
     #1  0x4028b988 in apr_array_make () from /usr/lib/libapr-1.so.0
     #2  0x4010eb54 in apr_hook_sort_register () from 
/usr/lib/libaprutil-1.so.0
     #3  0x0003d36c in ap_hook_create_connection ()
     #4  0x00030a88 in ?? ()
     Cannot access memory at address 0x0
     #5  0x00030a88 in ?? ()
     Cannot access memory at address 0x0
     Backtrace stopped: previous frame identical to this frame (corrupt 
stack?)
     (gdb) quit
     A debugging session is active.

             Inferior 1 [process 5570] will be killed.

     Quit anyway? (y or n) y
     plug apr-1.4.2 # gdb /usr/sbin/apache2
     GNU gdb (Gentoo 7.0.1 p1) 7.0.1
     Copyright (C) 2009 Free Software Foundation, Inc.
     License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
     This is free software: you are free to change and redistribute it.
     There is NO WARRANTY, to the extent permitted by law.  Type "show 
copying"
     and "show warranty" for details.
     This GDB was configured as "armv5tel-softfloat-linux-gnueabi".
     For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
     Reading symbols from /usr/sbin/apache2...(no debugging symbols 
found)...done.
     (gdb) run -X
     Starting program: /usr/sbin/apache2 -X
     [Thread debugging using libthread_db enabled]

     Program received signal SIGSEGV, Segmentation fault.
     0x402910e4 in apr_palloc () from /usr/lib/libapr-1.so.0
     (gdb) bt
     #0  0x402910e4 in apr_palloc () from /usr/lib/libapr-1.so.0
     #1  0x4028b988 in apr_array_make () from /usr/lib/libapr-1.so.0
     #2  0x4010eb54 in apr_hook_sort_register () from 
/usr/lib/libaprutil-1.so.0
     #3  0x0003d36c in ap_hook_create_connection ()
     #4  0x00030a88 in ?? ()
     Cannot access memory at address 0x0
     #5  0x00030a88 in ?? ()
     Cannot access memory at address 0x0
     Backtrace stopped: previous frame identical to this frame (corrupt 
stack?)
     (gdb) q
     A debugging session is active.

             Inferior 1 [process 5580] will be killed.

     Quit anyway? (y or n) y
     plug apr-1.4.2 #

Am I missing something, as the output above seems the same as when I did 
not have debugging

John

On 12/20/2010 7:55 AM, Sander Temme wrote:
> John,
>
> On Dec 13, 2010, at 6:25 AM, John Poole wrote:
>
>> Reading symbols from /usr/sbin/apache2...(no debugging symbols found)...done.
>> (gdb) run
>> Starting program: /usr/sbin/apache2
>> [Thread debugging using libthread_db enabled]
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x402910e4 in apr_palloc () from /usr/lib/libapr-1.so.0
> Two requests:
>
> 1) could you send a backtrace (bt) taken after the segfault and
> 2) try this on a copy of Apache compiled with debug symbols:
>
> CFLAGS="-DDEBUG -O0"; export CFLAGS
> ./configure --prefix=/somewhere (...) --enable-maintainer-mode (...)
> make
> make install
>
> You don't seem to get far enough for Apache to fork() its child processes, but if you
want to prevent forking you can tell gdb to
>
> run -X
>
> Thanks,
>
> S.
>

-- 

John Laurence Poole
P.O. Box 6566
Napa CA 94581-6566
707-812-1323 office


Mime
View raw message