trouble debugging extension
| From: | Gordon Heydon | Date: | Mon, 27 Sep 2004 05:54:39 +0000 |
| Subject: | trouble debugging extension | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1395@lists.php.net to get a copy of this message | ||
Hello,
I have just gotten back into development of my extension. I was having
problems because when I would test it I would get a seqfault in php, and
couldn't find why I am getting this problem.
I worked out how to run php from within gdb and I seem to no further
ahead.
here is the output that I received.
--8<--
gordon@horse:~/src/rbo/librbo/phprbo$ gdb
GNU gdb 6.1-debian
Copyright 2004 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-linux".
(gdb) file ../../../debian/php4-4.3.8/sapi/cli/php
Reading symbols from ../../../debian/php4-4.3.8/sapi/cli/php...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) run ../../../debian/php4-4.3.8/sapi/cli/php -d extension_dir=.libs
tests/rbo_basic.php
Starting program: /home/gordon/src/debian/php4-4.3.8/sapi/cli/php
../../../debian/php4-4.3.8/sapi/cli/php -d extension_dir=.libs
tests/rbo_basic.php
Warning: Unexpected character in input: '
' (ASCII=11) state=1 in
/home/gordon/src/debian/php4-4.3.8/sapi/cli/php on line 4361
Warning: Unexpected character in input: ' in
/home/gordon/src/debian/php4-4.3.8/sapi/cli/php on line 4361
Parse error: parse error, unexpected '$' in
/home/gordon/src/debian/php4-4.3.8/sapi/cli/php on line 4361
Program exited with code 0377.
(gdb) bt
No stack.
(gdb) quit
gordon@horse:~/src/rbo/librbo/phprbo$
--8<--
can anyone tell me how to fix this, or the next step that I should use.
Thanks.
Gordon.