Thanks Miles very much
follow your guide, I just run moses in gcb mode and here is the stack
trace
-----------------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
std::nth_element<__gnu_cxx::__normal_iterator<Moses::TranslationOption**,
std::vector<Moses::TranslationOption*,
std::allocator<Moses::TranslationOption*> > >, bool
(*)(Moses::TranslationOption const*, Moses::TranslationOption const*)>
(__first={_M_current = 0x0}, __nth={_M_current = 0x190}, __last=<value
optimized out>,
__comp=0x4a5cd0
<Moses::CompareTranslationOption(Moses::TranslationOption const*,
Moses::TranslationOption const*)>)
at /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c
++/4.1.2/bits/stl_algo.h:125
125 if (__comp(__a, __b))
(gdb) where
#0
std::nth_element<__gnu_cxx::__normal_iterator<Moses::TranslationOption**,
std::vector<Moses::TranslationOption*,
std::allocator<Moses::TranslationOption*> > >, bool
(*)(Moses::TranslationOption const*, Moses::TranslationOption const*)>
(__first={_M_current = 0x0}, __nth={_M_current = 0x190}, __last=<value
optimized out>,
__comp=0x4a5cd0
<Moses::CompareTranslationOption(Moses::TranslationOption const*,
Moses::TranslationOption const*)>)
at /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c
++/4.1.2/bits/stl_algo.h:125
#1 0x00000000004a7000 in Moses::TranslationOptionCollection::Prune
(this=0xc64cdf40) at TranslationOptionCollection.cpp:107
#2 0x00000000004a818e in
Moses::TranslationOptionCollection::CreateTranslationOptions
(this=0xc64cdf40, decodestep...@0x70ab80) at
TranslationOptionCollection.cpp:406
#3 0x000000000041fc19 in Moses::Manager::ProcessSentence
(this=0x7fff2462bfa0) at Manager.cpp:90
#4 0x0000000000405d50 in main (argc=9, argv=<value optimized out>) at
Main.cpp:143
--------------------------------------------------------------------------------
Could you show me the explains,
Thanks,
Manh Hung
2009-04-16 (木) の 18:08 +0100 に Miles Osborne さんは書きました:
> in general, when you compile a c or c++ program, you add the switch
>
> -g
>
> to the options (usually in a Makefile). this will tell the compiler
> to add stuff to the program so that it works with gde.
>
> you then do:
>
> gdb moses
>
> and you will see a prompt. you then run moses within that prompt, but
> using the "run" command instead of "moses":
>
> gdb> run ...
>
> when it crashes, you then type "where" and you will see the various
> functions that were called prior to the crash.
>
> Miles
>
> 2009/4/16 Nguyen Manh Hung <[email protected]>:
> > Sorry Chris.
> > I'm a beginner with moses and C(I usually use perl and java), so I don't
> > know how to run moses in gdb(debugger mode???). I just searched but
> > have got any guide for its. Could you show me how to do this.
> >
> > Thanks very much,
> > Manh Hung
> >
> > 2009-04-16 (木) の 11:57 -0400 に Chris Dyer さんは書きました:
> >> I was actually hoping for a stack trace. That is, run moses in gdb,
> >> and then when it crashes, uses the "where" command to show where the
> >> crash is.
> >>
> >> Thanks!
> >>
> >> 2009/4/16 Nguyen Manh Hung <[email protected]>:
> >> > Dear Chris
> >> > I have included the stack trace as a file.
> >> > Thanks in advance,
> >> > Manh Hung
> >> >
> >> > 2009-04-16 (木) の 11:34 -0400 に Chris Dyer さんは書きました:
> >> >> Can you send me a stack trace for where the SEGV is happening? Once
> >> >> the phrase table has been binarized, there's no need to have any
> >> >> special temporary space.
> >> >>
> >> >> On Tue, Apr 28, 2009 at 10:46 AM, Nguyen Manh Hung
> >> >> <[email protected]> wrote:
> >> >> > Chris Dyer さんは書きました:
> >> >> >>
> >> >> >> You need to add a -weight-i flag to the command line which specifies
> >> >> >> how much weighting to apply to the arc feature.
> >> >> >>
> >> >> >> e.g.:
> >> >> >>
> >> >> >> moses ... -weight-i 0.5
> >> >> >>
> >> >> >> -Chris
> >> >> >>
> >> >> >> On Thu, Apr 16, 2009 at 9:58 AM, Nguyen Manh Hung
> >> >> >> <[email protected]> wrote:
> >> >> >>
> >> >> >>>
> >> >> >>> Hi,
> >> >> >>>
> >> >> >>> I'm using Moese to decode with lattices format as input. Also I make
> >> >> >>> lattices file content by hand. When I run moses with follow command
> >> >> >>> MOSES_HOME/moses-cmd/src/moses -f config_file.ini -inputtype 2
> >> >> >>> -input-file input.txt > out.put
> >> >> >>> These error has come
> >> >> >>> ----------------------------------
> >> >> >>> Creating lexical reordering...
> >> >> >>> weights: 0.300 0.300 0.300 0.300 0.300 0.300
> >> >> >>> Loading table into memory...done.
> >> >> >>> Created lexical orientation reordering
> >> >> >>> Start loading
> >> >> >>> LanguageModel
> >> >> >>> /home/manhhung/smt/confusion/data/lm/lm_news_jan.srilm :
> >> >> >>> [112.000] seconds
> >> >> >>> Finished loading LanguageModels : [114.000] seconds
> >> >> >>> ERROR:You specified 0 input weights (weight-i), but you specified 1
> >> >> >>> link
> >> >> >>> parameters (link-param-count)!
> >> >> >>> -------------------------
> >> >> >>>
> >> >> >>> Could you please explain these errors for me
> >> >> >>> Thanks,
> >> >> >>> Manh Hung
> >> >> >>>
> >> >> >>>
> >> >> >>> _______________________________________________
> >> >> >>> Moses-support mailing list
> >> >> >>> [email protected]
> >> >> >>> http://mailman.mit.edu/mailman/listinfo/moses-support
> >> >> >>>
> >> >> >>>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >
> >> >> > @Chris: Ohh, it's running OK now, thanks you very much,
> >> >> > But... has come another error message. Segementation fault.
> >> >> > I have got this error message when I made binary file type of
> >> >> > phrasetable.
> >> >> > Its seem that the size of /tmp is a small. So I added -T
> >> >> > options(--temporary-directory) to resolve them.
> >> >> > But in the options of moses command, I dont found any such option.
> >> >> > How do
> >> >> > you thinks about this error.
> >> >> > Thanks in advance,
> >> >> > Manh Hung
> >> >> >
> >> >>
> >> >
> >>
> >
> > _______________________________________________
> > 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