[PHP-DEV] Bug #12049 Updated: Crash in Zend Engine

2001-10-02 Thread sniper

ID: 12049
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Reproducible crash
Operating System: Debian GNU/Linux
PHP Version: 4.0.6
New Comment:

No feedback.


Previous Comments:


[2001-08-19 04:48:33] [EMAIL PROTECTED]

Does this happen with latest CVS snapshot:

http://snaps.php.net/





[2001-07-11 14:38:33] [EMAIL PROTECTED]

H...

That code snippet crashes on my system before it has even
given the error message.

It's a very strange bug. Things that shouldn't make a
difference, such as taking out empty class definitions or
changing the order of the class definitions, will stop the
code from crashing. I'm sure that there isn't an endless
recursive call anywhere because just changing the order of
the class definitions prevents it from crashing.

Generating the error messages that you recieved is the
correct behavior for the code I gave. :)

Originally, I had a zoom() function in the A class, so that
the code would actually work if there was not a segfault,
but I found that the code segfaulted with or without it, so
I just left it out to save space.

I'd be glad to give you any other information that might
help you reproduce the crash.

I'm using a Debian GNU/Linux i386 2.2 (potato) system with
Ximian Gnome packages and the PHP 4.0.6 packages and apache
1.3.20 packages from Debian woody.



[2001-07-11 13:56:43] [EMAIL PROTECTED]

The code snippet you supplied doesn't work - it dies with 
bFatal error/b:  Call to undefined function:  zoom() in btest.php/b on line 
b9/bbr
test.php(9) : Fatal error - Call to undefined function:  zoom()

At any rate - the backtrace appears to suggest you have some endless recursive call.  
This is most probably the problem.



[2001-07-11 10:32:12] [EMAIL PROTECTED]

This code reproduces the crash:


class A{}
class B extends A {}
class D extends C
{
function zoom()
  {
return (parent::zoom());
  }
}
class E extends D {}
class C extends B
{
  function C()
{
  $this-x = 5;
}
}

class Storage
{
  var $items; 
  function Storage()
{
  $this-items=array();
}
  function add()
{
  $foo = new E();
  $this-items[] = $foo;
  end($this-items);
  return key($this-items);
}
  function get($who)
{
return $this-items[$who];
}
}

$Store = new Storage();
$ID = $Store-add();
$Obj = $Store-get($ID);

//Segfaults here
$Obj-zoom();





[2001-07-11 09:28:48] [EMAIL PROTECTED]

PHP is crashing on a call to an object method.  Currently,
the code is too complex to paste here. Will try to create
simpler example. Here's a gdb backtrace:

# gdb /usr/sbin/apache.dbg
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show
warranty for details.
This GDB was configured as i686-pc-linux-gnu...
(gdb) run -X
Starting program: /usr/sbin/apache.dbg -X

Program received signal SIGSEGV, Segmentation fault.
0x40267713 in execute (op_array=0x8237f04) at
../../Zend/zend_execute.c:1140
1140
zend_fetch_var_address(opline-result, opline-op1,
opline-op2, Ts, BP_VAR_W ELS_CC);
(gdb) bt
#0  0x40267713 in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1140
#1  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#2  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#3  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#4  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#5  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#6  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#7  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#8  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#9  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#10 0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#11 0x40269f0f in execute (op_array=0x8237f04)
---Type return to continue, or q return to quit---q
 at ../../Zend/zend_execute.c:1544Quit
(gdb) p opline
$1 = (zend_op *) 0x823de5c
(gdb) p *optline
$2 = {opcode = 83 

[PHP-DEV] Bug #12049 Updated: Crash in Zend Engine

2001-08-19 Thread sniper

ID: 12049
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: 
Status: Feedback
Bug Type: Reproducible crash
Operating System: Debian GNU/Linux
PHP Version: 4.0.6
New Comment:

Does this happen with latest CVS snapshot:

http://snaps.php.net/



Previous Comments:


[2001-07-11 14:38:33] [EMAIL PROTECTED]

H...

That code snippet crashes on my system before it has even
given the error message.

It's a very strange bug. Things that shouldn't make a
difference, such as taking out empty class definitions or
changing the order of the class definitions, will stop the
code from crashing. I'm sure that there isn't an endless
recursive call anywhere because just changing the order of
the class definitions prevents it from crashing.

Generating the error messages that you recieved is the
correct behavior for the code I gave. :)

Originally, I had a zoom() function in the A class, so that
the code would actually work if there was not a segfault,
but I found that the code segfaulted with or without it, so
I just left it out to save space.

I'd be glad to give you any other information that might
help you reproduce the crash.

I'm using a Debian GNU/Linux i386 2.2 (potato) system with
Ximian Gnome packages and the PHP 4.0.6 packages and apache
1.3.20 packages from Debian woody.



[2001-07-11 13:56:43] [EMAIL PROTECTED]

The code snippet you supplied doesn't work - it dies with 
bFatal error/b:  Call to undefined function:  zoom() in btest.php/b on line 
b9/bbr
test.php(9) : Fatal error - Call to undefined function:  zoom()

At any rate - the backtrace appears to suggest you have some endless recursive call.  
This is most probably the problem.



[2001-07-11 10:32:12] [EMAIL PROTECTED]

This code reproduces the crash:


class A{}
class B extends A {}
class D extends C
{
function zoom()
  {
return (parent::zoom());
  }
}
class E extends D {}
class C extends B
{
  function C()
{
  $this-x = 5;
}
}

class Storage
{
  var $items; 
  function Storage()
{
  $this-items=array();
}
  function add()
{
  $foo = new E();
  $this-items[] = $foo;
  end($this-items);
  return key($this-items);
}
  function get($who)
{
return $this-items[$who];
}
}

$Store = new Storage();
$ID = $Store-add();
$Obj = $Store-get($ID);

//Segfaults here
$Obj-zoom();





[2001-07-11 09:28:48] [EMAIL PROTECTED]

PHP is crashing on a call to an object method.  Currently,
the code is too complex to paste here. Will try to create
simpler example. Here's a gdb backtrace:

# gdb /usr/sbin/apache.dbg
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show
warranty for details.
This GDB was configured as i686-pc-linux-gnu...
(gdb) run -X
Starting program: /usr/sbin/apache.dbg -X

Program received signal SIGSEGV, Segmentation fault.
0x40267713 in execute (op_array=0x8237f04) at
../../Zend/zend_execute.c:1140
1140
zend_fetch_var_address(opline-result, opline-op1,
opline-op2, Ts, BP_VAR_W ELS_CC);
(gdb) bt
#0  0x40267713 in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1140
#1  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#2  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#3  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#4  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#5  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#6  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#7  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#8  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#9  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#10 0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#11 0x40269f0f in execute (op_array=0x8237f04)
---Type return to continue, or q return to quit---q
 at ../../Zend/zend_execute.c:1544Quit
(gdb) p opline
$1 = (zend_op *) 0x823de5c
(gdb) p *optline
$2 = {opcode = 83 'S', result = {op_type = 4, u = {constant
= {value = {
  lval = 0, dval = 0, str = {val = 0x0, len = 0}, ht
= 0x0, obj = {
   

[PHP-DEV] Bug #12049 Updated: Crash in Zend Engine

2001-07-11 Thread nassar

ID: 12049
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Debian GNU/Linux
PHP Version: 4.0.6
New Comment:

This code reproduces the crash:


class A{}
class B extends A {}
class D extends C
{
function zoom()
  {
return (parent::zoom());
  }
}
class E extends D {}
class C extends B
{
  function C()
{
  $this-x = 5;
}
}

class Storage
{
  var $items; 
  function Storage()
{
  $this-items=array();
}
  function add()
{
  $foo = new E();
  $this-items[] = $foo;
  end($this-items);
  return key($this-items);
}
  function get($who)
{
return $this-items[$who];
}
}

$Store = new Storage();
$ID = $Store-add();
$Obj = $Store-get($ID);

//Segfaults here
$Obj-zoom();



Previous Comments:


[2001-07-11 09:28:48] [EMAIL PROTECTED]

PHP is crashing on a call to an object method.  Currently,
the code is too complex to paste here. Will try to create
simpler example. Here's a gdb backtrace:

# gdb /usr/sbin/apache.dbg
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show
warranty for details.
This GDB was configured as i686-pc-linux-gnu...
(gdb) run -X
Starting program: /usr/sbin/apache.dbg -X

Program received signal SIGSEGV, Segmentation fault.
0x40267713 in execute (op_array=0x8237f04) at
../../Zend/zend_execute.c:1140
1140
zend_fetch_var_address(opline-result, opline-op1,
opline-op2, Ts, BP_VAR_W ELS_CC);
(gdb) bt
#0  0x40267713 in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1140
#1  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#2  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#3  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#4  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#5  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#6  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#7  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#8  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#9  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#10 0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#11 0x40269f0f in execute (op_array=0x8237f04)
---Type return to continue, or q return to quit---q
 at ../../Zend/zend_execute.c:1544Quit
(gdb) p opline
$1 = (zend_op *) 0x823de5c
(gdb) p *optline
$2 = {opcode = 83 'S', result = {op_type = 4, u = {constant
= {value = {
  lval = 0, dval = 0, str = {val = 0x0, len = 0}, ht
= 0x0, obj = {
ce = 0x0, properties = 0x0}}, type = 0 '\000',
is_ref = 0 '\000', 
refcount = 0}, var = 0, opline_num = 0, fetch_type = 0, 
  op_array = 0x0, EA = {var = 0, type = 0}}}, op1 =
{op_type = 1, u = {
  constant = {value = {lval = 136544148, dval =
1.0677440727493824e-313, 
  str = {val = 0x8237f94 other, len = 5}, ht =
0x8237f94, obj = {
ce = 0x8237f94, properties = 0x5}}, type = 3
'\003', 
is_ref = 1 '\001', refcount = 2}, var = 136544148, 
  opline_num = 136544148, fetch_type = 136544148,
op_array = 0x8237f94, 
  EA = {var = 136544148, type = 5}}}, op2 = {op_type =
8, u = {constant = {
value = {lval = 1, dval = 4.9406564584124654e-324,
str = {
val = 0x1 Address 0x1 out of bounds, len = 0},
ht = 0x1, obj = {
ce = 0x1, properties = 0x0}}, type = 0 '\000',
is_ref = 0 '\000', 
refcount = 0}, var = 1, opline_num = 1, fetch_type = 1, 
  op_array = 0x1, EA = {var = 1, type = 0}}},
extended_value = 0, 
  lineno = 1056}
(gdb) 





ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=12049edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12049 Updated: Crash in Zend Engine

2001-07-11 Thread zeev

ID: 12049
Updated by: zeev
Reported By: [EMAIL PROTECTED]
Old Status: 
Status: Analyzed
Bug Type: Reproducible crash
Operating System: Debian GNU/Linux
PHP Version: 4.0.6
New Comment:

The code snippet you supplied doesn't work - it dies with 
bFatal error/b:  Call to undefined function:  zoom() in btest.php/b on line 
b9/bbr
test.php(9) : Fatal error - Call to undefined function:  zoom()

At any rate - the backtrace appears to suggest you have some endless recursive call.  
This is most probably the problem.

Previous Comments:


[2001-07-11 10:32:12] [EMAIL PROTECTED]

This code reproduces the crash:


class A{}
class B extends A {}
class D extends C
{
function zoom()
  {
return (parent::zoom());
  }
}
class E extends D {}
class C extends B
{
  function C()
{
  $this-x = 5;
}
}

class Storage
{
  var $items; 
  function Storage()
{
  $this-items=array();
}
  function add()
{
  $foo = new E();
  $this-items[] = $foo;
  end($this-items);
  return key($this-items);
}
  function get($who)
{
return $this-items[$who];
}
}

$Store = new Storage();
$ID = $Store-add();
$Obj = $Store-get($ID);

//Segfaults here
$Obj-zoom();





[2001-07-11 09:28:48] [EMAIL PROTECTED]

PHP is crashing on a call to an object method.  Currently,
the code is too complex to paste here. Will try to create
simpler example. Here's a gdb backtrace:

# gdb /usr/sbin/apache.dbg
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show
warranty for details.
This GDB was configured as i686-pc-linux-gnu...
(gdb) run -X
Starting program: /usr/sbin/apache.dbg -X

Program received signal SIGSEGV, Segmentation fault.
0x40267713 in execute (op_array=0x8237f04) at
../../Zend/zend_execute.c:1140
1140
zend_fetch_var_address(opline-result, opline-op1,
opline-op2, Ts, BP_VAR_W ELS_CC);
(gdb) bt
#0  0x40267713 in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1140
#1  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#2  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#3  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#4  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#5  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#6  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#7  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#8  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#9  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#10 0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#11 0x40269f0f in execute (op_array=0x8237f04)
---Type return to continue, or q return to quit---q
 at ../../Zend/zend_execute.c:1544Quit
(gdb) p opline
$1 = (zend_op *) 0x823de5c
(gdb) p *optline
$2 = {opcode = 83 'S', result = {op_type = 4, u = {constant
= {value = {
  lval = 0, dval = 0, str = {val = 0x0, len = 0}, ht
= 0x0, obj = {
ce = 0x0, properties = 0x0}}, type = 0 '\000',
is_ref = 0 '\000', 
refcount = 0}, var = 0, opline_num = 0, fetch_type = 0, 
  op_array = 0x0, EA = {var = 0, type = 0}}}, op1 =
{op_type = 1, u = {
  constant = {value = {lval = 136544148, dval =
1.0677440727493824e-313, 
  str = {val = 0x8237f94 other, len = 5}, ht =
0x8237f94, obj = {
ce = 0x8237f94, properties = 0x5}}, type = 3
'\003', 
is_ref = 1 '\001', refcount = 2}, var = 136544148, 
  opline_num = 136544148, fetch_type = 136544148,
op_array = 0x8237f94, 
  EA = {var = 136544148, type = 5}}}, op2 = {op_type =
8, u = {constant = {
value = {lval = 1, dval = 4.9406564584124654e-324,
str = {
val = 0x1 Address 0x1 out of bounds, len = 0},
ht = 0x1, obj = {
ce = 0x1, properties = 0x0}}, type = 0 '\000',
is_ref = 0 '\000', 
refcount = 0}, var = 1, opline_num = 1, fetch_type = 1, 
  op_array = 0x1, EA = {var = 1, type = 0}}},
extended_value = 0, 
  lineno = 1056}
(gdb) 





ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=12049edit=1


-- 
PHP Development Mailing List http://www.php.net/
To 

[PHP-DEV] Bug #12049 Updated: Crash in Zend Engine

2001-07-11 Thread nassar

ID: 12049
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: Reproducible crash
Operating System: Debian GNU/Linux
PHP Version: 4.0.6
New Comment:

H...

That code snippet crashes on my system before it has even
given the error message.

It's a very strange bug. Things that shouldn't make a
difference, such as taking out empty class definitions or
changing the order of the class definitions, will stop the
code from crashing. I'm sure that there isn't an endless
recursive call anywhere because just changing the order of
the class definitions prevents it from crashing.

Generating the error messages that you recieved is the
correct behavior for the code I gave. :)

Originally, I had a zoom() function in the A class, so that
the code would actually work if there was not a segfault,
but I found that the code segfaulted with or without it, so
I just left it out to save space.

I'd be glad to give you any other information that might
help you reproduce the crash.

I'm using a Debian GNU/Linux i386 2.2 (potato) system with
Ximian Gnome packages and the PHP 4.0.6 packages and apache
1.3.20 packages from Debian woody.

Previous Comments:


[2001-07-11 13:56:43] [EMAIL PROTECTED]

The code snippet you supplied doesn't work - it dies with 
bFatal error/b:  Call to undefined function:  zoom() in btest.php/b on line 
b9/bbr
test.php(9) : Fatal error - Call to undefined function:  zoom()

At any rate - the backtrace appears to suggest you have some endless recursive call.  
This is most probably the problem.



[2001-07-11 10:32:12] [EMAIL PROTECTED]

This code reproduces the crash:


class A{}
class B extends A {}
class D extends C
{
function zoom()
  {
return (parent::zoom());
  }
}
class E extends D {}
class C extends B
{
  function C()
{
  $this-x = 5;
}
}

class Storage
{
  var $items; 
  function Storage()
{
  $this-items=array();
}
  function add()
{
  $foo = new E();
  $this-items[] = $foo;
  end($this-items);
  return key($this-items);
}
  function get($who)
{
return $this-items[$who];
}
}

$Store = new Storage();
$ID = $Store-add();
$Obj = $Store-get($ID);

//Segfaults here
$Obj-zoom();





[2001-07-11 09:28:48] [EMAIL PROTECTED]

PHP is crashing on a call to an object method.  Currently,
the code is too complex to paste here. Will try to create
simpler example. Here's a gdb backtrace:

# gdb /usr/sbin/apache.dbg
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show
warranty for details.
This GDB was configured as i686-pc-linux-gnu...
(gdb) run -X
Starting program: /usr/sbin/apache.dbg -X

Program received signal SIGSEGV, Segmentation fault.
0x40267713 in execute (op_array=0x8237f04) at
../../Zend/zend_execute.c:1140
1140
zend_fetch_var_address(opline-result, opline-op1,
opline-op2, Ts, BP_VAR_W ELS_CC);
(gdb) bt
#0  0x40267713 in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1140
#1  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#2  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#3  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#4  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#5  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#6  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#7  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#8  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#9  0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#10 0x40269f0f in execute (op_array=0x8237f04)
at ../../Zend/zend_execute.c:1544
#11 0x40269f0f in execute (op_array=0x8237f04)
---Type return to continue, or q return to quit---q
 at ../../Zend/zend_execute.c:1544Quit
(gdb) p opline
$1 = (zend_op *) 0x823de5c
(gdb) p *optline
$2 = {opcode = 83 'S', result = {op_type = 4, u = {constant
= {value = {
  lval = 0, dval = 0, str = {val = 0x0, len = 0}, ht
= 0x0, obj = {
ce = 0x0, properties = 0x0}}, type = 0 '\000',
is_ref = 0 '\000', 
refcount = 0}, var = 0, opline_num = 0, fetch_type = 0, 
  op_array = 0x0, EA = {var = 0, 

Re: [PHP-DEV] Bug #12049 Updated: Crash in Zend Engine

2001-07-11 Thread Zeev Suraski

Ah, well, it segfaults because parent:: wasn't all that good until 4.0.7, 
with classes that are defined in runtime (like class D in the example, 
which is only defined at runtime, because C it inherits from is not defined 
until later on in the file).
4.0.7 should fix this problem, even though the code is still buggy, but I 
guess that's only the example.

Zeev

At 06:48 12/7/2001, Andrew Sitnikov wrote:

This code Segmentation for me also (php 4.0.5 linux).

zeev The code snippet you supplied doesn't work - it dies with
zeev bFatal error/b:  Call to undefined function:  zoom() in 
btest.php/b on line b9/bbr
zeev test.php(9) : Fatal error - Call to undefined function:  zoom()

zeev At any rate - the backtrace appears to suggest you have some endless 
recursive call.  This is most probably the problem.


Best regards,
  Andrew Sitnikov
  e-mail : [EMAIL PROTECTED]
  GSM: (+372) 56491109

--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]