[php-maint] Bug#535148: Crashes are suhosin related

Wilco Baan Hofman wilco at baanhofman.nl
Tue Jul 28 12:06:11 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've noticed the same problem. Also, I've experienced no more
segmentation faults after disabling the suhosin.so extension by
commenting extension=suhosin.so in
/etc/php5/apache2/conf.d/suhosin.ini and obviously no heap corruption
errors, but that's to be expected. Everything seems to work as
expected that way.

This is on a Core 2 Duo, amd64 distribution. php5 is running as
apache2 module.

Package version information:
libapache2-mod-php5    5.2.10.dfsg.1-2
apache2                2.2.11-7

My gdb backtrace is below.

Regards,

Wilco Baan Hofman

- --

#0  php_register_variable_ex (var_name=0x7f9ace1bfd9e
"HTTP_USER_AGENT", val=0xae6fd8, track_vars_array=0x1)
    at /build/buildd/php5-5.2.10.dfsg.1/main/php_variables.c:74
#1  0x00007f9ad568870a in php_sapi_filter (arg=-837026402,
var=0x7f9ace1bfd9e "HTTP_USER_AGENT", val=0x0, val_len=181,
new_val_len=0x14)
    at /build/buildd/php5-5.2.10.dfsg.1/ext/filter/filter.c:396
#2  0x00007f9ad57f4162 in sapi_getenv (name=0x7f9ace1bfd9e
"HTTP_USER_AGENT", name_len=3771512544) at
/build/buildd/php5-5.2.10.dfsg.1/main/SAPI.c:950
#3  0x00007f9ace1be6b4 in suhosin_generate_key () from
/usr/lib/php5/20060613/suhosin.so
#4  0x00007f9ace1beb2c in ?? () from /usr/lib/php5/20060613/suhosin.so
#5  0x00007f9ad56fa786 in php_session_start () at
/build/buildd/php5-5.2.10.dfsg.1/ext/session/session.c:481
#6  0x00007f9ad56fae59 in zif_session_start (ht=-837026402,
return_value=0x9f21a8, return_value_ptr=0xae6fd8,
this_ptr=0x2e3320524c432054,
    return_value_used=808660533) at
/build/buildd/php5-5.2.10.dfsg.1/ext/session/session.c:1796
#7  0x00007f9ace1bac9d in ?? () from /usr/lib/php5/20060613/suhosin.so
#8  0x00007f9ad586ac31 in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fffe0cccf00) at
/build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:202
#9  0x00007f9ad58543b4 in execute (op_array=0x9eaab8) at
/build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:92
#10 0x00007f9ace1bb126 in ?? () from /usr/lib/php5/20060613/suhosin.so
#11 0x00007f9ad5855ef4 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
(execute_data=0x7fffe0ccd2f0)
    at /build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:2097
#12 0x00007f9ad58543b4 in execute (op_array=0x9e8548) at
/build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:92
#13 0x00007f9ace1bb126 in ?? () from /usr/lib/php5/20060613/suhosin.so
#14 0x00007f9ad5855ef4 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
(execute_data=0x7fffe0ccdee0)
    at /build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:2097
#15 0x00007f9ad58543b4 in execute (op_array=0x9e73d8) at
/build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:92
#16 0x00007f9ace1bb126 in ?? () from /usr/lib/php5/20060613/suhosin.so
#17 0x00007f9ad58306d8 in zend_execute_scripts (type=32767,
retval=0x0, file_count=-523443992) at
/build/buildd/php5-5.2.10.dfsg.1/Zend/zend.c:1215
#18 0x00007f9ad57eb698 in php_execute_script (primary_file=0x9eaab8)
at /build/buildd/php5-5.2.10.dfsg.1/main/main.c:2046
#19 0x00007f9ad58a5d15 in php_handler (r=0x5) at
/build/buildd/php5-5.2.10.dfsg.1/sapi/apache2handler/sapi_apache2.c:651
#20 0x000000000043b623 in ap_run_handler (r=0xa89898) at
/build/buildd/apache2-2.2.11/server/config.c:159
#21 0x000000000043eb4f in ap_invoke_handler (r=0xa89898) at
/build/buildd/apache2-2.2.11/server/config.c:373
#22 0x000000000044bbd8 in ap_process_request (r=0xa89898) at
/build/buildd/apache2-2.2.11/modules/http/http_request.c:282
#23 0x0000000000448cd8 in ap_process_http_connection (c=0xa42f08) at
/build/buildd/apache2-2.2.11/modules/http/http_core.c:190
#24 0x0000000000442a13 in ap_run_process_connection (c=0xa42f08) at
/build/buildd/apache2-2.2.11/server/connection.c:43
#25 0x000000000045017d in child_main (child_num_arg=<value optimized
out>) at /build/buildd/apache2-2.2.11/server/mpm/prefork/prefork.c:680
#26 0x00000000004504d4 in make_child (s=0x678938, slot=8) at
/build/buildd/apache2-2.2.11/server/mpm/prefork/prefork.c:777
#27 0x00000000004510f6 in perform_idle_server_maintenance
(_pconf=<value optimized out>, plog=<value optimized out>, s=<value
optimized out>)
    at /build/buildd/apache2-2.2.11/server/mpm/prefork/prefork.c:912
#28 ap_mpm_run (_pconf=<value optimized out>, plog=<value optimized
out>, s=<value optimized out>)
    at /build/buildd/apache2-2.2.11/server/mpm/prefork/prefork.c:1116
#29 0x0000000000428425 in main (argc=3, argv=0x7fffe0cd0a58) at
/build/buildd/apache2-2.2.11/server/main.c:742
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpu6YwACgkQ1C6FlsCYaHWdKgCgq0fNOkuTRpRK99wZUyRx/CA0
2HYAoKPR3V04c7deZTs0hU/FQ5alF0Fu
=i6wI
-----END PGP SIGNATURE-----






More information about the pkg-php-maint mailing list