[PHP-DEV] please help to find what causes the core dump From: Alexander Feldman (alex <email protected>)
Date: 09/05/00

Hello,

The attached example causes core dump on my system.

I can not determine the cause for the core dump.

I tried to prepare a nice bug report but even if I change one line from
the code above (e. g. not to include t.inc and to move the functions to
t.php) it refuses to fail.

I test with PHP CGI 4.0.2 on linx-glibc21.

Attached is a backtrace.

Best regards:

-- 
Alexander Feldman
Zend Technologies Ltd.
phone: +972 3 6139665 ext. 107, fax: +972 3 6139671
http://www.zend.com

Program received signal SIGSEGV, Segmentation fault. 0x400e628f in free () from /lib/libc.so.6 (gdb) backtrace #0 0x400e628f in free () from /lib/libc.so.6 #1 0x400e623f in free () from /lib/libc.so.6 #2 0x80b0413 in shutdown_memory_manager (silent=0, clean_cache=1) at zend_alloc.c:450 #3 0x805d686 in php_module_shutdown () at main.c:925 #4 0x805c870 in main (argc=2, argv=0xbffffa64) at cgi_main.c:746

<?php

function test_header() { print("--- begin test ---\n"); }

function test_footer() { print("--- end test ---\n"); }

function test($name, $description, $obsoletes, $weight) { print("--- subtest - name:$name;description:\"$description\";obsoletes:$obsoletes;weight:$weight ---\n"); }

function regexp_match($expression) { print("--- regexp - expression:\"$expression\" ---\n"); }

function win32_match($expression) { print("--- win32_match - expression:\"$expression\" ---\n"); }

function test_abort() { print("--- test abort ---\n"); }

?>

<?php require("t.inc");

test_header(); // define_syslog_variables printf("%d\n", $LOG_PID); define_syslog_variables(); printf("%d\n", $LOG_PID);

// error_log test("", "", "", ""); $name = tempnam("../tmp", "zt"); error_log("Hello, World!\n", 3, $name); readfile($name); unlink($name); error_log("Hello, World!", 0); assert_options(ASSERT_CALLBACK, ""); print(assert_options(ASSERT_CALLBACK) . "\n"); assert_options(ASSERT_CALLBACK, "on_assert"); print(assert_options(ASSERT_CALLBACK) . "\n");  <email protected>(false); function on_assert() { print("Hello, World!\n"); }

test_footer(); ?>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>