From:
Operating system: x86_64 GNU/Linux
PHP version: 5.3.9
Package: *General Issues
Bug Type: Bug
Bug description:segmentation fault, use max_input_vars
Description:
------------
segmentation fault, use max_input_vars
$ gdb /tmp/php-5.3.9/sapi/cgi/php-cgi
(gdb) run -d max_input_vars=1 /tmp/cgitest.php a[]=1 v[]=2
Starting program: /tmp/php-5.3.9/sapi/cgi/php-cgi -d max_input_vars=1
/tmp/cgitest.php a[]=1 v[]=2
warning: no loadable sections found in added symbol-file system-supplied
DSO at
0x2aaaaaaab000
[Thread debugging using libthread_db enabled]
Unknown(0) : Warning - Unknown: Input variables exceeded 1. To increase the
limit change max_input_vars in php.ini.
Unknown(0) : Warning - Unknown: Input variables exceeded 1. To increase the
limit change max_input_vars in php.ini.
Unknown(0) : Warning - Unknown: Input variables exceeded 1. To increase the
limit change max_input_vars in php.ini.
Program received signal SIGSEGV, Segmentation fault.
0x000000000077ba65 in php_register_variable_ex (var_name=0xfe6618 "v[]",
val=0x7fffffffc100, track_vars_array=0xfe5eb8)
at /tmp/php-5.3.9/main/php_variables.c:207
207 symtable1 = Z_ARRVAL_PP(gpc_element_p);
(gdb) bt
#0 0x000000000077ba65 in php_register_variable_ex (var_name=0xfe6618
"v[]",
val=0x7fffffffc100, track_vars_array=0xfe5eb8)
at /tmp/php-5.3.9/main/php_variables.c:207
#1 0x00000000005886d9 in php_sapi_filter (arg=1, var=0xfe6618 "v[]",
val=0x7fffffffc1c0, val_len=1, new_val_len=0x7fffffffc1b4)
at /tmp/php-5.3.9/ext/filter/filter.c:461
#2 0x000000000077c6ca in php_default_treat_data (arg=1, str=0x0,
destArray=0x0)
at /tmp/php-5.3.9/main/php_variables.c:408
#3 0x000000000077d5b0 in php_hash_environment () at /tmp/php-
5.3.9/main/php_variables.c:716
#4 0x0000000000769448 in php_request_startup () at /tmp/php-
5.3.9/main/main.c:1468
#5 0x00000000008d0438 in main (argc=6, argv=0x7fffffffe928) at /tmp/php-
5.3.9/sapi/cgi/cgi_main.c:2035
Test script:
---------------
<?php
print_r( $_GET );
--
Edit bug report at https://bugs.php.net/bug.php?id=60708&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60708&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60708&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=60708&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60708&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=60708&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60708&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=60708&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=60708&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=60708&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=60708&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=60708&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=60708&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=60708&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60708&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=60708&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60708&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=60708&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=60708&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=60708&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=60708&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=60708&r=mysqlcfg