Menu

Using Pocketsphinx With JSGF/FSG Causes Segfault in fsg_lextree_init

Help
Cubeler
2014-08-17
2014-08-19
  • Cubeler

    Cubeler - 2014-08-17

    Hello,

    Im switching from Sphinx4 to Pocketsphinx since MLLR is not possible in Sphinx4.
    When changing my language model to jsgf or fsg:

        ps_decoder_t *ps;
        cmd_ln_t *config;
    
        config = cmd_ln_init(NULL, ps_args(), TRUE,
                             "-hmm", MODELDIR "/hmm/en_US/hub4wsj_sc_8k",
                             //"-jsgf", "/path/to/lm/first.gram",
                             "-fsg", "/path/to/lm/first.fsg",
                             "-dict", "/path/todict/cmudict.0.7a",
                             "-logfn", "somewhere.log",
                             NULL);
        if (config == NULL)
        {
                printf("Config Null\n");
                return 1;
        }
    //the next line the segfault occurs
        ps = ps_init(config);
    

    a segfault with the following stacktrace occurs:
    Error: signal 11:
    ./hello_ps(handler+0x19)[0x804889d]
    [0xb77d2400]
    /usr/lib/libpocketsphinx.so.1(fsg_lextree_init+0x1f1)[0xb7782a81]
    /usr/lib/libpocketsphinx.so.1(fsg_search_reinit+0x54)[0xb7784904]
    /usr/lib/libpocketsphinx.so.1(fsg_search_init+0x2f4)[0xb77861b4]
    /usr/lib/libpocketsphinx.so.1(ps_reinit+0x342)[0xb779cb52]
    /usr/lib/libpocketsphinx.so.1(ps_init+0x55)[0xb779cd95]
    ./hello_ps(main+0xc7)[0x80489aa]
    /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb75a14d3]
    ./hello_ps[0x80487f1]

    And here is the log file:
    http://pastebin.com/raw.php?i=REMWYvxe

    Ps:
    Sorry for posting into the wrong subforum...

     

    Last edit: Cubeler 2014-08-17
  • Alexander Solovets

    Please, provide the full source code.

     
  • Cubeler

    Cubeler - 2014-08-17

    Somehow there was another pocketsphinx version installed on the system.
    After reinstall it works.

     

Log in to post a comment.

MongoDB Logo MongoDB