ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#35861 [Opn->Bgs]: Segfault with -D_LARGEFILE_SOURCE
by sniper other posts by this author
Dec 31 2005 10:26AM messages near this date
#35861 [NEW]: Segfault with -D_LARGEFILE_SOURCE | #35861 [Bgs->Opn]: Segfault with -D_LARGEFILE_SOURCE
ID:               35861
 Updated by:       sniper@[...].net
 Reported By:      alberty at neptunelabs dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Linux i686
 PHP Version:      4CVS-2005-12-31 (CVS)
 New Comment:

Yeah, it's glibc thing. Nothing to do with PHP. And nothing has change
in PHP that could have broke it either.


Previous Comments:
------------------------------------------------------------------------

[2005-12-31 19:10:17] alberty at neptunelabs dot com

Lol,
since eternal times it's implemented in PHP. Please read the first
sentence in the documentation:
http://www.php.net/manual/en/ref.filesystem.php

------------------------------------------------------------------------

[2005-12-31 17:38:35] sniper@[...].net

There never has been any such support in PHP. There's something else
that is getting wrong with that setting.

------------------------------------------------------------------------

[2005-12-31 17:25:01] alberty at neptunelabs dot com

Description:
------------
Segfault with -D_LARGEFILE_SOURCE

A segfault prevent in the current cvs tree of php 4.4 that you can use
PHP with "large" files.

If you use these CFLAGS:

CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

PHP crashes on the first GET request. This is a new bug, because in the
first 4.4.2rcX releases PHP works fine.

I've used Apache 2.2.0 (prefork) and PHP 4.4.2cvs.

Best regards,

Steve

Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212994816 (LWP 13568)]
0xb78d336d in _zend_is_inconsistent (ht=0x0, file=0xb7a626c8
"/usr/src/php_4_4/Zend/zend_hash.c", line=1007) at
/usr/src/php_4_4/Zend/zend_hash.c:94
94              if (ht-> inconsistent==HT_OK) {
(gdb) bt
#0  0xb78d336d in _zend_is_inconsistent (ht=0x0, file=0xb7a626c8
"/usr/src/php_4_4/Zend/zend_hash.c", line=1007) at
/usr/src/php_4_4/Zend/zend_hash.c:94
#1  0xb78d5c5b in zend_hash_internal_pointer_reset_ex (ht=0x0, pos=0x0)
at /usr/src/php_4_4/Zend/zend_hash.c:1007
#2  0xb78ea291 in apply_config (dummy=0x0) at
/usr/src/php_4_4/sapi/apache2handler/apache_config.c:161
#3  0xb78e97dd in php_handler (r=0x828e688) at
/usr/src/php_4_4/sapi/apache2handler/sapi_apache2.c:487
#4  0x0807c726 in ap_run_handler (r=0x828e688) at config.c:157
#5  0x0807ce5f in ap_invoke_handler (r=0x828e688) at config.c:371
#6  0x080aace3 in ap_process_request (r=0x828e688) at
http_request.c:258
#7  0x080a7cbc in ap_process_http_connection (c=0x82885d0) at
http_core.c:171
#8  0x08083e51 in ap_run_process_connection (c=0x82885d0) at
connection.c:43
#9  0x08084255 in ap_process_connection (c=0x82885d0, csd=0x8288438) at
connection.c:178
#10 0x080b8bd6 in child_main (child_num_arg=0) at prefork.c:640
#11 0x080b8cb9 in make_child (s=0x80f1348, slot=0) at prefork.c:680
#12 0x080b91b3 in ap_mpm_run (_pconf=0x80ea0a8, plog=0x8124190,
s=0x80f1348) at prefork.c:956
#13 0x080674ff in main (argc=2, argv=0xbfdd2a94) at main.c:712



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35861&edit=1
Thread:
Alberty At Neptunelabs Dot Com
sniper
Alberty At Neptunelabs Dot Com
sniper

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved