php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73523 Apache2 process crashes on zip library
Submitted: 2016-11-15 08:44 UTC Modified: 2018-06-24 04:25 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: agolovenkin at gmail dot com Assigned:
Status: No Feedback Package: zip (PECL)
PHP Version: 7.0.13 OS: Debian GNU/Linux stretch/sid
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: agolovenkin at gmail dot com
New email:
PHP Version: OS:

 

 [2016-11-15 08:44 UTC] agolovenkin at gmail dot com
Description:
------------
After several days of working apache2 crash when we try to use ZIP functions.
There is workaround to fix it just restart http server.

ii  libzip4:amd64                          1.1.2-1.1
ii  apache2                                2.4.23-5
ii  php7.0                                 7.0.12-1



Actual result:
--------------
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007eff82eb9371 in fill_window (s=s@entry=0x560763568280) at deflate.c:1473
1473    deflate.c: No such file or directory.
(gdb) bt
#0  0x00007eff82eb9371 in fill_window (s=s@entry=0x560763568280) at deflate.c:1473
#1  0x00007eff82eb9e68 in deflate_slow (s=0x560763568280, flush=0) at deflate.c:1745
#2  0x00007eff82ebae54 in deflate (strm=0x560763567f70, flush=0) at deflate.c:903
#3  0x00007eff6b4f33ba in ?? () from /usr/lib/x86_64-linux-gnu/libzip.so.4
#4  0x00007eff6b4f2678 in ?? () from /usr/lib/x86_64-linux-gnu/libzip.so.4
#5  0x00007eff6b4ea962 in ?? () from /usr/lib/x86_64-linux-gnu/libzip.so.4
#6  0x00007eff6b4eadef in zip_close () from /usr/lib/x86_64-linux-gnu/libzip.so.4
#7  0x00007eff6b7038d9 in ?? () from /usr/lib/php/20151012/zip.so
#8  0x00007eff81a98eaa in dtrace_execute_internal () from /usr/lib/apache2/modules/libphp7.0.so
#9  0x00007eff81b2e710 in ?? () from /usr/lib/apache2/modules/libphp7.0.so
#10 0x00007eff81ae996b in execute_ex () from /usr/lib/apache2/modules/libphp7.0.so
#11 0x00007eff81a98e48 in dtrace_execute_ex () from /usr/lib/apache2/modules/libphp7.0.so
#12 0x00007eff81b2e84d in ?? () from /usr/lib/apache2/modules/libphp7.0.so
#13 0x00007eff81ae996b in execute_ex () from /usr/lib/apache2/modules/libphp7.0.so
#14 0x00007eff81a98e48 in dtrace_execute_ex () from /usr/lib/apache2/modules/libphp7.0.so
#15 0x00007eff81b3dc07 in zend_execute () from /usr/lib/apache2/modules/libphp7.0.so
#16 0x00007eff81aa8fd3 in zend_execute_scripts () from /usr/lib/apache2/modules/libphp7.0.so
#17 0x00007eff81a48d30 in php_execute_script () from /usr/lib/apache2/modules/libphp7.0.so
#18 0x00007eff81b3f56a in ?? () from /usr/lib/apache2/modules/libphp7.0.so
#19 0x000056076139e950 in ap_run_handler (r=r@entry=0x7eff85c8d0a0) at config.c:170
#20 0x000056076139eee6 in ap_invoke_handler (r=r@entry=0x7eff85c8d0a0) at config.c:434
#21 0x00005607613b6993 in ap_process_async_request (r=0x7eff85c8d0a0) at http_request.c:410
#22 0x00005607613b6aa0 in ap_process_request (r=r@entry=0x7eff85c8d0a0) at http_request.c:445
#23 0x00005607613b2c8d in ap_process_http_sync_connection (c=0x7eff85cc4290) at http_core.c:210
#24 ap_process_http_connection (c=0x7eff85cc4290) at http_core.c:251
#25 0x00005607613a87a0 in ap_run_process_connection (c=c@entry=0x7eff85cc4290) at connection.c:42
#26 0x00005607613a8cf0 in ap_process_connection (c=c@entry=0x7eff85cc4290, csd=<optimized out>) at connection.c:226
#27 0x00007eff820966bf in child_main (child_num_arg=child_num_arg@entry=1, child_bucket=child_bucket@entry=0) at prefork.c:723
#28 0x00007eff82096944 in make_child (s=0x7eff85dec470, slot=1, bucket=0) at prefork.c:824
#29 0x00007eff8209780d in perform_idle_server_maintenance (p=<optimized out>) at prefork.c:932
#30 prefork_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized out>) at prefork.c:1128
#31 0x000056076138350e in ap_run_mpm (pconf=0x7eff85e16028, plog=0x7eff85de5028, s=0x7eff85dec470) at mpm_common.c:94
#32 0x000056076137c77d in main (argc=<optimized out>, argv=<optimized out>) at main.c:783

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-15 08:48 UTC] agolovenkin at gmail dot com
Zip version	1.13.4
Libzip version	1.1.2
 [2018-03-05 13:22 UTC] remi@php.net
-Status: Open +Status: Feedback
 [2018-03-05 13:22 UTC] remi@php.net
Does it still segfault with latest version ?
 [2018-06-24 04:25 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Sep 29 01:03:36 2021 UTC