Hi,
It looks like
if (staticData.ThreadCount() != 1)
{
UserMessage::Add("IRST LM not-threadsafe");
return false;
}
is being triggered so m_lmtb = NULL then a method of NULL is being
called in the destructor.
LanguageModelIRST::~LanguageModelIRST()
{
#ifndef WIN32
TRACE_ERR( "reset mmap\n");
m_lmtb->reset_mmap();
#endif
delete m_lmtb;
}
I added "if (m_lmtb)" and checked this in. The real question is why did
it think it has multiple threads if your configuration did not specify
multiple threads? Might try a git pull then a clean compile with
./bjam -j8 link=shared --prefix=/tools --with-irstlm=/tools
--with-giza=/tools/giza-pp/bin --install-scripts=/tools/scripts -a
Kenneth
On 02/07/2012 09:41 AM, Giuseppe Attardi wrote:
> When configuring moses using the option link=shared in order to generate
> shared libraries, the moses command crashes as follows:
>
> moses -f moses.ini
> Defined parameters (per moses.ini or switch):
> config: moses.ini
> distortion-file: 0-0 wbe-msd-bidirectional-fe-allff 6
> /project/piqasso/Experiments/MT/model/nov15/it-en/reordering-table
> distortion-limit: 6
> input-factors: 0
> lmodel-file: 1 0 5
> /project/piqasso/Experiments/MT/corpora/lm/english.blm.mm
> mapping: 0 T 0
> ttable-file: 1 0 0 5
> /project/piqasso/Experiments/MT/model/nov15/it-en/phrase-table
> ttable-limit: 20
> weight-d: 0.3 0.3 0.3 0.3 0.3 0.3 0.3
> weight-l: 0.5000
> weight-t: 0.20 0.20 0.20 0.20 0.20
> weight-w: -1
> Loading lexical distortion models...have 1 models
> Creating lexical reordering...
> weights: 0.300 0.300 0.300 0.300 0.300 0.300
> binary file loaded, default OFF_T: -1
> Start loading LanguageModel
> /project/piqasso/Experiments/MT/corpora/lm/english.blm.mm : [1.000] seconds
> In LanguageModelIRST::Load: nGramOrder = 5
> ERROR:IRST LM not-threadsafe
> single factor model failed
> reset mmap
> Segmentation fault
>
>
> The exact bjam configuration is as follows:
>
> /bjam -j8 link=shared --prefix=/tools --with-irstlm=/tools
> --with-giza=/tools/giza-pp/bin --install-scripts=/tools/scripts
>
> If I remove the link=shared option, it works correctly.
>
> -- Beppe
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support