ID:               39418
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at fiddaman dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Solaris 10
 PHP Version:      5.2.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip




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

[2006-11-08 21:47:01] php at fiddaman dot net

Same result:

# mdb /var/core/60001-httpd-25059
Loading modules: [ libc.so.1 libuutil.so.1 ld.so.1 ]
> ::stack
libphp5.2.0.so`_zval_ptr_dtor+0x14(ffffffff7fffe618, 100455bf8, 0, 0,
0, 1)
libphp5.2.0.so`zend_do_fcall_common_helper_SPEC+0x364(ffffffff7fffe720,
0, 0, 
1004459f8, 0, 0)
libphp5.2.0.so`execute+0x160(1004553b0, ffffffff7ffff068,
ffffffff79053360, 
ffffffff7fffe94c, 4, 0)
libphp5.2.0.so`zend_execute_scripts+0x128(8, 0, 3, ffffffff792b7780, 
ffffffff7ffff068, 1004554a8)
libphp5.2.0.so`php_execute_script+0x210(0, ffffffff79171078, 6, 0,
70687000, 
7068702d)
libphp5.2.0.so`php_handler+0x634(1003afbe8, 25252525, 70000000,
80808080, ff00, 80808080)
ap_run_handler+0x84(1003afbe8, 0, 1003afbe8, 1003a9ea8, 1003afe68,
1003afe78)
ap_invoke_handler+0x1c4(1003afbe8, 0, 4, 1003afbe8, 0, 1003afe91)
ap_process_request+0x94(1003afbe8, 4, 1003afbe8, 0, 0, 0)
ap_process_http_connection+0x6c(1003a9ea8, 1003a9bb8, 1003a9bb8, 
fffffffffffffff8, 0, 1003a9f59)
ap_run_process_connection+0x84(1003a9ea8, 1003a9bb8, 1003a9bb8, 0,
1003a7c00, 
1003adb68)
ap_process_connection+0x88(1003a9ea8, 1003a9bb8, 1003a9bb8, 0,
1003a7c00, 
1003adb68)
child_main+0x7f4(0, 1000d850c, ffffffff7d006ae8, 0, ffffffff7d202000, 
ffffffff7d5eef40)
make_child+0x230(100233628, 0, 0, ffffffff7d5ef440, ffffffff7d202000,
0)
startup_children+0x7c(1, 2, 5, 100225d68, 100382fd0, 0)
ap_mpm_run+0x4f8(100225d68, 10026dfa8, 100233628, 100233628, 0, 0)
main+0x1040(3, ffffffff7ffffcc8, ffffffff7ffffce8, 100219b80,
100000000, 
ffffffff7d200140)
_start+0x7c(0, 0, 0, 0, 0, 0)

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

[2006-11-08 21:39:34] [EMAIL PROTECTED]

Please try the following patch:
http://bb.prohost.org/patch/trim.txt

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

[2006-11-08 21:29:34] php at fiddaman dot net

Changing summary to include ltrim()

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

[2006-11-08 21:28:25] php at fiddaman dot net

Ok, --disable-all reminded me that I had an auto-included header on
that web site so the test code wasn't as simple as I thought. Sorry for
the confusion.

I've narrowed down the code which is causing the crash to:

ltrim('/test.php', '/');

and it still crashes with --disable-all

% gcc -v
Using built-in specs.
Target: sparcv9-sun-solaris2.9
Configured with: /data/src/build/gcc-4.1.1/configure
--prefix=/opt/GNUgcc --enable-languages=c,c++ --disable-nls
sparcv9-sun-solaris2.9
Thread model: posix
gcc version 4.1.1

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

[2006-11-08 15:54:49] [EMAIL PROTECTED]

I don't have access to Solaris 10/64bit, but I can't reproduce the
problem on any other OS I can find around here (Linux, FreeBSD, MacOS,
AIX).
Please try to build it with --disable-all and see if it changes
anything.
What compiler do you use, btw?

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/39418

-- 
Edit this bug report at http://bugs.php.net/?id=39418&edit=1

Reply via email to