Date: Wed, 27 Oct 2004 13:44:54 -0300 (ADT) From: "Marc G. Fournier" <scrappy@hub.org> To: php <php-general@lists.php.net> Cc: freebsd-ports@freebsd.org Subject: PHP Command Line Scripts 'Aborting' at end ... Message-ID: <20041027133419.K52811@ganymede.hub.org>
next in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1732634494-1098895494=:52811 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Note that the following is based on php installed via the FreeBSD ports=20 system ... I have a really simple PHP script that, when you run it, generates an=20 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=20 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 ar= e welcome to change it and/or distribute copies of it under certain condition= s. 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 cal= led at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxrea= d.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 b= fd_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: =EC: 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=20 off ... and its running, producing expected output, its just that last=20 '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@hub.org Yahoo!: yscrappy ICQ: 7615664 --0-1732634494-1098895494=:52811--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041027133419.K52811>