Re: Strange segfault with improper usage

Paolo <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <20080324143616.GW20978@localhost>
On Mon, Mar 24, 2008 at 08:22:48AM -0400, Bill Y wrote:
> 
>    in crm_osb_bayes.c:1240 we get SEGV if -t is used and one cssfile is missing:
...
>    nevertheless. Possibly in other classifiers as well.

no, seems it's in osb_bayes only

> 
> OK, got a patch?

kinda - got rid of that chunk and moved it (mod'd) into the preceding for()
block:

       if (use_chisquared)
         cpcorr[ifile] = 1.00;
+      if (internal_trace)
+        fprintf (stderr,
+          " files  %ld: learns %lu, total-L %lu, total-F %lu, cp %f\n",
+           ifile, hashes[ifile][learns_index[ifile]].value,            
+           total_learns, total_features, cpcorr [ifile]);
    };

> 
> (speakin' of which, TRE 0.7.5 is _less_ buggy than 0.7.3 and therefore

yes (afaik)

-- 
paolo

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.