|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-09-25 09:28 UTC] busterb at mail dot utexas dot edu
Creating a new db2 database causes a segfault with
dba_open()
$ php -v
PHP 4.3.0-dev (cli), Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend
Technologies
$ php -r "dba_open ("file_test", "n", "db2");"
Segmentation fault
This is the backtrace:
#0 0x081ad050 in memp_register ()
#1 0x40031c6b in db_open () from /lib/libdb.so.3
#2 0x0807567a in dba_open_db2 ()
#3 0x080752b0 in php_dba_open ()
#4 0x08074d3e in zif_dba_open ()
#5 0x0816928c in execute ()
#6 0x0815cd0b in zend_execute_scripts ()
#7 0x081374a9 in php_execute_script ()
#8 0x0816dc6b in main ()
#9 0x4028917d in __libc_start_main () from /lib/libc.so.6
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 16:00:01 2025 UTC |
Here it is. It looks like a string is not allocated correctly. #0 0x081ebb90 in memp_register () #1 0x40040c6b in db_open () from /lib/libdb.so.3 #2 0x0807aa0c in dba_open_db2 (info=0x82ea510) at /home/busterb/cvs/php4/php4/ext/dba/dba_db2.c:74 #3 0x0807a4f8 in php_dba_open (ht=3, return_value=0x82ea4b4, this_ptr=0x0, return_value_used=0, persistent=0) at /home/busterb/cvs/php4/php4/ext/dba/dba.c:346 #4 0x08079e0e in zif_dba_open (ht=3356467, return_value=0x333733, this_ptr=0x333733, return_value_used=3356467) at /home/busterb/cvs/php4/php4/ext/dba/dba.c:386 #5 0x081a6dcf in execute (op_array=0x82e9fbc) at /home/busterb/cvs/php4/php4/Zend/zend_execute.c:1602 #6 0x0818f45c in zend_eval_string (str=0xbfffd55c "", retval_ptr=0x0, string_name=0x333733 <Address 0x333733 out of bounds>) at /home/busterb/cvs/php4/php4/Zend/zend_execute_API.c:630 #7 0x081ac68d in main (argc=3, argv=0xbfffd764) at /home/busterb/cvs/php4/php4/sapi/cli/php_cli.c:737 #8 0x4033317d in __libc_start_main () from /lib/libc.so.6