libapache2-mod-php7.2 crash when apache enmod php5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php7.2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
trigger: enmod php7.2 first, then enmod php5
vagrant box: https:/
Core dump file:
https:/
Backtrace:
vagrant@
GNU gdb (Ubuntu 7.7.1-0ubuntu5~
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/
warning: File "/home/
To enable execution of this file add
add-auto-
line to your configuration file "$HOME/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "$HOME/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb) source /home/vagrant/peda
/home/vagrant/peda: Success.
(gdb) source /home/vagrant/
gdb-peda$ bt
No stack.
gdb-peda$ run -k start
Starting program: /usr/sbin/apache2 -k start
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.2.15. Set the 'ServerName' directive globally to suppress this message
Program received signal SIGSEGV, Segmentation fault.
[------
RAX: 0x7ffff3e96a50 (<gc_collect_
RBX: 0x7fffffffd180 --> 0x7ffff1e8debe (push r15)
RCX: 0x5f ('_')
RDX: 0x7ffff2058cc0 (<zend_
RSI: 0x7ffff212b6d7 ("E_ZEND_DTRACE")
RDI: 0x7fffffffee86 ("ERNAME=root")
RBP: 0x1
RSP: 0x7fffffffd120 --> 0x0
RIP: 0x7ffff2030d60 (mov QWORD PTR [rax],rdx)
R8 : 0xffff
R9 : 0x1
R10: 0x7ffff71b6440 (<__strncmp_
R11: 0xc ('\x0c')
R12: 0x7ffff4654260 --> 0x7ffff2132003 ("apache2handler")
R13: 0x7ffff241a280 --> 0x7ffff2132003 ("apache2handler")
R14: 0x7ffff7fba028 --> 0x7ffff7ff2028 --> 0x7ffff7ff4028 --> 0x7ffff7ff8028 --> 0x0
R15: 0x7ffff241a3a0 --> 0x133c7de000000a8
EFLAGS: 0x10246 (carry PARITY adjust ZERO sign trap INTERRUPT direction overflow)
[------
0x7ffff2030d4b: lea rdx,[rip+0x27f6e] # 0x7ffff2058cc0 <zend_gc_
0x7ffff2030d52: mov QWORD PTR [rax],0x0
0x7ffff2030d59: mov rax,QWORD PTR [rip+0x3d2f90] # 0x7ffff2403cf0
=> 0x7ffff2030d60: mov QWORD PTR [rax],rdx
0x7ffff2030d63: call 0x7ffff20d6d10
0x7ffff2030d68: mov edi,0x3f
0x7ffff2030d6d: call 0x7ffff1e8c260 <malloc@plt>
0x7ffff2030d72: test rax,rax
[------
0000| 0x7fffffffd120 --> 0x0
0008| 0x7fffffffd128 --> 0x1
0016| 0x7fffffffd130 --> 0x7ffff4654260 --> 0x7ffff2132003 ("apache2handler")
0024| 0x7fffffffd138 --> 0x7ffff1fcf34b (<php_module_
0032| 0x7fffffffd140 --> 0x1558092c0
0040| 0x7fffffffd148 --> 0x555555809160 --> 0x5555558097c0 --> 0x7ffff72aee73 ("gethostbyaddr_r")
0048| 0x7fffffffd150 --> 0x2d746e610000007c ('|')
0056| 0x7fffffffd158 ("ubuntu-
[------
Legend: code, data, rodata, value
Stopped reason: SIGSEGV
0x00007ffff2030d60 in ?? () from /usr/lib/
gdb-peda$ bt
#0 0x00007ffff2030d60 in ?? () from /usr/lib/
#1 0x00007ffff1fcf34b in php_module_startup () from /usr/lib/
#2 0x00007ffff20d81e5 in ?? () from /usr/lib/
#3 0x00007ffff20d8dd5 in ?? () from /usr/lib/
#4 0x00005555555ad259 in ap_run_post_config ()
#5 0x000055555558b398 in main ()
#6 0x00007ffff714df45 in __libc_start_main (main=0x5555555
argv=
stack_
#7 0x000055555558b6af in _start ()
gdb-peda$
summary: |
- libapache2-mod-php7.2 crash when apache was enmoded php5 + libapache2-mod-php7.2 crash when apache enmod php5 |
description: | updated |
Trusty: libapache2-mod-php5
(xenial 7.0)
Bionic: libapache2-mod-php (being 7.2)
There never should be a system where both exist at once, even in awkward upgrade scenarios, but you described a case on trusty.
What is the source of the php 7.2 on trusty?
I assume that is not part of the Ubuntu supported archive, but please maybe I overlook something as I'm puzzled?