[Kolab-devel] [issue4771] apache segfaults with "*** glibc detected *** /kolab/sbin/apache: double free or corruption (out)"

Gavin McCullagh issues at kolab.org
Wed Jul 27 11:25:40 CEST 2011


Hi,

I've had two Kolab Apache segfaults in the past couple of weeks.  We're a
64-bit compiled Kolab install v2.3.2 on Debian Lenny.

Is there a particular thing I should do help debug this?  Is there a standard
way to get a core dump from apache (I presume I set the ulimit -c somewhere or
use a sysctl?).

Gavin


####################################################################################
[Sun Jul 17 06:25:09 2011] [notice] Apache/2.2.15 (OpenPKG/CURRENT)
mod_ssl/2.2.15 OpenSSL/1.0.0a PHP/5.2.13 configured -- resuming normal operations
*** glibc detected *** /kolab/sbin/apache: double free or corruption (out):
0x00007f8a44ba5d60 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f8a448ca9a8]
/lib/libc.so.6(cfree+0x76)[0x7f8a448ccab6]
/kolab/libexec/apache/mod_php.so(fs_give+0x3d)[0x7f8a43adf6ed]
/kolab/libexec/apache/mod_php.so(imap_send+0xc7)[0x7f8a43b13d07]
/kolab/libexec/apache/mod_php.so(imap_annotation_work+0x18)[0x7f8a43b15058]
/kolab/libexec/apache/mod_php.so(imap_getannotation+0x59)[0x7f8a43b150e9]
/kolab/libexec/apache/mod_php.so(zif_imap_getannotation+0x2f5)[0x7f8a4391a0b5]
/kolab/libexec/apache/mod_php.so[0x7f8a43a83132]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f8a43a75873]
/kolab/libexec/apache/mod_php.so[0x7f8a43a82bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f8a43a75873]
/kolab/libexec/apache/mod_php.so[0x7f8a43a82bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f8a43a75873]
/kolab/libexec/apache/mod_php.so[0x7f8a43a82bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f8a43a75873]
/kolab/libexec/apache/mod_php.so[0x7f8a43a82bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f8a43a75873]
/kolab/libexec/apache/mod_php.so[0x7f8a43a82bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f8a43a75873]
/kolab/libexec/apache/mod_php.so[0x7f8a43a82bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f8a43a75873]
/kolab/libexec/apache/mod_php.so[0x7f8a43a82bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f8a43a75873]
/kolab/libexec/apache/mod_php.so(zend_execute_scripts+0x168)[0x7f8a43a56418]
/kolab/libexec/apache/mod_php.so(php_execute_script+0x1ff)[0x7f8a43a137bf]
/kolab/libexec/apache/mod_php.so[0x7f8a43ada7ad]
/kolab/sbin/apache(ap_run_handler+0x7a)[0x46aeda]
/kolab/sbin/apache(ap_invoke_handler+0x7c)[0x46e2fc]
/kolab/libexec/apache/mod_php.so[0x7f8a43ada7ad]
/kolab/sbin/apache(ap_run_handler+0x7a)[0x46aeda]
/kolab/sbin/apache(ap_invoke_handler+0x7c)[0x46e2fc]
/kolab/sbin/apache(ap_process_request+0x1ae)[0x4a764e]
/kolab/sbin/apache[0x4a4810]
/kolab/sbin/apache(ap_run_process_connection+0x72)[0x472212]
/kolab/sbin/apache[0x4c4934]
/kolab/sbin/apache[0x4c4bda]
/kolab/sbin/apache(ap_mpm_run+0x841)[0x4c54f1]
/kolab/sbin/apache(main+0x855)[0x4580a5]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f8a448751a6]
/kolab/sbin/apache[0x4573d9]
======= Memory map: ========
00400000-006c0000 r-xp 00000000 fd:00 139345                            
/kolab/sbin/apache
008c0000-008f6000 rw-p 002c0000 fd:00 139345                            
/kolab/sbin/apache
008f6000-00900000 rw-p 00000000 00:00 0
01fda000-0382f000 rw-p 00000000 00:00 0                                  [heap]
7f8a3c000000-7f8a3c021000 rw-p 00000000 00:00 0
7f8a3c021000-7f8a40000000 ---p 00000000 00:00 0
7f8a408e9000-7f8a408ff000 r-xp 00000000 09:00 8147                      
/lib/libgcc_s.so.1
7f8a408ff000-7f8a40aff000 ---p 00016000 09:00 8147                      
/lib/libgcc_s.so.1
7f8a40aff000-7f8a40b00000 rw-p 00016000 09:00 8147                      
/lib/libgcc_s.so.1
7f8a40b00000-7f8a40b04000 r-xp 00000000 09:00 8478                      
/lib/libnss_dns-2.7.so
7f8a40b04000-7f8a40d03000 ---p 00004000 09:00 8478                      
/lib/libnss_dns-2.7.so
7f8a40d03000-7f8a40d05000 rw-p 00003000 09:00 8478                      
/lib/libnss_dns-2.7.so
7f8a40d05000-7f8a42d05000 rw-s 00000000 00:08 887488513                 
/SYSV00000000 (deleted)
7f8a42d05000-7f8a42eb9000 r--p 00000000 09:01 562002                    
/usr/lib/locale/locale-archive
7f8a42eb9000-7f8a42ec3000 r-xp 00000000 09:00 8479                      
/lib/libnss_files-2.7.so
7f8a42ec3000-7f8a430c3000 ---p 0000a000 09:00 8479                      
/lib/libnss_files-2.7.so
7f8a430c3000-7f8a430c5000 rw-p 0000a000 09:00 8479                      
/lib/libnss_files-2.7.so
7f8a430c5000-7f8a430ce000 r-xp 00000000 09:00 8497                      
/lib/libnss_nis-2.7.so
7f8a430ce000-7f8a432ce000 ---p 00009000 09:00 8497                      
/lib/libnss_nis-2.7.so
7f8a432ce000-7f8a432d0000 rw-p 00009000 09:00 8497                      
/lib/libnss_nis-2.7.so
7f8a432d0000-7f8a432d7000 r-xp 00000000 09:00 8475                      
/lib/libnss_compat-2.7.so
7f8a432d7000-7f8a434d6000 ---p 00007000 09:00 8475                      
/lib/libnss_compat-2.7.so
7f8a434d6000-7f8a434d8000 rw-p 00006000 09:00 8475                      
/lib/libnss_compat-2.7.so
7f8a434d8000-7f8a434df000 r-xp 00000000 09:01 563347                    
/usr/lib/libltdl.so.3.1.6
7f8a434df000-7f8a436de000 ---p 00007000 09:01 563347                    
/usr/lib/libltdl.so.3.1.6
7f8a436de000-7f8a436df000 rw-p 00006000 09:01 563347                    
/usr/lib/libltdl.so.3.1.6
7f8a436df000-7f8a44364000 r-xp 00000000 fd:00 221261                    
/kolab/libexec/apache/mod_php.so
7f8a44364000-7f8a44564000 ---p 00c85000 fd:00 221261                    
/kolab/libexec/apache/mod_php.so
7f8a44564000-7f8a44626000 rw-p 00c85000 fd:00 221261                    
/kolab/libexec/apache/mod_php.so
7f8a44626000-7f8a4463b000 rw-p 00000000 00:00 0
7f8a4463b000-7f8a44651000 r-xp 00000000 09:00 8161                      
/lib/libpthread-2.7.so
7f8a44651000-7f8a44851000 ---p 00016000 09:00 8161                      
/lib/libpthread-2.7.so
7f8a44851000-7f8a44853000 rw-p 00016000 09:00 8161                      
/lib/libpthread-2.7.so
7f8a44853000-7f8a44857000 rw-p 00000000 00:00 0
7f8a44857000-7f8a449a1000 r-xp 00000000 09:00 8166                      
/lib/libc-2.7.so
7f8a449a1000-7f8a44ba0000 ---p 0014a000 09:00 8166                      
/lib/libc-2.7.so
7f8a44ba0000-7f8a44ba3000 r--p 00149000 09:00 8166                      
/lib/libc-2.7.so
7f8a44ba3000-7f8a44ba5000 rw-p 0014c000 09:00 8166                      
/lib/libc-2.7.so
7f8a44ba5000-7f8a44baa000 rw-p 00000000 00:00 0
7f8a44baa000-7f8a44bac000 r-xp 00000000 09:00 8170                      
/lib/libdl-2.7.so
7f8a44bac000-7f8a44dac000 ---p 00002000 09:00 8170                      
/lib/libdl-2.7.so
7f8a44dac000-7f8a44dae000 rw-p 00002000 09:00 8170                      
/lib/libdl-2.7.so
7f8a44dae000-7f8a44db6000 r-xp 00000000 09:00 8168                      
/lib/libcrypt-2.7.so
7f8a44db6000-7f8a44fb6000 ---p 00008000 09:00 8168                      
/lib/libcrypt-2.7.so
7f8a44fb6000-7f8a44fb8000 rw-p 00008000 09:00 8168                      
/lib/libcrypt-2.7.so
7f8a44fb8000-7f8a44fe6000 rw-p 00000000 00:00 0
7f8a44fe6000-7f8a44fee000 r-xp 00000000 09:00 8502                      
/lib/librt-2.7.so
7f8a44fee000-7f8a451ed000 ---p 00008000 09:00 8502                      
/lib/librt-2.7.so
7f8a451ed000-7f8a451ef000 rw-p 00007000 09:00 8502                      
/lib/librt-2.7.so
7f8a451ef000-7f8a45204000 r-xp 00000000 09:00 8470                      
/lib/libnsl-2.7.so
7f8a45204000-7f8a45403000 ---p 00015000 09:00 8470                      
/lib/libnsl-2.7.so
7f8a45403000-7f8a45405000 rw-p 00014000 09:00 8470                      
/lib/libnsl-2.7.so
7f8a45405000-7f8a45407000 rw-p 00000000 00:00 0
7f8a45407000-7f8a45417000 r-xp 00000000 09:00 8501                      
/lib/libresolv-2.7.so
7f8a45417000-7f8a45617000 ---p 00010000 09:00 8501                      
/lib/libresolv-2.7.so
7f8a45617000-7f8a45619000 rw-p 00010000 09:00 8501                      
/lib/libresolv-2.7.so
7f8a45619000-7f8a4561b000 rw-p 00000000 00:00 0
7f8a4561b000-7f8a4569d000 r-xp 00000000 09:00 8187                      
/lib/libm-2.7.so
7f8a4569d000-7f8a4589c000 ---p 00082000 09:00 8187                      
/lib/libm-2.7.so
7f8a4589c000-7f8a4589e000 rw-p 00081000 09:00 8187                      
/lib/libm-2.7.so
7f8a4589e000-7f8a458ba000 r-xp 00000000 09:00 8162                      
/lib/ld-2.7.so
7f8a4591d000-7f8a45924000 r--s 00000000 09:01 563345                    
/usr/lib/gconv/gconv-modules.cache
7f8a45a26000-7f8a45a37000 rw-s 00000000 00:08 13544121                  
/dev/zero (deleted)
7f8a45a37000-7f8a45ab2000 rw-s 00000000 00:08 36817638                  
/dev/zero (deleted)
7f8a45ab2000-7f8a45ab9000 rw-p 00000000 00:00 0
7f8a45ab9000-7f8a45abb000 rw-p 0001b000 09:00 8162                      
/lib/ld-2.7.so
7fffde217000-7fffde246000 rw-p 00000000 00:00 0                          [stack]
7fffde3a7000-7fffde3a8000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
####################################################################################



####################################################################################
sh: line 0: kill: (18552) - No such process
sh: line 0: kill: (3894) - No such process
sh: line 0: kill: (3894) - No such process
[Tue Jul 26 00:00:24 2011] [notice] child pid 24149 exit signal Segmentation
fault (11)
*** glibc detected *** /kolab/sbin/apache: double free or corruption (out):
0x00007f78daac6030 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f78da7ea9a8]
/lib/libc.so.6(cfree+0x76)[0x7f78da7ecab6]
/kolab/libexec/apache/mod_php.so(fs_give+0x3d)[0x7f78d99ff6ed]
/kolab/libexec/apache/mod_php.so(imap_send+0xc7)[0x7f78d9a33d07]
/kolab/libexec/apache/mod_php.so(imap_annotation_work+0x18)[0x7f78d9a35058]
/kolab/libexec/apache/mod_php.so(imap_getannotation+0x59)[0x7f78d9a350e9]
/kolab/libexec/apache/mod_php.so(zif_imap_getannotation+0x2f5)[0x7f78d983a0b5]
/kolab/libexec/apache/mod_php.so[0x7f78d99a3132]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f78d9995873]
/kolab/libexec/apache/mod_php.so[0x7f78d99a2bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f78d9995873]
/kolab/libexec/apache/mod_php.so[0x7f78d99a2bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f78d9995873]
/kolab/libexec/apache/mod_php.so[0x7f78d99a2bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f78d9995873]
/kolab/libexec/apache/mod_php.so[0x7f78d99a2bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f78d9995873]
/kolab/libexec/apache/mod_php.so[0x7f78d99a2bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f78d9995873]
/kolab/libexec/apache/mod_php.so[0x7f78d99a2bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f78d9995873]
/kolab/libexec/apache/mod_php.so[0x7f78d99a2bd1]
/kolab/libexec/apache/mod_php.so(execute+0x163)[0x7f78d9995873]
/kolab/libexec/apache/mod_php.so(zend_execute_scripts+0x168)[0x7f78d9976418]
/kolab/libexec/apache/mod_php.so(php_execute_script+0x1ff)[0x7f78d99337bf]
/kolab/libexec/apache/mod_php.so[0x7f78d99fa7ad]
/kolab/sbin/apache(ap_run_handler+0x7a)[0x46aeda]
/kolab/sbin/apache(ap_invoke_handler+0x7c)[0x46e2fc]
/kolab/sbin/apache(ap_process_request+0x1ae)[0x4a764e]
/kolab/sbin/apache[0x4a4810]
/kolab/sbin/apache(ap_run_process_connection+0x72)[0x472212]
/kolab/sbin/apache[0x4c4934]
/kolab/sbin/apache[0x4c4bda]
/kolab/sbin/apache(ap_mpm_run+0x841)[0x4c54f1]
/kolab/sbin/apache(main+0x855)[0x4580a5]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f78da7951a6]
/kolab/sbin/apache[0x4573d9]
======= Memory map: ========
00400000-006c0000 r-xp 00000000 fd:00 139345                            
/kolab/sbin/apache
008c0000-008f6000 rw-p 002c0000 fd:00 139345                            
/kolab/sbin/apache
008f6000-00900000 rw-p 00000000 00:00 0
00b31000-0214b000 rw-p 00000000 00:00 0                                  [heap]
7f78d0000000-7f78d0021000 rw-p 00000000 00:00 0
7f78d0021000-7f78d4000000 ---p 00000000 00:00 0
7f78d6606000-7f78d661c000 r-xp 00000000 09:00 8147                      
/lib/libgcc_s.so.1
7f78d661c000-7f78d681c000 ---p 00016000 09:00 8147                      
/lib/libgcc_s.so.1
7f78d681c000-7f78d681d000 rw-p 00016000 09:00 8147                      
/lib/libgcc_s.so.1
7f78d681d000-7f78d681f000 r-xp 00000000 09:01 565185                    
/usr/lib/gconv/ISO8859-1.so
7f78d681f000-7f78d6a1e000 ---p 00002000 09:01 565185                    
/usr/lib/gconv/ISO8859-1.so
7f78d6a1e000-7f78d6a20000 rw-p 00001000 09:01 565185                    
/usr/lib/gconv/ISO8859-1.so
7f78d6a20000-7f78d8a20000 rw-s 00000000 00:08 864550912                 
/SYSV00000000 (deleted)
7f78d8a20000-7f78d8a24000 r-xp 00000000 09:00 8478                      
/lib/libnss_dns-2.7.so
7f78d8a24000-7f78d8c23000 ---p 00004000 09:00 8478                      
/lib/libnss_dns-2.7.so
7f78d8c23000-7f78d8c25000 rw-p 00003000 09:00 8478                      
/lib/libnss_dns-2.7.so
7f78d8c25000-7f78d8dd9000 r--p 00000000 09:01 562002                    
/usr/lib/locale/locale-archive
7f78d8dd9000-7f78d8de3000 r-xp 00000000 09:00 8479                      
/lib/libnss_files-2.7.so
7f78d8de3000-7f78d8fe3000 ---p 0000a000 09:00 8479                      
/lib/libnss_files-2.7.so
7f78d8fe3000-7f78d8fe5000 rw-p 0000a000 09:00 8479                      
/lib/libnss_files-2.7.so
7f78d8fe5000-7f78d8fee000 r-xp 00000000 09:00 8497                      
/lib/libnss_nis-2.7.so
7f78d8fee000-7f78d91ee000 ---p 00009000 09:00 8497                      
/lib/libnss_nis-2.7.so
7f78d91ee000-7f78d91f0000 rw-p 00009000 09:00 8497                      
/lib/libnss_nis-2.7.so
7f78d91f0000-7f78d91f7000 r-xp 00000000 09:00 8475                      
/lib/libnss_compat-2.7.so
7f78d91f7000-7f78d93f6000 ---p 00007000 09:00 8475                      
/lib/libnss_compat-2.7.so
7f78d93f6000-7f78d93f8000 rw-p 00006000 09:00 8475                      
/lib/libnss_compat-2.7.so
7f78d93f8000-7f78d93ff000 r-xp 00000000 09:01 563347                    
/usr/lib/libltdl.so.3.1.6
7f78d93ff000-7f78d95fe000 ---p 00007000 09:01 563347                    
/usr/lib/libltdl.so.3.1.6
7f78d95fe000-7f78d95ff000 rw-p 00006000 09:01 563347                    
/usr/lib/libltdl.so.3.1.6
7f78d95ff000-7f78da284000 r-xp 00000000 fd:00 221261                    
/kolab/libexec/apache/mod_php.so
7f78da284000-7f78da484000 ---p 00c85000 fd:00 221261                    
/kolab/libexec/apache/mod_php.so
7f78da484000-7f78da546000 rw-p 00c85000 fd:00 221261                    
/kolab/libexec/apache/mod_php.so
7f78da546000-7f78da55b000 rw-p 00000000 00:00 0
7f78da55b000-7f78da571000 r-xp 00000000 09:00 8161                      
/lib/libpthread-2.7.so
7f78da571000-7f78da771000 ---p 00016000 09:00 8161                      
/lib/libpthread-2.7.so
7f78da771000-7f78da773000 rw-p 00016000 09:00 8161                      
/lib/libpthread-2.7.so
7f78da773000-7f78da777000 rw-p 00000000 00:00 0
7f78da777000-7f78da8c1000 r-xp 00000000 09:00 8166                      
/lib/libc-2.7.so
7f78da8c1000-7f78daac0000 ---p 0014a000 09:00 8166                      
/lib/libc-2.7.so
7f78daac0000-7f78daac3000 r--p 00149000 09:00 8166                      
/lib/libc-2.7.so
7f78daac3000-7f78daac5000 rw-p 0014c000 09:00 8166                      
/lib/libc-2.7.so
7f78daac5000-7f78daaca000 rw-p 00000000 00:00 0
7f78daaca000-7f78daacc000 r-xp 00000000 09:00 8170                      
/lib/libdl-2.7.so
7f78daacc000-7f78daccc000 ---p 00002000 09:00 8170                      
/lib/libdl-2.7.so
7f78daccc000-7f78dacce000 rw-p 00002000 09:00 8170                      
/lib/libdl-2.7.so
7f78dacce000-7f78dacd6000 r-xp 00000000 09:00 8168                      
/lib/libcrypt-2.7.so
7f78dacd6000-7f78daed6000 ---p 00008000 09:00 8168                      
/lib/libcrypt-2.7.so
7f78daed6000-7f78daed8000 rw-p 00008000 09:00 8168                      
/lib/libcrypt-2.7.so
7f78daed8000-7f78daf06000 rw-p 00000000 00:00 0
7f78daf06000-7f78daf0e000 r-xp 00000000 09:00 8502                      
/lib/librt-2.7.so
7f78daf0e000-7f78db10d000 ---p 00008000 09:00 8502                      
/lib/librt-2.7.so
7f78db10d000-7f78db10f000 rw-p 00007000 09:00 8502                      
/lib/librt-2.7.so
7f78db10f000-7f78db124000 r-xp 00000000 09:00 8470                      
/lib/libnsl-2.7.so
7f78db124000-7f78db323000 ---p 00015000 09:00 8470                      
/lib/libnsl-2.7.so
7f78db323000-7f78db325000 rw-p 00014000 09:00 8470                      
/lib/libnsl-2.7.so
7f78db325000-7f78db327000 rw-p 00000000 00:00 0
7f78db327000-7f78db337000 r-xp 00000000 09:00 8501                      
/lib/libresolv-2.7.so
7f78db337000-7f78db537000 ---p 00010000 09:00 8501                      
/lib/libresolv-2.7.so
7f78db537000-7f78db539000 rw-p 00010000 09:00 8501                      
/lib/libresolv-2.7.so
7f78db539000-7f78db53b000 rw-p 00000000 00:00 0
7f78db53b000-7f78db5bd000 r-xp 00000000 09:00 8187                      
/lib/libm-2.7.so
7f78db5bd000-7f78db7bc000 ---p 00082000 09:00 8187                      
/lib/libm-2.7.so
7f78db7bc000-7f78db7be000 rw-p 00081000 09:00 8187                      
/lib/libm-2.7.so
7f78db7be000-7f78db7da000 r-xp 00000000 09:00 8162                      
/lib/ld-2.7.so
7f78db83d000-7f78db844000 r--s 00000000 09:01 563345                    
/usr/lib/gconv/gconv-modules.cache
7f78db946000-7f78db957000 rw-s 00000000 00:08 42060021                  
/dev/zero (deleted)
7f78db957000-7f78db9d2000 rw-s 00000000 00:08 46388796                  
/dev/zero (deleted)
7f78db9d2000-7f78db9d9000 rw-p 00000000 00:00 0
7f78db9d9000-7f78db9db000 rw-p 0001b000 09:00 8162                      
/lib/ld-2.7.so
7fffe92b7000-7fffe92e5000 rw-p 00000000 00:00 0                          [stack]
7fffe93ff000-7fffe9400000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

####################################################################################

----------
messages: 28135
nosy: gavinmc
priority: bug
status: unread
title: apache segfaults with "*** glibc detected *** /kolab/sbin/apache: double free or corruption (out)"

______________________________________
Kolab issue tracker <issues at kolab.org>
<https://issues.kolab.org/issue4771>
______________________________________




More information about the devel mailing list