Bug#779078: apache2-bin: event mpm: child segfault in notify_suspend causes parent to exit during log rotation

2015-05-10 Thread Stefan Fritsch
Hi,

On Tuesday 05 May 2015 14:01:56, Michael Ablassmeier wrote:
 we recently migrated over an OTRS instance from another system to
 debian jessie and it appears we may have the same issue, sporadic
 segfauls, but we do not use the event_mpm but the default worker:
 
  [Tue May 05 13:02:19.929973 2015] [mpm_worker:notice] [pid
 41460:tid 14028953424] AH00292: Apache/2.4.10 (Debian)
 OpenSSL/1.0.1k mod_perl/2.0.9dev Perl/v5.20.2 configured --
 resuming normal operations

This can't really be the same bug, because the original issue was in 
mpm_event specific code.


  root@support:/opt/otrs# grep -c Segmentation
 /var/log/apache2/error.log 36
 
 find dump output attached. It seems the problem went away after
 switching to prefork worker.

I have trouble finding out which thread caused a crash in that dump 
and why. Do still have the core and see if gdb gave any interesting 
info when loading the core dump, before the bt command? And please 
open a new bug report for this one.

There is one thread in

Thread 1 (Thread 0x7f3ff08ce700 (LWP 41765)):
#0  0x7f3ff9c7dac2 in modperl_interp_unselect () from 
/usr/lib/apache2/modules/mod_perl.so
No symbol table info available.
#1  0x7f3ffd5819be in run_cleanups (cref=optimized out) at 
/tmp/buildd/apr-1.5.1/memory/unix/apr_pools.c:2352
c = optimized out

This could mean that there are some thread safety issues in mod_perl. 
If this turns out to be the culprit, having a dump with an unstripped 
mod_perl would be nice. Though the bug report should go to mod_perl, 
then.

Cheers,
Stefan


-- 
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/2089951.irVbJULO9b@k



Bug#779078: apache2-bin: event mpm: child segfault in notify_suspend causes parent to exit during log rotation

2015-04-01 Thread Stefan Fritsch
Hi Chris,

On Tuesday 24 February 2015 09:36:58, Chris Boot wrote:
 We have been experiencing segmentation faults in apache2 when using
 the event MPM in jessie. These manifest themselves with log entries

I have uploaded a fix to unstable. It would be great if you could grab 
2.4.10-11 from there and verify that it actually fixes the issues for 
you. Thanks in advance.

Cheers,
Stefan


-- 
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/1947690.aPNkg06L8v@k



Bug#779078: apache2-bin: event mpm: child segfault in notify_suspend causes parent to exit during log rotation

2015-03-18 Thread jaroslav
We got hit by this bug too and reported it to upstream. See 
https://bz.apache.org/bugzilla/show_bug.cgi?id=57268 , applying the 
patch suggested in there to Debian source solved the issue for us.



--
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/91a6a7f25856dec43f3dfbf87a583...@thinline.cz



Bug#779078: apache2-bin: event mpm: child segfault in notify_suspend causes parent to exit during log rotation

2015-02-24 Thread Chris Boot
Package: apache2-bin
Version: 2.4.10-9
Severity: important

Dear maintainers,

We have been experiencing segmentation faults in apache2 when using the
event MPM in jessie. These manifest themselves with log entries that
look like:

[Thu Feb 19 14:26:22.477619 2015] [core:notice] [pid 14018:tid
140488395114368] AH00052: child pid 14024 exit signal Segmentation fault
(11)
[Thu Feb 19 19:26:22.282410 2015] [core:notice] [pid 19271:tid
140434662569856] AH00052: child pid 19276 exit signal Segmentation fault
(11)
[Thu Feb 19 19:35:33.842016 2015] [core:notice] [pid 19271:tid
140434662569856] AH00052: child pid 15360 exit signal Segmentation fault
(11)

When logs are rotated nightly and apache2 is instructed to reopen its
logs, the parent process exits altogether:

[Fri Feb 20 00:52:14.175939 2015] [mpm_event:notice] [pid 19271:tid
140434662569856] AH00493: SIGUSR1 received.  Doing graceful restart
[Fri Feb 20 00:52:15.279574 2015] [core:notice] [pid 19271] AH00060: seg
fault or similar nasty error detected in the parent process

We have enabled core dumps and managed to capture one crash (so far)
when a child process crashes, which is included below as
apache2.core.20150220-1158.txt (output from gdb with debug packages
installed).

I will attempt to obtain and analyse further core dumps, but our client
may prefer to switch to the worker MPM in order to keep their sites
working, in which case I will be limited in what more I can do.

I have set severity important because this is a crash in the default
MPM for jessie, and our client's environment doesn't strike me as
particularly unusual so this may well affect many users.

Regards,
Chris

-- Package-specific info:


*** loaded modules
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 actions_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgid_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 fcgid_module (shared)
 filter_module (shared)
 mime_module (shared)
 mpm_event_module (shared)
 negotiation_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)
 status_module (shared)

*** apache2.core.20150220-1158.txt
12:58 997236 ~ # gdb /usr/sbin/apache2 apache2.core.20150220-1158
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 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 x86_64-linux-gnu.
Type show configuration for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type help.
Type apropos word to search for commands related to word...
Reading symbols from /usr/sbin/apache2...Reading symbols from
/usr/lib/debug//usr/sbin/apache2...done.
done.
[New LWP 385]
[New LWP 380]
[New LWP 395]
[New LWP 389]
[New LWP 386]
[New LWP 394]
[New LWP 397]
[New LWP 388]
[New LWP 390]
[New LWP 392]
[New LWP 383]
[New LWP 420]
[New LWP 399]
[New LWP 424]
[New LWP 413]
[New LWP 402]
[New LWP 422]
[New LWP 416]
[New LWP 414]
[New LWP 403]
[New LWP 408]
[New LWP 409]
[New LWP 406]
[New LWP 411]
[New LWP 405]
[New LWP 418]
[New LWP 384]
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x7f3e1fa57ab2 in notify_suspend (cs=optimized out) at event.c:887
887 event.c: No such file or directory.
(gdb) thread apply all bt full

Thread 27 (Thread 0x7f3e1d422700 (LWP 384)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1  0x7f3e2313977d in apr_thread_cond_wait (cond=optimized out,
mutex=optimized out) at /tmp/buildd/apr-1.5.1/locks/unix/thread_cond.c:68
No locals.
#2  0x7f3e1fa5b205 in ap_queue_pop_something (queue=0x7f3e239575c8,
sd=0x7f3e1d421e70, ecs=0x7f3e1d421e78, p=0x7f3e1d421e80,
te_out=0x7f3e1d421e88) at fdqueue.c:438
elem = optimized out
rv = optimized out
#3  0x7f3e1fa5778f in worker_thread (thd=0x7f3e23957664, dummy=0x80)
at event.c:1823
thread_slot = 1
csd = 0x7f3e0c61f0b0
cs = 0x7f3e0c61f2b8
ptrans = 0x7f3e0c61f028
is_idle = 0
te = 0x0
#4  0x7f3e22f090a4 in