|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57559 Segmentation fault within get_record()
Submitted: 2007-03-03 11:34 UTC Modified: 2017-04-01 21:09 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: john dot navratil at sbcglobal dot net Assigned:
Status: Wont fix Package: Paradox (PECL)
PHP Version: 5.1.6 OS: Fedora Core 5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
39 - 38 = ?
Subscribe to this entry?

 [2007-03-03 11:34 UTC] john dot navratil at sbcglobal dot net
Script to open and read a paradox DB file generates a segmentation fault when attempting to read a record.  This appears to be related to some object initialization as I am able to successfully process this file using other scripts, quite easily.  In fact, it was a bit of a challenge to preserve the error as I was stripping the script for a manageable example.

At some point in my experimentation, I received the message "PHP Fatal error:  paradox_db::get_record(): Could not fseek start of first data block.", but was unable to reproduce that error.  It may be a clue.

In the code, below, the error appears if the (stripped) paradoxOpen2() function is used, but does not if the in-line open code is used.

I could provide you with the 'STOCKLOT.DB' file, but observed this error on each of three files I have.

Reproduce code:
function paradoxOpen2($file, $ioMode)
	$fp = fopen($file, $ioMode);
	$pxdoc = new paradox_db();
	return $pxdoc;

$pxdoc = paradoxOpen2('STOCKLOT.DB', "r"); // Generates segmentation fault

//	$fp = fopen('STOCKLOT.DB', "r"); // Does not generate segmentation fault
//	$pxdoc = new paradox_db();
//	$pxdoc->open_fp($fp);

$arr = $pxdoc->get_record(1);

Expected result:

Actual result:
segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-03 11:37 UTC] john dot navratil at sbcglobal dot net
(Corrected bug summary text)
 [2017-04-01 21:09 UTC]
-Status: Open +Status: Wont fix
 [2017-04-01 21:09 UTC]
Due to this extension not seeing any activity since 2007, this issue will not be fixed. We are therefore closing this now.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 07:01:28 2024 UTC