I don't know that it applies to specifically spamassassin, but I used to 
run into considerable nuisance with seg faults on Solaris when the 
parameters of scripts were a specific number of bytes - I think around 
multiples of 32. So you might achieve joy by adjusting the length of a 
filename somewhere on the path to spamassassin. Particularly where 
invoking privileged ('op') processes.

Hope this helps!

- C



On Sun, 10 Jan 2010, Robert P. Weaver wrote:
:             I am hoping someone can offer me some advice that will help
: resolve this problem.
: 
:  
: 
:             I recently installed SpamAssassin on my Solaris server with the
: intention of filtering the incoming email with procmail (I have a Postfix
: mail server). However I never got that far. When I first tested SpamAssassin
: it worked on the first invocation but failed with a segmentation fault on
: every subsequent invocation. I can make it work again by deleting the
: “.spamassassin” subdirectory in my home directory.
: 
:  
: 
:             Below is a bunch of diagnostic information including the fatal
: call (run with - -lint -D). Any help would be appreciated.
: 
:  
: 
: Bob Weaver
: 
: rwea...@mordor.org
: 
:  
: 
: $ uname -a
: 
: SunOS sauron 5.10 Generic_118822-11 sun4u sparc SUNW,UltraAX-i2
: 
:  
: 
: $ perl -v
: 
: This is perl, v5.8.7 built for sun4-solaris  
: 
:  
: 
: $ spamassassin -V
: 
: SpamAssassin version 3.2.5
: 
:   running on Perl version 5.8.7
: 
:  
: 
: The call:
: 
:  
: 
: $ spamassassin -D --lint
: 
: [28414] dbg: logger: adding facilities: all
: 
: [28414] dbg: logger: logging level is DBG
: 
: [28414] dbg: generic: SpamAssassin version 3.2.5
: 
: [28414] dbg: config: score set 0 chosen.
: 
: [28414] dbg: util: running in taint mode? yes
: 
: [28414] dbg: util: taint mode: deleting unsafe environment variables,
: resetting PATH
: 
: [28414] dbg: util: PATH included '/usr/local/bin', keeping
: 
: [28414] dbg: util: PATH included '/usr/local/sbin', keeping
: 
: [28414] dbg: util: PATH included '/usr/bin', keeping
: 
: [28414] dbg: util: PATH included '/usr/sfw/bin', keeping
: 
: [28414] dbg: util: PATH included '.', which is not absolute, dropping
: 
: [28414] dbg: util: PATH included '/usr/sfw/sbin', keeping
: 
: [28414] dbg: util: PATH included '/opt/sfw/bin', keeping
: 
: [28414] dbg: util: PATH included '/opt/sfw/sbin', keeping
: 
: [28414] dbg: util: PATH included '/usr/ccs/bin', keeping
: 
: [28414] dbg: util: PATH included '/usr/openwin/bin',
: keeping                                               
:                     [28414] dbg: util: final PATH set 
to:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sfw/bin:/usr/sfw/sbin:/opt/sfw
: /bin:/opt/sfw/s
: 
: bin:/usr/ccs/bin:/usr/openwin/bin
: 
: [28414] dbg: dns: no ipv6
: 
: [28414] dbg: dns: is Net::DNS::Resolver available? yes
: 
: [28414] dbg: dns: Net::DNS version: 0.65
: 
: [28414] dbg: diag: perl platform: 5.008007 solaris
: 
: [28414] dbg: diag: module installed: Digest::SHA1, version 2.12
: 
: [28414] dbg: diag: module installed: HTML::Parser, version 3.64
: 
: [28414] dbg: diag: module installed: Net::DNS, version 0.65
: 
: [28414] dbg: diag: module installed: MIME::Base64, version 3.05
: 
: [28414] dbg: diag: module installed: DB_File, version 1.811
: 
: [28414] dbg: diag: module installed: Net::SMTP, version 2.31
: 
: [28414] dbg: diag: module installed: Mail::SPF, version v2.007
: 
: [28414] dbg: diag: module not installed: Mail::SPF::Query ('require' failed)
: 
: [28414] dbg: diag: module installed: IP::Country::Fast, version 604.001
: 
: [28414] dbg: diag: module not installed: Razor2::Client::Agent ('require'
: failed)
: 
: [28414] dbg: diag: module not installed: Net::Ident ('require' failed)
: 
: [28414] dbg: diag: module not installed: IO::Socket::INET6 ('require'
: failed)
: 
: [28414] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
: 
: [28414] dbg: diag: module installed: Compress::Zlib, version 2.023
: 
: [28414] dbg: diag: module installed: Time::HiRes, version 1.66
: 
: [28414] dbg: diag: module not installed: Mail::DomainKeys ('require' failed)
: 
: [28414] dbg: diag: module not installed: Mail::DKIM ('require' failed)
: 
: [28414] dbg: diag: module installed: DBI, version 1.609
: 
: [28414] dbg: diag: module installed: Getopt::Long, version 2.34
: 
: [28414] dbg: diag: module installed: LWP::UserAgent, version 5.834
: 
: [28414] dbg: diag: module installed: HTTP::Date, version 5.831
: 
: [28414] dbg: diag: module installed: Archive::Tar, version 1.54
: 
: [28414] dbg: diag: module installed: IO::Zlib, version 1.10
: 
: [28414] dbg: diag: module installed: Encode::Detect, version 1.01
: 
: [28414] dbg: ignore: using a test message to lint rules
: 
: [28414] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
: 
: [28414] dbg: config: read file /etc/mail/spamassassin/init.pre
: 
: [28414] dbg: config: read file /etc/mail/spamassassin/v310.pre
: 
: [28414] dbg: config: read file /etc/mail/spamassassin/v312.pre
: 
: [28414] dbg: config: read file /etc/mail/spamassassin/v320.pre
: 
: [28414] dbg: config: using "/usr/local/share/spamassassin" for sys rules pre
: files
: 
: [28414] dbg: config: using "/usr/local/share/spamassassin" for default rules
: dir
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/10_default_prefs.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/20_advance_fee.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/20_body_tests.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/20_compensate.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/20_dnsbl_tests.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/20_drugs.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/20_dynrdns.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/20_fake_helo_tests.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/20_head_tests.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/20_html_tests.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/20_imageinfo.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/20_meta_tests.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/20_net_tests.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/20_phrases.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/20_porn.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/20_ratware.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/20_uri_tests.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/20_vbounce.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/23_bayes.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_accessdb.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_antivirus.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_asn.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_dcc.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_dkim.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/25_domainkeys.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_hashcash.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_pyzor.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_razor2.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_replace.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_spf.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_textcat.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/25_uribl.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/30_text_de.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/30_text_fr.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/30_text_it.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/30_text_nl.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/30_text_pl.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/30_text_pt_br.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/50_scores.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/60_awl.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/60_shortcircuit.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/60_whitelist.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/60_whitelist_dk.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/60_whitelist_dkim.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/60_whitelist_spf.cf
: 
: [28414] dbg: config: read file
: /usr/local/share/spamassassin/60_whitelist_subject.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/72_active.cf
: 
: [28414] dbg: config: read file /usr/local/share/spamassassin/72_removed.cf
: 
: [28414] dbg: config: using "/etc/mail/spamassassin" for site rules dir
: 
: [28414] dbg: config: read file /etc/mail/spamassassin/local.cf
: 
: [28414] dbg: config: using "/users/rweaver/.spamassassin/user_prefs" for
: user prefs file
: 
: [28414] dbg: config: read file /users/rweaver/.spamassassin/user_prefs
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
: 
: [28414] dbg: pyzor: local tests only, disabling Pyzor
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
: 
: [28414] dbg: razor2: local tests only, skipping Razor
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
: 
: [28414] dbg: reporter: local tests only, disabling SpamCop
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold
: from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject
: from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from
: @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from
: @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::Check from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTTPSMismatch from
: @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDetail from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::Bayes from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::BodyEval from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::DNSEval from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTMLEval from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::HeaderEval from
: @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEEval from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::RelayEval from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIEval from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::WLBLEval from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::VBounce from @INC
: 
: [28414] dbg: plugin: loading Mail::SpamAssassin::Plugin::ImageInfo from @INC
: 
: [28414] dbg: config: warning: score set for non-existent rule OUTLOOK_3416
: 
: [28414] dbg: config: warning: score set for non-existent rule RCVD_IN_DOB
: 
: [28414] dbg: config: warning: score set for non-existent rule DNS_FROM_DOB
: 
: [28414] dbg: config: warning: score set for non-existent rule
: XMAILER_MIMEOLE_OL_C9068
: 
: [28414] dbg: rules: __MO_OL_9B90B merged duplicates: __MO_OL_C65FA
: 
: [28414] dbg: rules: __XM_OL_22B61 merged duplicates: __XM_OL_A842E
: 
: [28414] dbg: rules: __MO_OL_07794 merged duplicates: __MO_OL_8627E
: __MO_OL_F3B05                                                [28414] dbg:
: rules: __XM_OL_07794 merged duplicates: __XM_OL_25340 __XM_OL_3857F
: __XM_OL_4F240 __XM_OL_58CB5 __XM_OL_6554A __XM_
: 
: OL_812FF __XM_OL_C65FA __XM_OL_CF0C0 __XM_OL_F475E __XM_OL_F6D01
: 
: [28414] dbg: rules: FH_MSGID_01C67 merged duplicates: __MSGID_VGA
: 
: [28414] dbg: rules: FS_NEW_SOFT_UPLOAD merged duplicates:
: HS_SUBJ_NEW_SOFTWARE
: 
: [28414] dbg: rules: __FH_HAS_XMSMAIL merged duplicates: __HAS_MSMAIL_PRI
: 
: [28414] dbg: rules: __MO_OL_015D5 merged duplicates:
: __MO_OL_6554A                                                             
: [28414] dbg: rules: __XM_OL_015D5 merged duplicates: __XM_OL_4BF4C
: __XM_OL_4EEDB __XM_OL_5B79A __XM_OL_9B90B __XM_OL_ADFF7 __XM_
: 
: OL_B30D1 __XM_OL_B4B40 __XM_OL_BC7E6 __XM_OL_F3B05 __XM_OL_FF5C8
: 
: [28414] dbg: rules: __MO_OL_91287 merged duplicates: __MO_OL_B30D1
: __MO_OL_CF0C0
: 
: [28414] dbg: rules: KAM_STOCKOTC merged duplicates: KAM_STOCKTIP15
: KAM_STOCKTIP20 KAM_STOCKTIP21 KAM_STOCKTIP4 KAM_STOCKTIP6
: 
: [28414] dbg: rules: __MO_OL_22B61 merged duplicates: __MO_OL_4F240
: __MO_OL_ADFF7
: 
: [28414] dbg: rules: __MO_OL_812FF merged duplicates: __MO_OL_BC7E6
: 
: [28414] dbg: rules: __MO_OL_25340 merged duplicates: __MO_OL_4EEDB
: __MO_OL_7533E
: 
: [28414] dbg: rules: __MO_OL_58CB5 merged duplicates: __MO_OL_B4B40
: 
: [28414] dbg: rules: __DOS_HAS_ANY_URI merged duplicates:
: __HAS_ANY_URI                                     
:                     [28414] dbg: rules: AXB_RCVD_ZOOBSEND merged duplicates:
: BROKEN_RATWARE_BOM CTYPE_001C_A DEAR_HOMEOWNER DIV_CENTER_A_HREF
: DRUG_RA_PRICE FM_DDDD_TIMES_2 FM_SEX_HOSTDDDD HG_HORMONE HS_PHARMA_1
: HS_UPLOADED_SOFTWARE OEBOUND STOX_RCVD_N_NN_N URIBL_RHS_ABUSE
: URIBL_RHS_BOGUSMX URIBL_RHS_DSN URIBL_RHS_POST URIBL_RHS_TLD_WHOIS
: URIBL_RHS_WHOIS URIBL_XS_SURBL URI_L_PHP XMAILER_MIMEOLE_OL_5E7E
: 
: D XMAILER_MIMEOLE_OL_C7C33 XMAILER_MIMEOLE_OL_D03AB X_LIBRARY
: YOUR_CRD_RATING
: 
: [28414] dbg: rules: __MO_OL_72641 merged duplicates: __MO_OL_A842E
: 
: [28414] dbg: rules: __MO_OL_F475E merged duplicates: __MO_OL_FF5C8
: 
: [28414] dbg: rules: __MO_OL_4BF4C merged duplicates: __MO_OL_F6D01
: 
: [28414] dbg: conf: finish parsing
: 
: [28414] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x13b4e24)
: implements 'finish_parsing_end', priority 0
: 
: [28414] dbg: replacetags: replacing tags
: 
: [28414] dbg: replacetags: done replacing tags
: 
: [28414] dbg: bayes: tie-ing to DB file R/O
: /users/rweaver/.spamassassin/bayes_toks
: 
: [28414] dbg: bayes: tie-ing to DB file R/O
: /users/rweaver/.spamassassin/bayes_seen
: 
: Segmentation Fault - core dumped
: 
:  
: 
: Finally, a status and a stack dump on the core using mdb
: 
:  
: 
: $ mdb core
: 
: Loading modules: [ libc.so.1 ld.so.1 ]
: 
: > ::status
: 
: debugging core file of spamassassin (32-bit) from sauron
: 
: file: /usr/local/bin/perl
: 
: initial argv: /usr/local/bin/perl -T /usr/local/bin/spamassassin -D --lint
: 
: threading model: multi-threaded
: 
: status: process terminated by SIGSEGV (Segmentation Fault)
: 
: > 
: 
: > $c
: 
: libc_psr.so.1`memset+0x140(0, 16, 180, 0, 0, ff16c950)
: 
: DB_File.so`dbopen+0x5c(14ca9c0, 0, 180, 1, 0, 1765c99)
: 
: DB_File.so`ParseOpenInfo+0x9d8(1765c38, 14ca9c0, 0, 180, 0, 4040004)
: 
: DB_File.so`XS_DB_File_DoTie_+0x2c4(a7ac20, fed96a20, c01be0, a675c0, c,
: c01bd0)
: 
: Perl_pp_entersub+0x5a8(117c00, a660f8, 0, a660f8, 14ece28, 70)
: 
: Perl_runops_standard+0x30(118800, 118800, 17c, 11b400, 70cff0, ffbff898)
: 
: S_call_body+0x5c(ffbff9f0, 0, c01bd8, 0, 118c00, 0)
: 
: Perl_call_sv+0x250(1311b0, c01bd8, c01bc8, 11b000, 17c5e8, 11b400)
: 
: Perl_pp_tie+0x420(c01bd8, 0, 0, 13d117c, 0, 0)
: 
: Perl_runops_standard+0x30(118800, a4adf8, 11b400, 0, 0, 0)
: 
: S_run_body+0x14c(1, 11b400, 11bb48, 0, 0, 0)
: 
: perl_run+0x8c(3, fffffffc, 5, ffbffd14, 0, 8)
: 
: main+0xa4(5, ffbffd14, ffbffd2c, 11b4e0, ff340100, ff340140)
: 
: _start+0x5c(0, 0, 0, 0, 0, 0)        
: 
:  
: 
: 
: 

Reply via email to