php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15992 Segmentation fault (11)
Submitted: 2002-03-11 05:07 UTC Modified: 2002-04-04 07:38 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:3 (75.0%)
From: office at lunar dot com dot pl Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.1.2 OS: RH 7.2
Private report: No CVE-ID:
 [2002-03-11 05:07 UTC] office at lunar dot com dot pl
ibase_close function causes Segmentation fault (11) in Apache 1.3.23 web server.


Program received signal SIGSEGV, Segmentation fault.
0x40430c7c in memcpy () from /lib/i686/libc.so.6
(gdb) bt
#0  0x40430c7c in memcpy () from /lib/i686/libc.so.6
#1  0x00000000 in __strtol_internal (nptr=0x0, endptr=0x0, base=165,
group=128)

If I comment out the ibase_close() from my PHP scripst all works well.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-11 06:07 UTC] mfischer@php.net
Can you provide more context of the backtrace (e.g. a few more lines from 'bt full') ?
 [2002-03-11 06:25 UTC] office at lunar dot com dot pl
No symbol table info available.

What else can I do to help?
 [2002-03-11 06:33 UTC] mfischer@php.net
Recompile php and the module (if not static already) with the configure line '--enable-debug'.
 [2002-03-11 06:51 UTC] office at lunar dot com dot pl
As before i did:

./configure --without-mysql --with-imap --with-imap-ssl --with-interbase --with-pgsql --with-kerberos --with-gettext --with-xml --with-apache=../apache_1.3.23/ --enable-track-vars --enable-debug > .log

Backtrace only outputs the same 2 lines after httpd crashes
 [2002-03-11 08:13 UTC] sander@php.net
Try compiling Apache with --enable-debug too.
 [2002-03-11 09:32 UTC] office at lunar dot com dot pl
Apache does not have en --enable-debug option but I compiled it with -g option in gcc and it still did not work.
I only get 2 lines of backtrace info :(
 [2002-04-04 07:38 UTC] daniela@php.net
Fixed in today CVS (4.3.0-dev)

same as bug #15419 - #14558

you will find an example about how to use ibase_close() at:
http://www.php.net/manual/en/function.ibase-close.php
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 07:02:02 2014 UTC