Attempting to run lievdemo for pocketsphinx. Segmentation fault. Running in gdb here is the output and backtrace:
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 74
Mono: Playback 23 [31%][-51.00dB][on]
mel@mel-HP-G60-Notebook-PC:~$ Setting up watches.
Watches established.
mel@mel-HP-G60-Notebook-PC:~$ cd Documents/python/Raspberry\ Pi/Speech\ to\ Text/
mel@mel-HP-G60-Notebook-PC:~/Documents/python/Raspberry Pi/Speech to Text$ gdb python3
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...(no debugging symbols found)...done.
(gdb) run livedemo.py
Starting program: /usr/bin/python3 livedemo.py [Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Using pygtkcompat and Gst from gi [New Thread 0x7fffeb663700 (LWP 4256)] [New Thread 0x7fffeae62700 (LWP 4257)] [New Thread 0x7fffe1a01700 (LWP 4258)]
Current configuration: [NAME][DEFLT][VALUE]
-agc none none
-agcthresh 2.0 2.000000e+00
-allphone
-allphone_ci no no
-alpha 0.97 9.700000e-01
-ascale 20.0 2.000000e+01
-aw 1 1
-backtrace no no
-beam 1e-48 1.000000e-48
-bestpath yes yes
-bestpathlw 9.5 9.500000e+00
-ceplen 13 13
-cmn current current
-cmninit 8.0 8.0
-compallsen no no
-debug 0
-dict
-dictcase no no
-dither no no
-doublebw no no
-ds 1 1
-fdict
-feat 1s_c_d_dd 1s_c_d_dd
-featparams
-fillprob 1e-8 1.000000e-08
-frate 100 100
-fsg
-fsgusealtpron yes yes
-fsgusefiller yes yes
-fwdflat yes yes
-fwdflatbeam 1e-64 1.000000e-64
-fwdflatefwid 4 4
-fwdflatlw 8.5 8.500000e+00
-fwdflatsfwin 25 25
-fwdflatwbeam 7e-29 7.000000e-29
-fwdtree yes yes
-hmm
-input_endian little little
-jsgf
-keyphrase
-kws
-kws_delay 10 10
-kws_plp 1e-1 1.000000e-01
-kws_threshold 1 1.000000e+00
-latsize 5000 5000
-lda
-ldadim 0 0
-lifter 0 0
-lm
-lmctl
-lmname
-logbase 1.0001 1.000100e+00
-logfn
-logspec no no
-lowerf 133.33334 1.333333e+02
-lpbeam 1e-40 1.000000e-40
-lponlybeam 7e-29 7.000000e-29
-lw 6.5 6.500000e+00
-maxhmmpf 30000 30000
-maxwpf -1 -1
-mdef
-mean
-mfclogdir
-min_endfr 0 0
-mixw
-mixwfloor 0.0000001 1.000000e-07
-mllr
-mmap yes yes
-ncep 13 13
-nfft 512 512
-nfilt 40 40
-nwpen 1.0 1.000000e+00
-pbeam 1e-48 1.000000e-48
-pip 1.0 1.000000e+00
-pl_beam 1e-10 1.000000e-10
-pl_pbeam 1e-10 1.000000e-10
-pl_pip 1.0 1.000000e+00
-pl_weight 3.0 3.000000e+00
-pl_window 5 5
-rawlogdir
-remove_dc no no
-remove_noise yes yes
-remove_silence yes yes
-round_filters yes yes
-samprate 16000 1.600000e+04
-seed -1 -1
-sendump
-senlogdir
-senmgau
-silprob 0.005 5.000000e-03
-smoothspec no no
-svspec
-tmat
-tmatfloor 0.0001 1.000000e-04
-topn 4 4
-topn_beam 0 0
-toprule
-transform legacy legacy
-unit_area yes yes
-upperf 6855.4976 6.855498e+03
-uw 1.0 1.000000e+00
-vad_postspeech 50 50
-vad_prespeech 20 20
-vad_startspeech 10 10
-vad_threshold 2.0 2.000000e+00
-var
-varfloor 0.0001 1.000000e-04
-varnorm no no
-verbose no no
-warp_params
-warp_type inverse_linear inverse_linear
-wbeam 7e-29 7.000000e-29
-wip 0.65 6.500000e-01
-wlen 0.025625 2.562500e-02
Thread 6 "autoaudiosrc0-a" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffd8c93700 (LWP 4260)]
0x00007fffe8d893da in ps_start_utt () from /usr/lib/x86_64-linux-gnu/libpocketsphinx.so.3
(gdb) bt
0 0x00007fffe8d893da in ps_start_utt () at /usr/lib/x86_64-linux-gnu/libpocketsphinx.so.3
1 0x00007fffe8f9e280 in () at /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstpocketsphinx.so
2 0x00007ffff4c8359f in gst_pad_push_data (data=0xf67700, type=4112, pad=0x1504b90 [GstPad]) at gstpad.c:4188
3 0x00007ffff4c8359f in gst_pad_push_data (pad=pad@entry=0x1504950 [GstPad], type=type@entry=4112, data=data@entry=0xf67700) at gstpad.c:4440
4 0x00007ffff4c8b543 in gst_pad_push (pad=0x1504950 [GstPad], buffer=0xf67700) at gstpad.c:4559
5 0x00007fffe9cb252d in gst_base_transform_chain (pad=<optimized out="">, parent=0x1512290 [GstAudioResample], buffer=<optimized out="">) at gstbasetransform.c:2369</optimized></optimized>
6 0x00007ffff4c8359f in gst_pad_push_data (data=0xf67700, type=4112, pad=0x1504710 [GstPad]) at gstpad.c:4188
7 0x00007ffff4c8359f in gst_pad_push_data (pad=pad@entry=0x15044d0 [GstPad], type=type@entry=4112, data=data@entry=0xf67700) at gstpad.c:4440
8 0x00007ffff4c8b543 in gst_pad_push (pad=0x15044d0 [GstPad], buffer=0xf67700) at gstpad.c:4559
9 0x00007fffe9cb252d in gst_base_transform_chain (pad=<optimized out="">, parent=0x1502d50 [GstAudioConvert], buffer=<optimized out="">) at gstbasetransform.c:2369</optimized></optimized>
10 0x00007ffff4c8359f in gst_pad_push_data (data=0xf67700, type=4112, pad=0x1504290 [GstPad]) at gstpad.c:4188
11 0x00007ffff4c8359f in gst_pad_push_data (pad=pad@entry=0x133e2d0 [GstGhostPad], type=type@entry=4112, data=data@entry=0xf67700) at gstpad.c:4440
12 0x00007ffff4c8b543 in gst_pad_push (pad=pad@entry=0x133e2d0 [GstGhostPad], buffer=buffer@entry=0xf67700) at gstpad.c:4559
13 0x00007ffff4c74563 in gst_proxy_pad_chain_default (pad=0x14ea1b0 [GstProxyPad], parent=<optimized out="">, buffer=0xf67700) at gstghostpad.c:126</optimized>
14 0x00007ffff4c8359f in gst_pad_push_data (data=0xf67700, type=4112, pad=0x14ea1b0 [GstProxyPad]) at gstpad.c:4188
15 0x00007ffff4c8359f in gst_pad_push_data (pad=pad@entry=0x1504050 [GstPad], type=type@entry=4112, data=data@entry=0xf67700) at gstpad.c:4440
16 0x00007ffff4c8b543 in gst_pad_push (pad=pad@entry=0x1504050 [GstPad], buffer=0xf67700) at gstpad.c:4559
17 0x00007fffe9cade55 in gst_base_src_loop (pad=0x1504050 [GstPad]) at gstbasesrc.c:2850
18 0x00007ffff4cb5f31 in gst_task_func (task=0xe4d170 [GstTask]) at gsttask.c:332
19 0x00007ffff5fcf54e in g_thread_pool_thread_proxy (data=<optimized out="">) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gthreadpool.c:307</optimized>
20 0x00007ffff5fcebb5 in g_thread_proxy (data=0x12e5a30) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gthread.c:780
21 0x00007ffff7bc16ba in start_thread (arg=0x7fffd8c93700) at pthread_create.c:333
22 0x00007ffff78f741d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb)
System Linux mel-HP-G60-Notebook-PC 4.15.0-33-generic #36~16.04.1-Ubuntu SMP Wed Aug 15 17:21:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Python3: Python 3.5.2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Attempting to run lievdemo for pocketsphinx. Segmentation fault. Running in gdb here is the output and backtrace:
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 74
Mono: Playback 23 [31%] [-51.00dB] [on]
mel@mel-HP-G60-Notebook-PC:~$ Setting up watches.
Watches established.
mel@mel-HP-G60-Notebook-PC:~$ cd Documents/python/Raspberry\ Pi/Speech\ to\ Text/
mel@mel-HP-G60-Notebook-PC:~/Documents/python/Raspberry Pi/Speech to Text$ gdb python3
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...(no debugging symbols found)...done.
(gdb) run livedemo.py
Starting program: /usr/bin/python3 livedemo.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Using pygtkcompat and Gst from gi
[New Thread 0x7fffeb663700 (LWP 4256)]
[New Thread 0x7fffeae62700 (LWP 4257)]
[New Thread 0x7fffe1a01700 (LWP 4258)]
Current configuration:
[NAME] [DEFLT] [VALUE]
-agc none none
-agcthresh 2.0 2.000000e+00
-allphone
-allphone_ci no no
-alpha 0.97 9.700000e-01
-ascale 20.0 2.000000e+01
-aw 1 1
-backtrace no no
-beam 1e-48 1.000000e-48
-bestpath yes yes
-bestpathlw 9.5 9.500000e+00
-ceplen 13 13
-cmn current current
-cmninit 8.0 8.0
-compallsen no no
-debug 0
-dict
-dictcase no no
-dither no no
-doublebw no no
-ds 1 1
-fdict
-feat 1s_c_d_dd 1s_c_d_dd
-featparams
-fillprob 1e-8 1.000000e-08
-frate 100 100
-fsg
-fsgusealtpron yes yes
-fsgusefiller yes yes
-fwdflat yes yes
-fwdflatbeam 1e-64 1.000000e-64
-fwdflatefwid 4 4
-fwdflatlw 8.5 8.500000e+00
-fwdflatsfwin 25 25
-fwdflatwbeam 7e-29 7.000000e-29
-fwdtree yes yes
-hmm
-input_endian little little
-jsgf
-keyphrase
-kws
-kws_delay 10 10
-kws_plp 1e-1 1.000000e-01
-kws_threshold 1 1.000000e+00
-latsize 5000 5000
-lda
-ldadim 0 0
-lifter 0 0
-lm
-lmctl
-lmname
-logbase 1.0001 1.000100e+00
-logfn
-logspec no no
-lowerf 133.33334 1.333333e+02
-lpbeam 1e-40 1.000000e-40
-lponlybeam 7e-29 7.000000e-29
-lw 6.5 6.500000e+00
-maxhmmpf 30000 30000
-maxwpf -1 -1
-mdef
-mean
-mfclogdir
-min_endfr 0 0
-mixw
-mixwfloor 0.0000001 1.000000e-07
-mllr
-mmap yes yes
-ncep 13 13
-nfft 512 512
-nfilt 40 40
-nwpen 1.0 1.000000e+00
-pbeam 1e-48 1.000000e-48
-pip 1.0 1.000000e+00
-pl_beam 1e-10 1.000000e-10
-pl_pbeam 1e-10 1.000000e-10
-pl_pip 1.0 1.000000e+00
-pl_weight 3.0 3.000000e+00
-pl_window 5 5
-rawlogdir
-remove_dc no no
-remove_noise yes yes
-remove_silence yes yes
-round_filters yes yes
-samprate 16000 1.600000e+04
-seed -1 -1
-sendump
-senlogdir
-senmgau
-silprob 0.005 5.000000e-03
-smoothspec no no
-svspec
-tmat
-tmatfloor 0.0001 1.000000e-04
-topn 4 4
-topn_beam 0 0
-toprule
-transform legacy legacy
-unit_area yes yes
-upperf 6855.4976 6.855498e+03
-uw 1.0 1.000000e+00
-vad_postspeech 50 50
-vad_prespeech 20 20
-vad_startspeech 10 10
-vad_threshold 2.0 2.000000e+00
-var
-varfloor 0.0001 1.000000e-04
-varnorm no no
-verbose no no
-warp_params
-warp_type inverse_linear inverse_linear
-wbeam 7e-29 7.000000e-29
-wip 0.65 6.500000e-01
-wlen 0.025625 2.562500e-02
[New Thread 0x7fffd9494700 (LWP 4259)]
[New Thread 0x7fffd8c93700 (LWP 4260)]
[New Thread 0x7fffcbffd700 (LWP 4261)]
Thread 6 "autoaudiosrc0-a" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd8c93700 (LWP 4260)]
0x00007fffe8d893da in ps_start_utt () from /usr/lib/x86_64-linux-gnu/libpocketsphinx.so.3
(gdb) bt
0 0x00007fffe8d893da in ps_start_utt () at /usr/lib/x86_64-linux-gnu/libpocketsphinx.so.3
1 0x00007fffe8f9e280 in () at /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstpocketsphinx.so
2 0x00007ffff4c8359f in gst_pad_push_data (data=0xf67700, type=4112, pad=0x1504b90 [GstPad]) at gstpad.c:4188
3 0x00007ffff4c8359f in gst_pad_push_data (pad=pad@entry=0x1504950 [GstPad], type=type@entry=4112, data=data@entry=0xf67700) at gstpad.c:4440
4 0x00007ffff4c8b543 in gst_pad_push (pad=0x1504950 [GstPad], buffer=0xf67700) at gstpad.c:4559
5 0x00007fffe9cb252d in gst_base_transform_chain (pad=<optimized out="">, parent=0x1512290 [GstAudioResample], buffer=<optimized out="">) at gstbasetransform.c:2369</optimized></optimized>
6 0x00007ffff4c8359f in gst_pad_push_data (data=0xf67700, type=4112, pad=0x1504710 [GstPad]) at gstpad.c:4188
7 0x00007ffff4c8359f in gst_pad_push_data (pad=pad@entry=0x15044d0 [GstPad], type=type@entry=4112, data=data@entry=0xf67700) at gstpad.c:4440
8 0x00007ffff4c8b543 in gst_pad_push (pad=0x15044d0 [GstPad], buffer=0xf67700) at gstpad.c:4559
9 0x00007fffe9cb252d in gst_base_transform_chain (pad=<optimized out="">, parent=0x1502d50 [GstAudioConvert], buffer=<optimized out="">) at gstbasetransform.c:2369</optimized></optimized>
10 0x00007ffff4c8359f in gst_pad_push_data (data=0xf67700, type=4112, pad=0x1504290 [GstPad]) at gstpad.c:4188
11 0x00007ffff4c8359f in gst_pad_push_data (pad=pad@entry=0x133e2d0 [GstGhostPad], type=type@entry=4112, data=data@entry=0xf67700) at gstpad.c:4440
12 0x00007ffff4c8b543 in gst_pad_push (pad=pad@entry=0x133e2d0 [GstGhostPad], buffer=buffer@entry=0xf67700) at gstpad.c:4559
13 0x00007ffff4c74563 in gst_proxy_pad_chain_default (pad=0x14ea1b0 [GstProxyPad], parent=<optimized out="">, buffer=0xf67700) at gstghostpad.c:126</optimized>
14 0x00007ffff4c8359f in gst_pad_push_data (data=0xf67700, type=4112, pad=0x14ea1b0 [GstProxyPad]) at gstpad.c:4188
15 0x00007ffff4c8359f in gst_pad_push_data (pad=pad@entry=0x1504050 [GstPad], type=type@entry=4112, data=data@entry=0xf67700) at gstpad.c:4440
16 0x00007ffff4c8b543 in gst_pad_push (pad=pad@entry=0x1504050 [GstPad], buffer=0xf67700) at gstpad.c:4559
17 0x00007fffe9cade55 in gst_base_src_loop (pad=0x1504050 [GstPad]) at gstbasesrc.c:2850
18 0x00007ffff4cb5f31 in gst_task_func (task=0xe4d170 [GstTask]) at gsttask.c:332
19 0x00007ffff5fcf54e in g_thread_pool_thread_proxy (data=<optimized out="">) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gthreadpool.c:307</optimized>
20 0x00007ffff5fcebb5 in g_thread_proxy (data=0x12e5a30) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gthread.c:780
21 0x00007ffff7bc16ba in start_thread (arg=0x7fffd8c93700) at pthread_create.c:333
22 0x00007ffff78f741d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb)
System Linux mel-HP-G60-Notebook-PC 4.15.0-33-generic #36~16.04.1-Ubuntu SMP Wed Aug 15 17:21:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Python3: Python 3.5.2