|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-10 03:03 UTC] druid at mail dot cz
[2003-07-10 11:51 UTC] sniper@php.net
[2003-07-12 06:11 UTC] druid at mail dot cz
[2003-07-12 09:11 UTC] sniper@php.net
[2003-07-12 09:44 UTC] druid at mail dot cz
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 04:00:02 2025 UTC |
Description: ------------ Php always crashes at start. I've tested it with sapi. I've got the latest gcc and glibc: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs Configured with: ../gcc-3.3/configure --prefix=/usr --enable-shared --enable-threads=posix --with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu --enable-__vt_8iostream Thread model: posix gcc version 3.3 ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-zlib --enable-bcmath --with-bz2=shared --enable-calendar \ --enable-exif --enable-ftp --with-ttf --with-gettext \ --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir \ --with-mysql --with-mysql-sock --with-recode=shared \ --with-imap --with-imap-ssl=/usr/local/ssl \ --enable-debug glibc-2.3.2 Reproduce code: --------------- SAPI_API void sapi_initialize_empty_request(TSRMLS_D) { SG(server_context) = NULL; SG(request_info).request_method = NULL; SG(request_info).auth_user = SG(request_info).auth_password = NULL; SG(request_info).content_type_dup = NULL; } The last line is the problem. Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. sapi_initialize_empty_request () at /usr/src/php-4.3.2/main/SAPI.c:437 437 SG(request_info).content_type_dup = NULL; (gdb) bt #0 sapi_initialize_empty_request () at /usr/src/php-4.3.2/main/SAPI.c:437 #1 0x081841d7 in php_module_startup (sf=0x82e02e0, additional_modules=0x82e02e0, num_additional_modules=137240573) at /usr/src/php-4.3.2/main/main.c:1083 #2 0x6e690078 in ?? ()