Bug #1103: segfault in dbmfetch() or dbmfirstkey)(
| From: | morrilie at hotmail dot com | Date: | Sat, 30 Jan 1999 02:06:59 +0000 |
| Subject: | Bug #1103: segfault in dbmfetch() or dbmfirstkey)( | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3790@lists.php.net to get a copy of this message | ||
From: morrilie@hotmail.com
Operating system: linux 2.0.36
PHP version: 3.0.6
PHP Bug Type: Reproduceable crash
Bug description: segfault in dbmfetch() or dbmfirstkey)(
When compiled as apache 1.3.4 module php 3.0.6 segfaults when trying to
use mentioned functions.
dbmopen(), dbmclose(), dbminsert() work fine.
Compiled with gdbm.
When compiled as standalone binary, problem persists
if I invoke it from cli:
$ php -f somefile.php3
Segmentation fault
but disappears when I invoke it from some kind of a shell script:
script.sh:
#!/bin/sh
php -f somefile.php3
EOF
$ script.sh
all ok.
Tests run ok. (they're scripts)
Who can explain this?? I'm lost and I need it.
system: linux 2.0.36 / slackware 3.6 p100/16M ram
When tracked with gdb, the bug is that return_value pointer in the
function parameters is 0x5 or 0x6.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net