PHP Command Line Scripts 'Aborting' at end ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Note that the following is based on php installed via the FreeBSD ports system ...



I have a really simple PHP script that, when you run it, generates an Abort at the end of it:


ams# /tmp/test.php
testAbort (core dumped)

ams# cat /tmp/test.php
#!/usr/local/bin/php
<?php
echo "test";
?>

Even if I change the script slightly, so that last line isn't being run via php, it does the same:

ams# cat /tmp/test.php
#!/usr/local/bin/php
<?php
echo "test";
?>

test

ams# /tmp/test.php
test
test
Abort (core dumped)


I'm getting a core file, but if I try:

gdb /usr/local/bin/php php.core ... its definitely not looking good:

s# gdb /usr/local/bin/php php.core
GNU gdb 4.18 (FreeBSD)
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 "i386-unknown-freebsd"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf

Core was generated by `php'.
Program terminated with signal 6, Abort trap.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/local/lib/php/20020429/interbase.so...done.
Reading symbols from /usr/local/firebird/lib/libfbembed.so.1...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dwarf2read.c line 3049 in dwarf2_read_section
Error while reading shared library symbols:
Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.
Reading symbols from /usr/lib/libncurses.so.5...done.
Error while reading shared library symbols:
ì: No such file or directory.
Error while reading shared library symbols:
ynamic: No such file or directory.
Segmentation fault (core dumped)

mod_php4 appears to work fine, just the command line version seems to be off ... and its running, producing expected output, its just that last 'Abort' that tends to screw things up a bit ...

Not sure how to debug ... help?

Thanks ...

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@xxxxxxx           Yahoo!: yscrappy              ICQ: 7615664
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux