php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22996 Bug #22510/Segfault, but in different place Sparc64
Submitted: 2003-03-31 16:50 UTC Modified: 2003-03-31 17:02 UTC
From: mlm at mm-network dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.2RC1 OS: NetBSD 1.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mlm at mm-network dot com
New email:
PHP Version: OS:

 

 [2003-03-31 16:50 UTC] mlm at mm-network dot com
What I did:

Compiled 4.3.2RC1 on my Sun Ultra10/Sparc64 NetBSD 1.6.

Used:
./configure --enable-debug --with-apxs --with-session=shared,/usr/pkg/lib/php/20
020429  --with-gettext=shared,/usr/pkg/lib/php/20020429 --with-pcre=shared,/usr/
pkg/lib/php/20020429

Ran make test and one of the tests that failed follows:

Segmentation fault - core dumped
FAIL Bug #22510 (segfault among complex references) [tests/lang/bug22510.phpt]

So, I ran gdb and the backtrace follows:

gdb
GNU gdb 5.0nb1
Copyright 2000 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 "sparc64--netbsd".
(gdb) file sapi/cli/php
Reading symbols from sapi/cli/php...done.
(gdb) r tests/lang/bug22510.phpt
Starting program: /usr/home/mlm/php-4.3.2RC1/sapi/cli/php tests/lang/bug22510.ph
pt
--TEST--
Bug #22510 (segfault among complex references)
--FILE--
ok1
bar::run1
foo::method1
foo::method1
foo::finalize
done!
ok2
bar::run2
foo::method2
foo::method2
foo::finalize
done!
ok3
bar::run3
foo::method3
foo::method3
foo::finalize
done!
ouch
bar::run1
foo::method1
foo::method1
foo::finalize
[Mon Mar 31 19:20:58 2003]  Script:  'tests/lang/bug22510.phpt'
---------------------------------------
/usr/home/mlm/php-4.3.2RC1/Zend/zend_execute.c(271) : Block 0x00442140 status:
Beginning:      Overrun (magic=0x00000000, expected=0x7312F8DC)

Program received signal SIGSEGV, Segmentation fault.
0x40779970 in bcopy () from /usr/lib/libc.so.12
(gdb) bt
#0  0x40779970 in bcopy () from /usr/lib/libc.so.12
#1  0x2a0c60 in _mem_block_check (ptr=0x442180, silent=0, 
    __zend_filename=0x311e78 "/usr/home/mlm/php-4.3.2RC1/Zend/zend_execute.c", 
    __zend_lineno=271, __zend_orig_filename=0x0, __zend_orig_lineno=0)
    at /usr/home/mlm/php-4.3.2RC1/Zend/zend_alloc.c:649
#2  0x2a0c14 in _mem_block_check (ptr=0x442180, silent=1, 
    __zend_filename=0x311e78 "/usr/home/mlm/php-4.3.2RC1/Zend/zend_execute.c", 
    __zend_lineno=271, __zend_orig_filename=0x0, __zend_orig_lineno=0)
    at /usr/home/mlm/php-4.3.2RC1/Zend/zend_alloc.c:641
#3  0x29f3cc in _efree (ptr=0x442180, 
    __zend_filename=0x311e78 "/usr/home/mlm/php-4.3.2RC1/Zend/zend_execute.c", 
    __zend_lineno=271, __zend_orig_filename=0x0, __zend_orig_lineno=0)
    at /usr/home/mlm/php-4.3.2RC1/Zend/zend_alloc.c:217
#4  0x2d42d4 in zend_assign_to_variable_reference (result=0x4c0408, 
    variable_ptr_ptr=0x4c7658, value_ptr_ptr=0x4ae658, Ts=0xffffffffffffaa50)
    at /usr/home/mlm/php-4.3.2RC1/Zend/zend_execute.c:271
#5  0x2d960c in execute (op_array=0x4b7c40)
    at /usr/home/mlm/php-4.3.2RC1/Zend/zend_execute.c:1354
#6  0x2dae3c in execute (op_array=0x4b7040)
    at /usr/home/mlm/php-4.3.2RC1/Zend/zend_execute.c:1650
#7  0x2be5dc in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/home/mlm/php-4.3.2RC1/Zend/zend.c:864
#8  0x261a14 in php_execute_script (primary_file=0xffffffffffffd950)
---Type <return> to continue, or q <return> to quit---
    at /usr/home/mlm/php-4.3.2RC1/main/main.c:1636
#9  0x2e3f00 in main (argc=2, argv=0xffffffffffffdae8)
    at /usr/home/mlm/php-4.3.2RC1/sapi/cli/php_cli.c:753
#10 0x12429c in ___start ()
(gdb) quit

Trying desprately to find a release that works on Sparc64,

So, let me know what I can do to help debug this,

Thank You,
Mike Marshall

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-31 17:02 UTC] moriyoshi@php.net
First thank you for helping our QA. But please put your comments and backtraces at the relevant bug page or send them to php-qa@lists.php.net directly rather than open a new report. Otherwise it would definitely end up in a mess.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 12:01:32 2024 UTC