From: Greg C. <gr...@cr...> - 2008-05-28 01:36:46
|
On Tue, 2008-05-27 at 18:02 +0400, Alex Peshkov wrote: > On Tuesday 27 May 2008 17:13, Greg Cunningham wrote: > > I am experencing a php core dump similar to: > > > > http://bugs.php.net/bug.php?id=44556 > > > > FreeBSD V7 - i386 and amd64 both fail > > pkg_i > > apache-2.2.8 Version 2.2 of Apache web server with prefork MPM. > > ... > > firebird-client-2.0.3_2 Firebird-2 database client > > firebird-server-2.0.3_2 Firebird-2 relational database (server) > > ... > > php5-5.2.6 PHP Scripting Language > > php5-interbase-5.2.6 The interbase shared extension for php > > php5-session-5.2.6 The session shared extension for php > > > > > > my test file, foo.php: > > <?php > > $conn = ibase_connect("localhost:/usr/db/mydb.fdb","user","pass"); > > ?> > > ---- > > 1bsd# php foo.php > > Segmentation fault (core dumped) > // skipped.. > > Greg, can you build debug version of firebird (--enable-debug switch for > configure) and try to get a backtrace with it? I hope it will help. > If yes, please also keep core file - may be I will ask you about some var-s > values. > > Alex. ... After some help from Nigel, I added --enable-debug to /usr/ports/databases/firebird2-server/Makefile (&also removed the root-can't-build bit out) Both i386 & amd64 releases fail to build with debug on. configure summary: ---- The Firebird2 package has been configured with the following options: Architecture : ClassicServer Debug : enabled 64 bit I/O for 32-bit platforms : enabled Raw devices : enabled Lock manager : enabled Service name : gds_db Service port : 3050 GPRE modules : c_cxx.cpp Install Dir : /var/db/firebird ---- i386 make error: ... ../src/jrd/../jrd/../lock/../jrd/file_params.h:100: warning: 'LOGFILE' defined but not used ../src/jrd/../jrd/../jrd/../jrd/../jrd/../jrd/scl.h:124: warning: 'Jrd::SYSDBA_USER_NAME' defined but not used ../src/jrd/../jrd/../jrd/../jrd/../jrd/../jrd/scl.h:126: warning: 'Jrd::object_table' defined but not used ../src/jrd/../jrd/../jrd/../jrd/../jrd/../jrd/scl.h:127: warning: 'Jrd::object_procedure' defined but not used ../src/jrd/../jrd/../jrd/../jrd/../jrd/../jrd/scl.h:128: warning: 'Jrd::object_column' defined but not used ../gen/firebird/bin/gpre_current -n -z -gds_cxx -raw -ids ../src/jrd/dpm.epp ../src/jrd/dpm.cpp gmake[3]: *** [../src/jrd/dpm.cpp] Segmentation fault: 11 (core dumped) gmake[3]: Leaving directory `/usr/ports/databases/firebird2-server/work/Firebird-2.0.3.12981-1/gen' gmake[2]: *** [libfbstatic] Error 2 gmake[2]: Leaving directory `/usr/ports/databases/firebird2-server/work/Firebird-2.0.3.12981-1/gen' gmake[1]: *** [../gen/firebird/bin/gpre_static] Error 2 gmake[1]: Leaving directory `/usr/ports/databases/firebird2-server/work/Firebird-2.0.3.12981-1/gen' gmake: *** [firebird_boot] Error 2 *** Error code 2 Stop in /usr/ports/databases/firebird2-server. [root@1bsd# amd64 make error: ... ../src/remote/../remote/../jrd/../jrd/ods.h:145: warning: 'ODS_CURRENT_VERSION' defined but not used ../src/remote/../jrd/file_params.h:65: warning: 'EVENT_FILE' defined but not used ../src/remote/../jrd/file_params.h:66: warning: 'LOCK_FILE' defined but not used ../src/remote/../jrd/file_params.h:67: warning: 'LOCK_HEADER' defined but not used ../src/remote/../jrd/file_params.h:68: warning: 'INIT_FILE' defined but not used ../src/remote/../jrd/file_params.h:69: warning: 'GUARD_FILE' defined but not used ../src/remote/../jrd/file_params.h:96: warning: 'WORKFILE' defined but not used ../src/remote/../jrd/file_params.h:97: warning: 'MSG_FILE' defined but not used ../src/remote/../jrd/file_params.h:100: warning: 'LOGFILE' defined but not used gmake[2]: *** [../temp/std/remote/inet_server.o] Error 1 rm ../src/utilities/gsec/security.cpp gmake[2]: Leaving directory `/usr/ports/databases/firebird2-server/work/Firebird-2.0.3.12981-1/gen' gmake[1]: *** [libfbembed] Error 2 gmake[1]: Leaving directory `/usr/ports/databases/firebird2-server/work/Firebird-2.0.3.12981-1/gen' gmake: *** [libfbembed] Error 2 *** Error code 2 Stop in /usr/ports/databases/firebird2-server. 4bsd# |