#34435 [Opn->Csd]: segmentation fault on object serialize
| From: | voxus at mail dot ru | Date: | Fri, 09 Sep 2005 12:45:10 +0000 |
| Subject: | #34435 [Opn->Csd]: segmentation fault on object serialize | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84796@lists.php.net to get a copy of this message | ||
ID: 34435
User updated by: voxus at mail dot ru
Reported By: voxus at mail dot ru
-Status: Open
+Status: Closed
Bug Type: Reproducible crash
Operating System: Gentoo Linux
PHP Version: 5CVS-2005-09-09
New Comment:
yep, patch by jorton solves problem.
thank you, guys. :-)
Previous Comments:
------------------------------------------------------------------------
[2005-09-09 14:26:36] m at aptual dot fi
The patch posted by jorton seems to have fixed the problem I
experienced, at least with this particular test case. I will do some
more testing on an actual application to see if this affects anything
else.
------------------------------------------------------------------------
[2005-09-09 14:02:30] jorton@php.net
Eh? The warning shows *precisely* why the code is broken on LP64
platforms. Reporter, can you try this patch.
http://people.apache.org/~jorton/php_bug34435.patch
------------------------------------------------------------------------
[2005-09-09 13:38:11] voxus at mail dot ru
reproducible with today's snapshot too.
------------------------------------------------------------------------
[2005-09-09 13:36:39] tony2001@php.net
Just ignore those warnings. They are just warnings and have nothing to
do with the issue.
You'd better provide more info and/or access to the server where it's
reproducible.
------------------------------------------------------------------------
[2005-09-09 12:51:24] etnu at etnu dot org
Experiencing the exact same problem with an identical configuration,
just using Apache 2.0.54 instead of 2.0.52.
Same hardware though; running under Debian 3.1 (Sarge)
export CFLAGS="-O2"
./configure \
--with-tidy \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr --with-mysqli=/usr/bin/mysql_config \
--prefix=/usr/local/apache2/php \
--with-config-file-path=/usr/local/apache2/php \
--enable-force-cgi-redirect \
--disable-magic-quotes \
--with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib \
--with-freetype-dir=/usr/lib --with-zlib-dir=/usr/lib
I actually get compiler warnings with this configuration:
/usr/src/php-5.0.5/ext/sqlite/libsqlite/src/func.c: In function
`minmaxFunc':
/usr/src/php-5.0.5/ext/sqlite/libsqlite/src/func.c:38: warning: cast
from pointer to integer of different size
/usr/src/php-5.0.5/ext/sqlite/libsqlite/src/func.c: In function
`minmaxStep':
/usr/src/php-5.0.5/ext/sqlite/libsqlite/src/func.c:525: warning: cast
from pointer to integer of different size
/usr/src/php-5.0.5/ext/standard/var.c: In function
`php_var_serialize_class_name':
/usr/src/php-5.0.5/ext/standard/var.c:515: warning: passing arg 3 of
`zend_get_object_classname' from incompatible pointer type
An identical build of 5.0.4 yields no warnings at all. I'm seeing seg
faults whenever serializing or unserializing any object.
------------------------------------------------------------------------
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/34435
--
Edit this bug report at http://bugs.php.net/?id=34435&edit=1