It seems to me that SQLite 2.x seg faults on 64 bit systems, so I suspect that 
this is a SQLite bug.

Solutions:
- Use MySQL or PostgreSQL
- Try SQLite3 (not recommended).

On Monday 19 February 2007 02:18, Florin Andrei wrote:
> I downloaded the v 2.0.2 src.rpm and rebuilt it on Fedora 4:
>
> rpmbuild -ba --define build_fc4=1 --define build_sqlite=1 --define
> build_x86_64=1 --define nobuild_gconsole=1 bacula.spec
>
> I installed the packages:
>
> rpm -ivh bacula-mtx-2.0.2-1.x86_64.rpm bacula-sqlite-2.0.2-1.x86_64.rpm
> bacula-updatedb-2.0.2-1.x86_64.rpm
>
> But it segfaults when installing:
>
> # rpm -ivh bacula-mtx-2.0.2-1.x86_64.rpm
> bacula-sqlite-2.0.2-1.x86_64.rpm bacula-updatedb-2.0.2-1.x86_64.rpm
> Preparing...                ###########################################
> [100%]
>     1:bacula-mtx             ###########################################
> [ 33%]
>     2:bacula-sqlite          ###########################################
> [ 67%]
> Hmm, doesn't look like you have an existing database.
> Creating SQLite database...
> Creating the SQLite tables...
> /etc/bacula/make_sqlite_tables: line 358:  5431 Segmentation fault
> ${bindir}/${sqlite} $* bacula.db  <<END-OF-DATA
> CREATE TABLE Filename (
>    FilenameId INTEGER,
>    Name TEXT DEFAULT "",
>    PRIMARY KEY(FilenameId)
>    );
>
> CREATE INDEX inx1 ON Filename (Name);
> [...snip huge SQL file...]
> PRAGMA default_synchronous = OFF;
> PRAGMA default_cache_size = 10000;
>
> END-OF-DATA
>
>     3:bacula-updatedb        ###########################################
> [100%]
> The database update scripts were installed to /etc/bacula/updatedb
>
>
> Line 358 is the end of the "here document", it's exactly the
> "END-OF-DATA" label. I tried to run /etc/bacula/make_sqlite_tables from
> the command line after the packages were installed, and it segfaults
> every time.
>
> I have sqlite-3.1.2 on that system already installed.
>
> Any clues? What should I try now?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to