You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2006/09/06 16:39:57 UTC

[Bug 5086] New: Spamassassin --lint coredump on Solaris 10

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5086

           Summary: Spamassassin --lint coredump on Solaris 10
           Product: Spamassassin
           Version: 3.1.5
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P3
         Component: spamassassin
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: real.melancon@videotron.ca


SpamAssassin version 3.1.5
  running on Perl version 5.8.7

OS: Solaris 10

After I create empty DB using (sa-learn --dbpath=/var/spool/bayes), spamassassin
--lint core dumps. See excerpt:

[3466] dbg: bayes: tie-ing to DB file R/O /var/spool/bayes/bayes_toks
[3466] dbg: bayes: tie-ing to DB file R/O /var/spool/bayes/bayes_seen
Segmentation Fault (core dumped)

If I delete the two files, lint doesn't core dumps but, as expected, complains
DB cannot be found. See excerpt:

[3475] dbg: bayes: no dbs present, cannot tie DB R/O: /var/spool/bayes/bayes_toks

I have no clue from here what is the problem.

Any help would be mostly welcomed here.

Thanks in advance.
Real Melancon.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5086] Spamassassin --lint coredump on Solaris 10

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5086


real.melancon@videotron.ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED




------- Additional Comments From real.melancon@videotron.ca  2006-09-06 17:43 -------
Thanks for the fast reply, and for guiding me.

I was really scratching my head on this one. It works now.

Here is what I did:

1. Downloaded and installed latest Perl 5.8.8 (but that didn't changed anything)

2. Downloaded and installed DB_File-1.814, but I had other errors now.

3. I found out 'make test' was failing building DB_File. I than did some reading
and found
out I had installed BerkeleyDB_4.2 and DB_File didn't like it.

4. Edited config.in, re-ran 'Perl makefile.PL', make, and now make test
completed normally...Yes!
My config.in looked something like:
    INCLUDE = /usr/local/BerkeleyDB.4.2/include
    INCLUDE = /usr/local/include
    INCLUDE = /usr/include

    LIB     = /usr/local/BerkeleyDB.4.2/lib
    LIB     = /usr/local/lib
    LIB     = /usr/lib

    DBNAME = -ldb-4.2

Now, spamassassin --lint -D returns doesn't coredump anymore, and shows proper
values:

[22713] dbg: bayes: tie-ing to DB file R/O /var/spool/bayes/bayes_toks
[22713] dbg: bayes: tie-ing to DB file R/O /var/spool/bayes/bayes_seen
[22713] dbg: bayes: found bayes db version 3
[22713] dbg: bayes: DB journal sync: last sync: 0
[22713] dbg: bayes: not available for scanning, only 0 spam(s) in bayes DB < 200
[22713] dbg: bayes: not scoring message, returning undef
[22713] dbg: bayes: DB expiry: tokens in DB: 0, Expiry max size: 50000000,
Oldest atime: 0, Newest atime: 0, Last expire: 0, Current time: 1157563337
[22713] dbg: bayes: DB journal sync: last sync: 0
[22713] dbg: bayes: untie-ing
[22713] dbg: bayes: untie-ing db_toks
[22713] dbg: bayes: untie-ing db_seen

Anyway. Thanks JM for pointing me in the right direction.

Real.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5086] Spamassassin --lint coredump on Solaris 10

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5086





------- Additional Comments From loki_2525@yahoo.com  2007-02-08 15:30 -------

Ran into this as well with the perl.pkg files from www.sunfreeware.com.  a
really quick work round is to create a softlink to the BerkeleyDB dir. Then
recompile the DB_File perl modules. No need recompile the perl source just for
this one module.  



--EXAMPLE--
cd /usr/local/lib
ln -s BerkeleyDB.4.2 BerkeleyDB
--EXAMPLE--

-- EXAMPLE ls --
lrwxrwxrwx   1 root          16 Feb  8 17:49 BerkeleyDB -> ./BerkeleyDB.4.2
drwxr-xr-x   7 bin          512 Feb  5 17:54 BerkeleyDB.4.2
-- EXAMPLE ls --

I also like setting the LD_LIBRARY_PATH environmental variables to include the
BerkeleyDB file and OpenSSL.

-- EXAMPLE -- 
LD_LIBRARY_PATH=/usr/lib:/usr/lib/X11:/usr/local/lib:/usr/local/BerkeleyDB/lib:/usr/local/ssl/lib
-- EXAMPLE -- 


- Hope this helps(In reply to comment #2)
> Thanks for the fast reply, and for guiding me.
> 
> I was really scratching my head on this one. It works now.
> 
> Here is what I did:
> 
> 1. Downloaded and installed latest Perl 5.8.8 (but that didn't changed anything)
> 
> 2. Downloaded and installed DB_File-1.814, but I had other errors now.
> 
> 3. I found out 'make test' was failing building DB_File. I than did some reading
> and found
> out I had installed BerkeleyDB_4.2 and DB_File didn't like it.
> 
> 4. Edited config.in, re-ran 'Perl makefile.PL', make, and now make test
> completed normally...Yes!
> My config.in looked something like:
>     INCLUDE = /usr/local/BerkeleyDB.4.2/include
>     INCLUDE = /usr/local/include
>     INCLUDE = /usr/include
> 
>     LIB     = /usr/local/BerkeleyDB.4.2/lib
>     LIB     = /usr/local/lib
>     LIB     = /usr/lib
> 
>     DBNAME = -ldb-4.2
> 
> Now, spamassassin --lint -D returns doesn't coredump anymore, and shows proper
> values:
> 
> [22713] dbg: bayes: tie-ing to DB file R/O /var/spool/bayes/bayes_toks
> [22713] dbg: bayes: tie-ing to DB file R/O /var/spool/bayes/bayes_seen
> [22713] dbg: bayes: found bayes db version 3
> [22713] dbg: bayes: DB journal sync: last sync: 0
> [22713] dbg: bayes: not available for scanning, only 0 spam(s) in bayes DB < 200
> [22713] dbg: bayes: not scoring message, returning undef
> [22713] dbg: bayes: DB expiry: tokens in DB: 0, Expiry max size: 50000000,
> Oldest atime: 0, Newest atime: 0, Last expire: 0, Current time: 1157563337
> [22713] dbg: bayes: DB journal sync: last sync: 0
> [22713] dbg: bayes: untie-ing
> [22713] dbg: bayes: untie-ing db_toks
> [22713] dbg: bayes: untie-ing db_seen
> 
> Anyway. Thanks JM for pointing me in the right direction.
> 
> Real.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5086] Spamassassin --lint coredump on Solaris 10

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5086


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From jm@jmason.org  2006-09-06 14:51 -------
that's definitely a bug in your build of perl or the DB_File module, not in
SpamAssassin.  I suggest rebuilding them from source and trying again.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.