From:             seanius at debian dot org
Operating system: Debian GNU/Linux
PHP version:      5.2.0
PHP Bug Type:     Apache2 related
Bug description:  compiling in largefile support causes immediate segfaults

Description:
------------
following the directions at

http://se2.php.net/filesystem

i'm attempting to introduce largefile support into the debian packages
before we release etch.  on my own system (amd64) it seems to work just
fine, but on other systems (x86?  maybe some other arches?) the apache
children immediately segfault.

there are a couple bugs on this in the Debian BTS:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=397465

note that this also occurs with php 4.4.4 as well

Reproduce code:
---------------
compile with CFLAGS including

-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

Expected result:
----------------
support for large files

Actual result:
--------------
[Tue Nov 07 16:26:20 2006] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-1
mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Tue Nov 07 16:26:23 2006] [notice] child pid 4685 exit signal
Segmentation fault (11)

backtrace:


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1215985440 (LWP 24081)]
0xb75864a4 in zend_hash_internal_pointer_reset_ex () from
/usr/lib/apache2/modules/libphp5.so
(gdb) bt
#0  0xb75864a4 in zend_hash_internal_pointer_reset_ex ()
   from /usr/lib/apache2/modules/libphp5.so
   #1  0xb7600948 in apply_config () from
   /usr/lib/apache2/modules/libphp5.so
   #2  0xb75ffa5a in php_ap2_register_hook () from
   /usr/lib/apache2/modules/libphp5.so
   #3  0x08074587 in ap_run_handler ()
   #4  0x08077731 in ap_invoke_handler ()
   #5  0x08084728 in ap_process_request ()
   #6  0x080819ce in ap_register_input_filter ()
   #7  0x0807b3c7 in ap_run_process_connection ()
   #8  0x08088704 in ap_graceful_stop_signalled ()
   #9  0x08088964 in ap_graceful_stop_signalled ()
   #10 0x0808972a in ap_mpm_run ()
   #11 0x080621ef in main ()

-- 
Edit bug report at http://bugs.php.net/?id=39428&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39428&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39428&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39428&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39428&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39428&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39428&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39428&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39428&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39428&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39428&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39428&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39428&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39428&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39428&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39428&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39428&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39428&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39428&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39428&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39428&r=mysqlcfg

Reply via email to