Bacula director (bacula-dir in the bacula-server port 1.38.11_2 built with SQLITE3 option) exits with signal 6 (or dumps core with signal 5 when run within gdb) when sqlite3 is built with the THREADS option. Confirmed on a P4 box running 6.1-RELEASE-p11 also. Fix: Remove bacula-server and sqlite3 ports/packages. Rebuild and reinstall sqlite3 port with THREADS deselected. Rebuild and reinstall bacula-server port with SQLITE3 selected. Create bacula database using provided scripts and set permissions properly. Start bacula-dir using rc.d script. How-To-Repeat: Build sqlite3 with THREADS option selected. Build bacula-server with SQLITE3 option selected. Create bacula database using provided scripts and set permissions properly. Start bacula-dir using rc.d script. Examine dmesg output or log files for process exit information or run within gdb to get a backtrace. Backtrace indicates a possible mutex problem in the threaded runtime.
Responsible Changed From-To: freebsd-ports-bugs->itetcu I'll take it.
Dan, can you take a look at this ? ports/106781: bacula-server 1.38.11_2 director incompatible with threaded sqlite3 library http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/106781 -- IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" BOFH excuse #126: it has Intel Inside
State Changed From-To: open->feedback Wainting for maintainer feedback.
On 29 Dec 2006 at 1:58, IOnut wrote: > Dan, can you take a look at this ? > ports/106781: bacula-server 1.38.11_2 director incompatible with threaded sqlite3 library > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/106781 I have forwarded it to the Bacula devel list: http://article.gmane.org/gmane.comp.sysutils.backup.bacula.devel/7872 It may take a while... it's the holidays. I would suggest the original take it up with the Bacula project... unless we know how to fix it, which I don't. -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/
State Changed From-To: feedback->open feedback recevied from maintainer
State Changed From-To: open->feedback Asked maintainer for a possible workaround.
State Changed From-To: feedback->suspended suspended waiting for vendor fix
I believe we might have a solution. Use databases/sqlite3-threads instead. I'll submit a PR when I can. The patch will change the dependency to sqlite3-threads. Others are welcome to draw up this patch. I may not get to this for a few days. My thanks to Kimi Ostro for working on this. ref: http://article.gmane.org/gmane.comp.sysutils.backup.bacula.general/334 57 -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/
Please apply the following patch. Description: Use databases/sqlite-threads instead of database/sqlite to avoid problems described here: http://article.gmane.org/gmane.comp.sysutils.backup.bacula.general/33457 Bump port revision diff -ruN /usr/ports/sysutils/bacula-server/Makefile bacula-server/Makefile --- /usr/ports/sysutils/bacula-server/Makefile Fri Mar 9 00:46:22 2007 +++ bacula-server/Makefile Wed Apr 4 07:12:14 2007 @@ -7,6 +7,7 @@ PORTNAME= bacula DISTVERSION= 2.0.3 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= bacula @@ -146,7 +147,7 @@ SUB_LIST+= REQ_MYSQL="" REQ_PGSQL=postgresql .elif defined(WITH_SQLITE3) CONFIGURE_ARGS+= --with-sqlite3=yes -LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3 +LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3-threads DBTYPE= sqlite3 .else CONFIGURE_ARGS+= --with-sqlite=yes
State Changed From-To: suspended->feedback Thanks for the patch,Isn't it better to depend explicitly on sqlite3-threads package (see my private email).
State Changed From-To: feedback->open patch received
itetcu 2007-04-16 22:38:52 UTC FreeBSD ports repository Modified files: sysutils/bacula-server Makefile Log: - explicitly depend on databases/sqlite-threads to avoid bacula-dir exiting on sig 6 [1] - kill a white space PR: ports/106781 [2] Submitted by: John Hermes [2], Dan Langille (maintainer) [1] Approved by: maintainer Revision Changes Path 1.84 +2 -2 ports/sysutils/bacula-server/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!