#29980 [Opn]: Segfault

2004-09-06 Thread guth at fiifo dot u-psud dot fr
 ID:   29980
 User updated by:  guth at fiifo dot u-psud dot fr
 Reported By:  guth at fiifo dot u-psud dot fr
 Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: linux (Mandrake 10)
 PHP Version:  5.0.1
 New Comment:

(sorry for english)

I can't reproduce it with other computers (redhat  mandrake) with both
versions 5.0.0 and 5.0.1

I will try with my computer with 5.0.2-dev.


Previous Comments:


[2004-09-05 09:16:24] [EMAIL PROTECTED]

I can reproduce it with HEAD:

#0  0x08191ee4 in zend_objects_destroy_object (object=0x8285434,
handle=2) at /home/dev/php-src/Zend/zend_objects.c:37
#1  0x08194a6c in zend_objects_store_del_ref (zobject=0x827289c) at
/home/dev/php-src/Zend/zend_objects_API.c:144
#2  0x0817b95e in _zval_dtor (zvalue=0x827289c,
__zend_filename=0x81e3520 /home/dev/php-src/Zend/zend_execute_API.c,
__zend_lineno=390)
at /home/dev/php-src/Zend/zend_variables.c:55
#3  0x08170431 in _zval_ptr_dtor (zval_ptr=0x82727e8,
__zend_filename=0x81e4420 /home/dev/php-src/Zend/zend_variables.c,
__zend_lineno=179)
at /home/dev/php-src/Zend/zend_execute_API.c:390
#4  0x0817bc63 in _zval_ptr_dtor_wrapper (zval_ptr=0x82727e8) at
/home/dev/php-src/Zend/zend_variables.c:179
#5  0x08185224 in zend_hash_destroy (ht=0x82802ac) at
/home/dev/php-src/Zend/zend_hash.c:519
#6  0x0819214a in zend_objects_free_object_storage (object=0x827279c)
at /home/dev/php-src/Zend/zend_objects.c:88
#7  0x081947c9 in zend_objects_store_free_object_storage
(objects=0x8201eac) at /home/dev/php-src/Zend/zend_objects_API.c:72
#8  0x0816ff60 in shutdown_executor () at
/home/dev/php-src/Zend/zend_execute_API.c:271
#9  0x0817d3ad in zend_deactivate () at
/home/dev/php-src/Zend/zend.c:826
#10 0x081376ce in php_request_shutdown (dummy=0x0) at
/home/dev/php-src/main/main.c:1216
#11 0x081b07e0 in main (argc=3, argv=0xb8d4) at
/home/dev/php-src/sapi/cli/php_cli.c:1046



[2004-09-05 09:08:05] [EMAIL PROTECTED]

Running your reproducable code on the latest CVS version (PHP
5.1.0-dev-200409050430)

$ php demo.php
PHP Fatal error:  Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
PHP Fatal error:  Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14

Running on PHP 5.0.2-dev
$ php demo.php
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14


Looks fine to me. Perhaps it was fixed in CVS, perhaps it is Bogus.

Could you try the latest CVS version and tell me if this bug still
exists?



[2004-09-04 19:33:56] guth at fiifo dot u-psud dot fr

Description:

I am happy to show you my fourth segmentation fault in PHP 5.0.1.
Segmentation faults don't help me to debug my code...

Reproduce code:
---
?
class Cowllectif { }

class CowllectifTest {

private $boom;

public function __construct() {
$this-boom = new Cowllectif;
$this-boom-jean_ai_marre_de_php();
}

public function __destruct() {
$this-boom-jean_ai_marre_de_php();
}

}


$test = new CowllectifTest();
unset($test);
?

Expected result:

Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()

Actual result:
--
Two fatal errors (sic), then a segmentation fault...

Apache error log :

/www/haricow/0.4/test.php(10) : Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()
/www/haricow/0.4/test.php(14) : Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()
[Sat Sep  4 19:28:02 2004] [notice] child pid 9981 exit signal
Segmentation fault (11)





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


#29980 [Opn]: Segfault

2004-09-06 Thread guth at fiifo dot u-psud dot fr
 ID:   29980
 User updated by:  guth at fiifo dot u-psud dot fr
 Reported By:  guth at fiifo dot u-psud dot fr
 Status:   Open
 Bug Type: Zend Engine 2 problem
-Operating System: linux (Mandrake 10)
+Operating System: linux (Mandrake 9.2)
 PHP Version:  5.0.1
 New Comment:

Same segfault with last CVS (php5-STABLE-200409061430).

gdb backtrace :

(gdb) run /www/haricow/0.4/test.php
Starting program: /usr/local/bin/php /www/haricow/0.4/test.php

Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /www/haricow/0.4/test.php on line
10

Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /www/haricow/0.4/test.php on line
14

Program received signal SIGSEGV, Segmentation fault.
0x082043b8 in zend_objects_destroy_object (object=0x8305914, handle=2)
at /usr/src/php5-STABLE-200409061430/Zend/zend_objects.c:37
37  if (destructor-op_array.fn_flags 
(ZEND_ACC_PRIVATE|ZEND_ACC_PROTECTED)) {
(gdb) backtrace
#0  0x082043b8 in zend_objects_destroy_object (object=0x8305914,
handle=2)
at /usr/src/php5-STABLE-200409061430/Zend/zend_objects.c:37
#1  0x08206edc in zend_objects_store_del_ref (zobject=0x831b5b4)
at /usr/src/php5-STABLE-200409061430/Zend/zend_objects_API.c:144
#2  0x081ee116 in _zval_dtor (zvalue=0x831b5b4,
__zend_filename=0x8262ea0
/usr/src/php5-STABLE-200409061430/Zend/zend_execute_API.c,
__zend_lineno=391) at
/usr/src/php5-STABLE-200409061430/Zend/zend_variables.c:61
#3  0x081e2950 in _zval_ptr_dtor (zval_ptr=0x831be68,
__zend_filename=0x8263de0
/usr/src/php5-STABLE-200409061430/Zend/zend_variables.c,
__zend_lineno=193) at
/usr/src/php5-STABLE-200409061430/Zend/zend_execute_API.c:391
#4  0x081ee468 in _zval_ptr_dtor_wrapper (zval_ptr=0x831be68)
at /usr/src/php5-STABLE-200409061430/Zend/zend_variables.c:193
#5  0x081f7a50 in zend_hash_destroy (ht=0x831593c)
at /usr/src/php5-STABLE-200409061430/Zend/zend_hash.c:519
#6  0x0820461e in zend_objects_free_object_storage (object=0x831bd8c)
at /usr/src/php5-STABLE-200409061430/Zend/zend_objects.c:88
#7  0x08206c39 in zend_objects_store_free_object_storage
(objects=0x82873e4)
at /usr/src/php5-STABLE-200409061430/Zend/zend_objects_API.c:72
#8  0x081e247f in shutdown_executor ()
at /usr/src/php5-STABLE-200409061430/Zend/zend_execute_API.c:272
#9  0x081efab7 in zend_deactivate ()
at /usr/src/php5-STABLE-200409061430/Zend/zend.c:819
#10 0x081a8660 in php_request_shutdown (dummy=0x0)
at /usr/src/php5-STABLE-200409061430/main/main.c:1212
#11 0x08221800 in main (argc=2, argv=0xb6b4)
at /usr/src/php5-STABLE-200409061430/sapi/cli/php_cli.c:1046
#12 0x402a2c57 in __libc_start_main () from /lib/i686/libc.so.6


Previous Comments:


[2004-09-06 11:24:35] guth at fiifo dot u-psud dot fr

(sorry for english)

I can't reproduce it with other computers (redhat  mandrake) with both
versions 5.0.0 and 5.0.1

I will try with my computer with 5.0.2-dev.



[2004-09-05 09:16:24] [EMAIL PROTECTED]

I can reproduce it with HEAD:

#0  0x08191ee4 in zend_objects_destroy_object (object=0x8285434,
handle=2) at /home/dev/php-src/Zend/zend_objects.c:37
#1  0x08194a6c in zend_objects_store_del_ref (zobject=0x827289c) at
/home/dev/php-src/Zend/zend_objects_API.c:144
#2  0x0817b95e in _zval_dtor (zvalue=0x827289c,
__zend_filename=0x81e3520 /home/dev/php-src/Zend/zend_execute_API.c,
__zend_lineno=390)
at /home/dev/php-src/Zend/zend_variables.c:55
#3  0x08170431 in _zval_ptr_dtor (zval_ptr=0x82727e8,
__zend_filename=0x81e4420 /home/dev/php-src/Zend/zend_variables.c,
__zend_lineno=179)
at /home/dev/php-src/Zend/zend_execute_API.c:390
#4  0x0817bc63 in _zval_ptr_dtor_wrapper (zval_ptr=0x82727e8) at
/home/dev/php-src/Zend/zend_variables.c:179
#5  0x08185224 in zend_hash_destroy (ht=0x82802ac) at
/home/dev/php-src/Zend/zend_hash.c:519
#6  0x0819214a in zend_objects_free_object_storage (object=0x827279c)
at /home/dev/php-src/Zend/zend_objects.c:88
#7  0x081947c9 in zend_objects_store_free_object_storage
(objects=0x8201eac) at /home/dev/php-src/Zend/zend_objects_API.c:72
#8  0x0816ff60 in shutdown_executor () at
/home/dev/php-src/Zend/zend_execute_API.c:271
#9  0x0817d3ad in zend_deactivate () at
/home/dev/php-src/Zend/zend.c:826
#10 0x081376ce in php_request_shutdown (dummy=0x0) at
/home/dev/php-src/main/main.c:1216
#11 0x081b07e0 in main (argc=3, argv=0xb8d4) at
/home/dev/php-src/sapi/cli/php_cli.c:1046



[2004-09-05 09:08:05] [EMAIL PROTECTED]

Running your reproducable code on the latest CVS version (PHP
5.1.0-dev-200409050430)

$ php demo.php
PHP Fatal error:  Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
Fatal error: Call to undefined method

#29980 [Opn]: Segfault

2004-09-05 Thread aidan
 ID:   29980
 Updated by:   [EMAIL PROTECTED]
 Reported By:  guth at fiifo dot u-psud dot fr
 Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: linux (Mandrake 10)
 PHP Version:  5.0.1
 New Comment:

Running your reproducable code on the latest CVS version (PHP
5.1.0-dev-200409050430)

$ php demo.php
PHP Fatal error:  Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
PHP Fatal error:  Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14

Running on PHP 5.0.2-dev
$ php demo.php
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14


Looks fine to me. Perhaps it was fixed in CVS, perhaps it is Bogus.

Could you try the latest CVS version and tell me if this bug still
exists?


Previous Comments:


[2004-09-04 19:33:56] guth at fiifo dot u-psud dot fr

Description:

I am happy to show you my fourth segmentation fault in PHP 5.0.1.
Segmentation faults don't help me to debug my code...

Reproduce code:
---
?
class Cowllectif { }

class CowllectifTest {

private $boom;

public function __construct() {
$this-boom = new Cowllectif;
$this-boom-jean_ai_marre_de_php();
}

public function __destruct() {
$this-boom-jean_ai_marre_de_php();
}

}


$test = new CowllectifTest();
unset($test);
?

Expected result:

Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()

Actual result:
--
Two fatal errors (sic), then a segmentation fault...

Apache error log :

/www/haricow/0.4/test.php(10) : Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()
/www/haricow/0.4/test.php(14) : Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()
[Sat Sep  4 19:28:02 2004] [notice] child pid 9981 exit signal
Segmentation fault (11)





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


#29980 [Opn]: Segfault

2004-09-05 Thread tony2001
 ID:   29980
 Updated by:   [EMAIL PROTECTED]
 Reported By:  guth at fiifo dot u-psud dot fr
 Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: linux (Mandrake 10)
 PHP Version:  5.0.1
 New Comment:

I can reproduce it with HEAD:

#0  0x08191ee4 in zend_objects_destroy_object (object=0x8285434,
handle=2) at /home/dev/php-src/Zend/zend_objects.c:37
#1  0x08194a6c in zend_objects_store_del_ref (zobject=0x827289c) at
/home/dev/php-src/Zend/zend_objects_API.c:144
#2  0x0817b95e in _zval_dtor (zvalue=0x827289c,
__zend_filename=0x81e3520 /home/dev/php-src/Zend/zend_execute_API.c,
__zend_lineno=390)
at /home/dev/php-src/Zend/zend_variables.c:55
#3  0x08170431 in _zval_ptr_dtor (zval_ptr=0x82727e8,
__zend_filename=0x81e4420 /home/dev/php-src/Zend/zend_variables.c,
__zend_lineno=179)
at /home/dev/php-src/Zend/zend_execute_API.c:390
#4  0x0817bc63 in _zval_ptr_dtor_wrapper (zval_ptr=0x82727e8) at
/home/dev/php-src/Zend/zend_variables.c:179
#5  0x08185224 in zend_hash_destroy (ht=0x82802ac) at
/home/dev/php-src/Zend/zend_hash.c:519
#6  0x0819214a in zend_objects_free_object_storage (object=0x827279c)
at /home/dev/php-src/Zend/zend_objects.c:88
#7  0x081947c9 in zend_objects_store_free_object_storage
(objects=0x8201eac) at /home/dev/php-src/Zend/zend_objects_API.c:72
#8  0x0816ff60 in shutdown_executor () at
/home/dev/php-src/Zend/zend_execute_API.c:271
#9  0x0817d3ad in zend_deactivate () at
/home/dev/php-src/Zend/zend.c:826
#10 0x081376ce in php_request_shutdown (dummy=0x0) at
/home/dev/php-src/main/main.c:1216
#11 0x081b07e0 in main (argc=3, argv=0xb8d4) at
/home/dev/php-src/sapi/cli/php_cli.c:1046


Previous Comments:


[2004-09-05 09:08:05] [EMAIL PROTECTED]

Running your reproducable code on the latest CVS version (PHP
5.1.0-dev-200409050430)

$ php demo.php
PHP Fatal error:  Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
PHP Fatal error:  Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14

Running on PHP 5.0.2-dev
$ php demo.php
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 10
Fatal error: Call to undefined method
Cowllectif::jean_ai_marre_de_php() in /home/aidan/demo.php on line 14


Looks fine to me. Perhaps it was fixed in CVS, perhaps it is Bogus.

Could you try the latest CVS version and tell me if this bug still
exists?



[2004-09-04 19:33:56] guth at fiifo dot u-psud dot fr

Description:

I am happy to show you my fourth segmentation fault in PHP 5.0.1.
Segmentation faults don't help me to debug my code...

Reproduce code:
---
?
class Cowllectif { }

class CowllectifTest {

private $boom;

public function __construct() {
$this-boom = new Cowllectif;
$this-boom-jean_ai_marre_de_php();
}

public function __destruct() {
$this-boom-jean_ai_marre_de_php();
}

}


$test = new CowllectifTest();
unset($test);
?

Expected result:

Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()

Actual result:
--
Two fatal errors (sic), then a segmentation fault...

Apache error log :

/www/haricow/0.4/test.php(10) : Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()
/www/haricow/0.4/test.php(14) : Fatal error - Call to undefined method
Cowllectif::jean_ai_marre_de_php()
[Sat Sep  4 19:28:02 2004] [notice] child pid 9981 exit signal
Segmentation fault (11)





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