Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ports/127262: fbclient crashes php engine

6 views
Skip to first unread message

Nigel Weeks

unread,
Sep 10, 2008, 12:33:21 AM9/10/08
to freebsd-gn...@freebsd.org

>Number: 127262
>Category: ports
>Synopsis: fbclient crashes php engine
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 10 04:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Nigel Weeks
>Release: RELENG_7_0
>Organization:
Australian Bulk Minerals / Prism9 Technology
>Environment:
FreeBSD server0001.prism9.com 7.0-STABLE FreeBSD 7.0-STABLE #0: Thu May 22 19:04:52 EST 2008 nwe...@server0001.prism9.com:/usr/obj/usr/src/sys/SERVER i386

>Description:
After upgrade to FreeBSD 7, and rebuilding all ports from sources, Apache processes die with Sig 11's

Running php5 from command line yeilds the same result

simple php script containing the following:
#!/usr/local/bin/php

<?php

$conn = ibase_connect("localhost:/raid/db/passport.fdb","sysdba","masterkey");

$sql = "select * from tbl_transaction";
$rec = ibase_query($sql);
while($row = ibase_fetch_row($rec)){
echo ".";

}

?>


When run, yields the following:
./db_test.php

Segmentation fault (core dumped)


gdb dump of the core:

GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5 Reading symbols from /lib/libz.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3 Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/php/20060613/interbase.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/interbase.so
Reading symbols from /usr/local/lib/libfbclient.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libfbclient.so.2 Reading symbols from /lib/libncurses.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.7
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6 Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x285fedff in ThreadData::restoreSpecific ()
from /usr/local/lib/libfbclient.so.2
[New Thread 0x835b300 (LWP 101281)]
(gdb)


Again, all ports were compiled fresh - no old libraries were remaining...

Firebird operation itself is fine - can `isql` to databases, backups, restores and remtoe connections are fine.

>How-To-Repeat:
On FreeBSD 7.x (Both 7_0_0_RELEASE and 7_0 have been tried):

Install PHP5, php5-interbase, Firebird2-client, and Firebird2-server.

Create test script to connect to a database, and do a simple select query


>Fix:
Currently, the only fix is to downgrade to FreeBSD 6.2

>Release-Note:
>Audit-Trail:
>Unformatted:

ksn135

unread,
Sep 24, 2008, 11:23:24 AM9/24/08
to
The same situation.

> uname -a
FreeBSD ois.gk.bionika.ru 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb
24 19:59:52 UTC 2008 ro...@logan.cse.buffalo.edu:/usr/obj/usr/src/
sys/GENERIC i386

> pkg_list
apache-2.2.9_5 Version 2.2.x of Apache web server with prefork
MPM.
aspell-0.60.6_2 Spelling checker with better suggestion logic than
ispell
autoconf-2.62 Automatically configure source code on many Un*x
platforms
autoconf-wrapper-20071109 Wrapper script for GNU autoconf
automake-1.5_5,1 GNU Standards-compliant Makefile generator (1.5)
automake-1.9.6_3 GNU Standards-compliant Makefile generator (1.9)
automake-wrapper-20071109 Wrapper script for GNU automake
bash-3.2.25 The GNU Project's Bourne Again SHell
bison-2.3_4,1 A parser generator from FSF, (mostly) compatible
with Yacc
compat5x-i386-5.4.0.8_9 A convenience package to install the compat5x
libraries
compat6x-i386-6.3.603000.200801 A convenience package to install the
compat6x libraries
curl-7.18.0 Non-interactive tool to get files from FTP,
GOPHER, HTTP(S)
cvsup-without-gui-16.1h_3 General network file distribution system
optimized for CVS
db41-4.1.25_4 The Berkeley DB package, revision 4.1
e2fsprogs-libuuid-1.41.1_1 UUID library from e2fsprogs package
expat-2.0.1 XML 1.0 parser written in C
ezm3-1.2_1 Easier, more portable Modula-3 distribution for
building CV
findutils-4.4.0_3 The GNU find utilities
firebird-client-2.0.3_2 Firebird-2 database client
freetds-msdblib-0.64_2 Sybase/Microsoft TDS protocol library
freetype2-2.3.7 A free and portable TrueType font rendering engine
gamin-0.1.9_2 A file and directory monitoring system
gettext-0.16.1_3 GNU gettext package
glib-2.14.2 Some useful routines of C programming (current
stable versi
gmake-3.81_2 GNU version of 'make' utility
help2man-1.36.4_2 Automatically generating simple manual pages from
program o
icu-3.8.1_1 International Components for Unicode (from IBM)
jpeg-6b_7 IJG's jpeg compression utilities
libexecinfo-1.1_2 A library for inspecting program's backtrace
libiconv-1.11_1 A character set conversion library
libtool-1.5.24 Generic shared library support script
libxml2-2.6.32 XML parser library for GNOME
libxslt-1.1.24_1 The XSLT C library for GNOME
linux_base-fc-4_10 Base set of packages needed in Linux mode (for
i386/amd64)
localedata-5.4 Legacy locale data for FreeBSD 6+
m4-1.4.11,1 GNU m4
mc-4.6.1_6 Midnight Commander, a free Norton Commander Clone
mod_log_config-st-1.0 A modified version of mod_log_config for apache2
mod_log_mysql-1.0 Allows Apache 2 to log to a MySQL database
mysql-client-5.1.28 Multithreaded SQL database (client)
mysql-server-5.1.28 Multithreaded SQL database (server)
neon28-0.28.3 An HTTP and WebDAV client library for Unix systems
openldap-client-2.4.11 Open source LDAP client implementation
p5-gettext-1.05_2 Message handling functions
pcre-7.4 Perl Compatible Regular Expressions library
pear-1.7.2 PEAR framework for PHP
pecl-fileinfo-1.0.4 A PECL extension to retrieve info about files
pecl-hash-1.5 HASH Message Digest Framework for PHP
pecl-json-1.2.1 PHP extension for JSON (JavaScript Object
Notation) seriali
pecl-zip-1.9.0 A PECL extension to create and read zip files
perl-5.8.8_1 Practical Extraction and Report Language
php5-5.2.6_2 PHP Scripting Language
php5-dom-5.2.6_2 The dom shared extension for php
php5-extensions-1.1 A "meta-port" to install PHP extensions
php5-ftp-5.2.6_2 The ftp shared extension for php
php5-gd-5.2.6_2 The gd shared extension for php
php5-gettext-5.2.6_1 The gettext shared extension for php
php5-iconv-5.2.6_2 The iconv shared extension for php
php5-interbase-5.2.6_2 The interbase shared extension for php
php5-ldap-5.2.6_2 The ldap shared extension for php
php5-mbstring-5.2.6_2 The mbstring shared extension for php
php5-mssql-5.2.6_2 The mssql shared extension for php
php5-mysql-5.2.6_2 The mysql shared extension for php
php5-mysqli-5.2.6_2 The mysqli shared extension for php
php5-pcre-5.2.6_2 The pcre shared extension for php
php5-pdo-5.2.6_2 The pdo shared extension for php
php5-pdo_sqlite-5.2.6_2 The pdo_sqlite shared extension for php
php5-posix-5.2.6_2 The posix shared extension for php
php5-session-5.2.6_2 The session shared extension for php
php5-simplexml-5.2.6_2 The simplexml shared extension for php
php5-spl-5.2.6_2 The spl shared extension for php
php5-sqlite-5.2.6_2 The sqlite shared extension for php
php5-tokenizer-5.2.6_2 The tokenizer shared extension for php
php5-xml-5.2.6_2 The xml shared extension for php
php5-xmlreader-5.2.6_2 The xmlreader shared extension for php
php5-xmlrpc-5.2.6_2 The xmlrpc shared extension for php
php5-xmlwriter-5.2.6_2 The xmlwriter shared extension for php
php5-xsl-5.2.6_2 The xsl shared extension for php
pkg-config-0.22_1 A utility to retrieve information about installed
libraries
png-1.2.32 Library for manipulating PNG images
popt-1.7_5 A getopt(3) like library with a number of
enhancements, fro
portaudit-0.5.12 Checks installed ports against a list of security
vulnerabi
portupgrade-2.3.1,2 FreeBSD ports/packages administration and
management tool s
python-2.5,2 The "meta-port" for the default version of Python
interpret
python25-2.5.2_3 An interpreted object-oriented programming
language
recode-3.6_7 Converts files between character sets and usages
ruby-1.8.6.111_1,1 An object-oriented interpreted scripting language
ruby18-bdb-0.6.2 Ruby interface to Sleepycat's Berkeley DB revision
2 or lat
subversion-1.5.2 Version control system
sudo-1.6.9.17 Allow others to run commands as root
t1lib-5.1.2,1 A Type 1 Rasterizer Library for UNIX/X11
tidy-lib-080621.c Utility to clean up and pretty print HTML/XHTML/
XML (with s

Any advices ?

0 new messages