Segmentation fault uploading a csv using ZF1.12.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Hello, I have a problem with an app, is a form to upload a csv file using fopen and fgetcsv, but looks like the error is before this two functions, is when the code is on Zend_File_
I have the same app on a server with 12.04 with no problem. I read similar problems and solutions like:
set opcache.
increase output_buffering
set export USE_ZEND_ALLOC=0
set export ZEND_MM_
didnt work, some more info:
xdebug is installed and disabled
apc is not installed
opcache is disabled
php:
PHP 5.5.9-1ubuntu4.11 (cli) (built: Jul 2 2015 15:23:08)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
apache:
2.4.7-1ubuntu4.4
Server version: Apache/2.4.7 (Ubuntu)
Server built: Mar 10 2015 13:05:59
ubuntu:
Description: Ubuntu 14.04.1 LTS
Release: 14.04
bt:
#0 zend_mm_
#1 0x00007f5194614c4c in _zend_mm_free_int (heap=0x7f519cb
#2 0x00007f5194428a03 in apprentice_unmap (map=0x7f518c8d
#3 0x00007f5194428a75 in mlist_free (mlist=
#4 0x00007f5194429861 in file_ms_free (ms=0x7f519cee8bf0) at /build/
#5 0x00007f519443203a in magic_close (ms=<optimized out>) at /build/
#6 0x00007f5194427b75 in finfo_resource_
#7 0x00007f519464bcc0 in list_entry_
#8 0x00007f5194649b01 in zend_hash_
nKeyLength=
#9 0x00007f519464bea1 in _zend_list_delete (id=<optimized out>) at /build/
#10 0x00007f519462c150 in _zval_dtor (zvalue=
#11 i_zval_ptr_dtor (zval_ptr=
#12 _zval_ptr_dtor (zval_ptr=
#13 0x00007f519465e207 in zend_object_
#14 0x00007f519465e239 in zend_objects_
#15 0x00007f51946640cc in zend_objects_
at /build/
#16 0x00007f51946640f3 in zend_objects_
#17 0x00007f519462c150 in _zval_dtor (zvalue=
#18 i_zval_ptr_dtor (zval_ptr=
#19 _zval_ptr_dtor (zval_ptr=
#20 0x00007f5194649c08 in zend_hash_destroy (ht=0x7f518c6dd3e0) at /build/
#21 0x00007f519463b07b in _zval_dtor_func (zvalue=
#22 0x00007f519462c150 in _zval_dtor (zvalue=
#23 i_zval_ptr_dtor (zval_ptr=
#24 _zval_ptr_dtor (zval_ptr=
#25 0x00007f519465e207 in zend_object_
#26 0x00007f519465e239 in zend_objects_
#27 0x00007f5194663c37 in zend_objects_
at /build/
#28 0x00007f519462c863 in shutdown_executor () at /build/
#29 0x00007f519463c032 in zend_deactivate () at /build/
#30 0x00007f51945dc3ad in php_request_
#31 0x00007f51946edc2f in php_apache_
#32 php_handler (r=<optimized out>) at /build/
#33 0x00007f519b072830 in ap_run_handler (r=0x7f519ae1b998) at config.c:169
#34 0x00007f519b072d79 in ap_invoke_handler (r=r@entry=
#35 0x00007f519b087dfc in ap_internal_
#36 0x00007f5193091cfc in handler_redirect (r=0x7f518d0530a0) at mod_rewrite.c:5063
#37 0x00007f519b072830 in ap_run_handler (r=0x7f518d0530a0) at config.c:169
#38 0x00007f519b072d79 in ap_invoke_handler (r=r@entry=
#39 0x00007f519b08833a in ap_process_
#40 0x00007f519b088614 in ap_process_request (r=r@entry=
#41 0x00007f519b0850b2 in ap_process_
#42 ap_process_
#43 0x00007f519b07be70 in ap_run_
#44 0x00007f519b07c258 in ap_process_
#45 0x00007f51958dc767 in child_main (child_
#46 0x00007f51958dc9a6 in make_child (s=0x7f519afe1de0, slot=slot@entry=4) at prefork.c:800
#47 0x00007f51958dca06 in startup_children (number_to_start=1) at prefork.c:818
#48 0x00007f51958dd6e0 in prefork_run (_pconf=<optimized out>, plog=0x7f519afd
#49 0x00007f519b0596de in ap_run_mpm (pconf=
#50 0x00007f519b052e76 in main (argc=3, argv=0x7fff123d
Thank you for taking the time to report this bug and helping to make Ubuntu better.
It'll help if you can try the relevant latest upstream versions of PHP directly (without packaging) to see if the bug affects upstream also, and report it upstream if it is present and not fixed there. If you can locate an upstream fix, we can look into getting it fixed in Ubuntu also.
Others may also be able to help you better if you can provide a minimal failure case and steps to reproduce the problem.