#34216 [Fbk]: Segfault with autoload

2005-09-26 Thread sebastian
 ID:   34216
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: SPL related
 Operating System: *
 PHP Version:  5CVS-2005-09-26 (CVS)
 Assigned To:  helly
 New Comment:

Tried with yesterday's CVS of PHP_5_1 and I still get a segfault.


Previous Comments:


[2005-09-26 20:00:21] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-09-25 20:11:11] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-09-21 12:29:32] [EMAIL PROTECTED]

I no longer use auto-loading in PHPUnit2 because of this segfault. I
will try a CVS checkout of PHPUnit2 before I abandoned spl_autoload()
later, hopefully during the next couple of days.



[2005-09-21 11:43:52] [EMAIL PROTECTED]

Can you verify the code with HEAD in non unicode mode?



[2005-09-20 14:56:27] [EMAIL PROTECTED]

Sebastian, I'd appreciate if you provide a complete reproduce case
(doesn't matter which size it is).



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/34216

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


#34216 [Fbk]: Segfault with autoload

2005-09-26 Thread helly
 ID:   34216
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: SPL related
-Operating System: Linux
+Operating System: *
-PHP Version:  5.1.0RC1
+PHP Version:  5CVS-2005-09-26 (CVS)
 Assigned To:  helly
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-09-25 20:11:11] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-09-21 12:29:32] [EMAIL PROTECTED]

I no longer use auto-loading in PHPUnit2 because of this segfault. I
will try a CVS checkout of PHPUnit2 before I abandoned spl_autoload()
later, hopefully during the next couple of days.



[2005-09-21 11:43:52] [EMAIL PROTECTED]

Can you verify the code with HEAD in non unicode mode?



[2005-09-20 14:56:27] [EMAIL PROTECTED]

Sebastian, I'd appreciate if you provide a complete reproduce case
(doesn't matter which size it is).



[2005-08-23 07:27:09] [EMAIL PROTECTED]

Description:

I am experiencing a segfault with spl_autoload in the
PHP_5_1 branch with the upcoming PHPUnit 2.3.0.

The nature of PHPUnit's complexity makes it almost
impossible for me to come up with a simple, reproducing
script (I already invested hours into this, to no avail so
far).

It is weird that the segfault only occurs in one out of
two common code paths of PHPUnit's TextUI test runner.

Furthermore, small code changes (see below) seem to make
the problem go away:

Reproduce code:
---
Segfault:

   function PHPUnit2_Util_Classloader($className) {
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

Segfault:

   function PHPUnit2_Util_Classloader($className) {
   $bt = debug_backtrace();
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

No Segfault:

   function PHPUnit2_Util_Classloader($className) {
   $bt = debug_backtrace();
   print_r($bt[1]);
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

Actual result:
--
Below are the links to the results of GDB and Valgrind.

Interestingly, when run through GDB it segfaults, when run
through Valgrind it does not segfault.

GDB:
http://www.sebastian-bergmann.de/stuff/phpunit2-gdb.txt
Valgrind:
http://www.sebastian-bergmann.de/stuff/phpunit2-valgrind.txt





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


#34216 [Fbk]: Segfault with autoload

2005-09-25 Thread helly
 ID:   34216
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: SPL related
 Operating System: Linux
 PHP Version:  5.1.0RC1
 Assigned To:  helly
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-09-21 12:29:32] [EMAIL PROTECTED]

I no longer use auto-loading in PHPUnit2 because of this segfault. I
will try a CVS checkout of PHPUnit2 before I abandoned spl_autoload()
later, hopefully during the next couple of days.



[2005-09-21 11:43:52] [EMAIL PROTECTED]

Can you verify the code with HEAD in non unicode mode?



[2005-09-20 14:56:27] [EMAIL PROTECTED]

Sebastian, I'd appreciate if you provide a complete reproduce case
(doesn't matter which size it is).



[2005-08-23 07:27:09] [EMAIL PROTECTED]

Description:

I am experiencing a segfault with spl_autoload in the
PHP_5_1 branch with the upcoming PHPUnit 2.3.0.

The nature of PHPUnit's complexity makes it almost
impossible for me to come up with a simple, reproducing
script (I already invested hours into this, to no avail so
far).

It is weird that the segfault only occurs in one out of
two common code paths of PHPUnit's TextUI test runner.

Furthermore, small code changes (see below) seem to make
the problem go away:

Reproduce code:
---
Segfault:

   function PHPUnit2_Util_Classloader($className) {
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

Segfault:

   function PHPUnit2_Util_Classloader($className) {
   $bt = debug_backtrace();
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

No Segfault:

   function PHPUnit2_Util_Classloader($className) {
   $bt = debug_backtrace();
   print_r($bt[1]);
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

Actual result:
--
Below are the links to the results of GDB and Valgrind.

Interestingly, when run through GDB it segfaults, when run
through Valgrind it does not segfault.

GDB:
http://www.sebastian-bergmann.de/stuff/phpunit2-gdb.txt
Valgrind:
http://www.sebastian-bergmann.de/stuff/phpunit2-valgrind.txt





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


#34216 [Fbk]: Segfault with autoload

2005-09-21 Thread sebastian
 ID:   34216
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: SPL related
 Operating System: Linux
 PHP Version:  5.1.0RC1
 Assigned To:  helly
 New Comment:

I no longer use auto-loading in PHPUnit2 because of this segfault. I
will try a CVS checkout of PHPUnit2 before I abandoned spl_autoload()
later, hopefully during the next couple of days.


Previous Comments:


[2005-09-21 11:43:52] [EMAIL PROTECTED]

Can you verify the code with HEAD in non unicode mode?



[2005-09-20 14:56:27] [EMAIL PROTECTED]

Sebastian, I'd appreciate if you provide a complete reproduce case
(doesn't matter which size it is).



[2005-08-23 07:27:09] [EMAIL PROTECTED]

Description:

I am experiencing a segfault with spl_autoload in the
PHP_5_1 branch with the upcoming PHPUnit 2.3.0.

The nature of PHPUnit's complexity makes it almost
impossible for me to come up with a simple, reproducing
script (I already invested hours into this, to no avail so
far).

It is weird that the segfault only occurs in one out of
two common code paths of PHPUnit's TextUI test runner.

Furthermore, small code changes (see below) seem to make
the problem go away:

Reproduce code:
---
Segfault:

   function PHPUnit2_Util_Classloader($className) {
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

Segfault:

   function PHPUnit2_Util_Classloader($className) {
   $bt = debug_backtrace();
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

No Segfault:

   function PHPUnit2_Util_Classloader($className) {
   $bt = debug_backtrace();
   print_r($bt[1]);
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

Actual result:
--
Below are the links to the results of GDB and Valgrind.

Interestingly, when run through GDB it segfaults, when run
through Valgrind it does not segfault.

GDB:
http://www.sebastian-bergmann.de/stuff/phpunit2-gdb.txt
Valgrind:
http://www.sebastian-bergmann.de/stuff/phpunit2-valgrind.txt





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


#34216 [Fbk]: Segfault with autoload

2005-09-21 Thread helly
 ID:   34216
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: SPL related
 Operating System: Linux
 PHP Version:  5.1.0RC1
 Assigned To:  helly
 New Comment:

Can you verify the code with HEAD in non unicode mode?


Previous Comments:


[2005-09-20 14:56:27] [EMAIL PROTECTED]

Sebastian, I'd appreciate if you provide a complete reproduce case
(doesn't matter which size it is).



[2005-08-23 07:27:09] [EMAIL PROTECTED]

Description:

I am experiencing a segfault with spl_autoload in the
PHP_5_1 branch with the upcoming PHPUnit 2.3.0.

The nature of PHPUnit's complexity makes it almost
impossible for me to come up with a simple, reproducing
script (I already invested hours into this, to no avail so
far).

It is weird that the segfault only occurs in one out of
two common code paths of PHPUnit's TextUI test runner.

Furthermore, small code changes (see below) seem to make
the problem go away:

Reproduce code:
---
Segfault:

   function PHPUnit2_Util_Classloader($className) {
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

Segfault:

   function PHPUnit2_Util_Classloader($className) {
   $bt = debug_backtrace();
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

No Segfault:

   function PHPUnit2_Util_Classloader($className) {
   $bt = debug_backtrace();
   print_r($bt[1]);
   print "Loading $className.\n";

   if (strpos($className, 'PHPUnit2_') !== FALSE) {
   @include(str_replace('_', '/', $className) . '.php');
   }
   }

   spl_autoload_register('PHPUnit2_Util_Classloader');

Actual result:
--
Below are the links to the results of GDB and Valgrind.

Interestingly, when run through GDB it segfaults, when run
through Valgrind it does not segfault.

GDB:
http://www.sebastian-bergmann.de/stuff/phpunit2-gdb.txt
Valgrind:
http://www.sebastian-bergmann.de/stuff/phpunit2-valgrind.txt





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