[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: espeakup stops speaking bookworm arm64



On Thu, 21 Dec 2023, Samuel Thibault wrote:

thread apply all bt full

:)

OK, you got it.

This produced 20 kb of output, so I've attached it. Let me know if anyone wants it included in the message instead.

Because of the amount of output and the fact that I had to do it without speech, I set it up to run the command from the command line and to redirect the output. The command was:

$ gdb -ex 'thread apply all bt full' /usr/bin/espeakup <pid> ><filename.txt>

BTW: I just noticed the subject line. This is on amd64 (Debian running under VMWare Workstation Player on Windows 11 - yes I know...)

Cheers,
Geoff.
GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 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:
<https://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 /usr/bin/espeakup...
Reading symbols from /usr/lib/debug/.build-id/76/62ad26e5f970e59309a544f3864db114aa389e.debug...
Attaching to program: /usr/bin/espeakup, process 1474
[New LWP 1475]
[New LWP 1476]
[New LWP 1477]
[New LWP 1478]
[New LWP 1479]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=1475, 
    futex_word=0x7fbedaca3990) at ./nptl/futex-internal.c:57

Thread 6 (Thread 0x7fbecbfff6c0 (LWP 1479) "espeakup"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7fbedbc791cc <my_cond_start_is_required+44>) at ./nptl/futex-internal.c:57
        sc_cancel_oldtype = 0
        __arg6 = <optimized out>
        __arg3 = <optimized out>
        _a5 = <optimized out>
        _a2 = <optimized out>
        sc_ret = <optimized out>
        __arg4 = <optimized out>
        __arg1 = <optimized out>
        _a6 = <optimized out>
        _a3 = <optimized out>
        resultvar = <optimized out>
        __arg5 = <optimized out>
        __arg2 = <optimized out>
        _a4 = <optimized out>
        _a1 = <optimized out>
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x7fbedbc791cc <my_cond_start_is_required+44>, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
        err = <optimized out>
        clockbit = 256
        op = 393
#2  0x00007fbedb887e0b in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x7fbedbc791cc <my_cond_start_is_required+44>, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
No locals.
#3  0x00007fbedb88a468 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fbedbc791e0 <my_mutex>, cond=0x7fbedbc791a0 <my_cond_start_is_required>) at ./nptl/pthread_cond_wait.c:503
        spin = 0
        buffer = {__routine = 0x7fbedb88a1f0 <__condvar_cleanup_waiting>, __arg = 0x7fbecbffedc0, __canceltype = 0, __prev = 0x0}
        cbuffer = {wseq = 599, cond = 0x7fbedbc791a0 <my_cond_start_is_required>, mutex = 0x7fbedbc791e0 <my_mutex>, private = 0}
        err = <optimized out>
        g = 1
        flags = <optimized out>
        g1_start = <optimized out>
        maxspin = 0
        signals = <optimized out>
        result = 0
        wseq = 599
        seq = 299
        private = 0
        maxspin = <optimized out>
        err = <optimized out>
        result = <optimized out>
        wseq = <optimized out>
        g = <optimized out>
        seq = <optimized out>
        flags = <optimized out>
        private = <optimized out>
        signals = <optimized out>
        done = <optimized out>
        g1_start = <optimized out>
        spin = <optimized out>
        buffer = <optimized out>
        cbuffer = <optimized out>
        s = <optimized out>
#4  ___pthread_cond_wait (cond=cond@entry=0x7fbedbc791a0 <my_cond_start_is_required>, mutex=mutex@entry=0x7fbedbc791e0 <my_mutex>) at ./nptl/pthread_cond_wait.c:618
No locals.
#5  0x00007fbedbc1e4cc in polling_thread (p=<optimized out>) at src/libespeak-ng/event.c:263
        a_stop_is_required = false
        __PRETTY_FUNCTION__ = "polling_thread"
#6  0x00007fbedb88b044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
        ret = <optimized out>
        pd = <optimized out>
        out = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140457443063488, -3844386314597928019, -136, 2, 140457677941472, 140457434673152, 3879966511456351149, 3879930324205335469}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#7  0x00007fbedb90b61c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
No locals.

Thread 5 (Thread 0x7fbed8ffd6c0 (LWP 1478) "espeakup"):
#0  futex_wait (private=0, expected=2, futex_word=0x7fbed001ca00) at ../sysdeps/nptl/futex-internal.h:146
        __ret = -512
        err = <optimized out>
        err = <optimized out>
        __ret = <optimized out>
        resultvar = <optimized out>
        __arg4 = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a4 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
#1  __GI___lll_lock_wait (futex=futex@entry=0x7fbed001ca00, private=0) at ./nptl/lowlevellock.c:49
No locals.
#2  0x00007fbedb88e32a in lll_mutex_lock_optimized (mutex=0x7fbed001ca00) at ./nptl/pthread_mutex_lock.c:48
        __futex = 0x7fbed001ca00
        private = <optimized out>
        private = <optimized out>
        __futex = <optimized out>
#3  ___pthread_mutex_lock (mutex=0x7fbed001ca00) at ./nptl/pthread_mutex_lock.c:128
        id = <optimized out>
        type = <optimized out>
        __PRETTY_FUNCTION__ = "___pthread_mutex_lock"
        id = <optimized out>
#4  0x00007fbedbb1a006 in snd_pcm_state () from /lib/x86_64-linux-gnu/libasound.so.2
No symbol table info available.
#5  0x00007fbedbb19fc5 in snd_pcm_state () from /lib/x86_64-linux-gnu/libasound.so.2
No symbol table info available.
#6  0x00007fbedbb1a08f in ?? () from /lib/x86_64-linux-gnu/libasound.so.2
No symbol table info available.
#7  0x00007fbedbb1a908 in snd_pcm_drop () from /lib/x86_64-linux-gnu/libasound.so.2
No symbol table info available.
#8  0x00007fbedbb1c7b2 in snd_pcm_close () from /lib/x86_64-linux-gnu/libasound.so.2
No symbol table info available.
#9  0x00007fbedb7fd872 in alsa_object_close () from /lib/x86_64-linux-gnu/libpcaudio.so.0
No symbol table info available.
#10 0x00007fbedb7fd9ee in alsa_object_flush () from /lib/x86_64-linux-gnu/libpcaudio.so.0
No symbol table info available.
#11 0x00007fbedbc0371c in espeak_ng_Cancel () at src/libespeak-ng/speech.c:914
No locals.
#12 0x00007fbedbbf4ec9 in espeak_Cancel () at src/libespeak-ng/espeak_api.c:140
No locals.
#13 0x00005601537d5750 in stop_speech () at ../src/espeak.c:267
        rc = <optimized out>
#14 espeak_thread (arg=0x7ffd7e8dbde0) at ../src/espeak.c:495
        s = 0x7ffd7e8dbde0
#15 0x00007fbedb88b044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
        ret = <optimized out>
        pd = <optimized out>
        out = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140457661159104, -3844386314597928019, -136, 2, 140726726671328, 140457652768768, 3879937925227770797, 3879930324205335469}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#16 0x00007fbedb90b61c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
No locals.

Thread 4 (Thread 0x7fbed97fe6c0 (LWP 1477) "espeakup"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x5601537d93c8 <stop_acknowledged+40>) at ./nptl/futex-internal.c:57
        sc_cancel_oldtype = 0
        __arg6 = <optimized out>
        __arg3 = <optimized out>
        _a5 = <optimized out>
        _a2 = <optimized out>
        sc_ret = <optimized out>
        __arg4 = <optimized out>
        __arg1 = <optimized out>
        _a6 = <optimized out>
        _a3 = <optimized out>
        resultvar = <optimized out>
        __arg5 = <optimized out>
        __arg2 = <optimized out>
        _a4 = <optimized out>
        _a1 = <optimized out>
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x5601537d93c8 <stop_acknowledged+40>, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
        err = <optimized out>
        clockbit = 256
        op = 393
#2  0x00007fbedb887e0b in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x5601537d93c8 <stop_acknowledged+40>, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
No locals.
#3  0x00007fbedb88a468 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5601537d9360 <queue_guard>, cond=0x5601537d93a0 <stop_acknowledged>) at ./nptl/pthread_cond_wait.c:503
        spin = 0
        buffer = {__routine = 0x7fbedb88a1f0 <__condvar_cleanup_waiting>, __arg = 0x7fbed97f9cd0, __canceltype = 538976288, __prev = 0x0}
        cbuffer = {wseq = 212, cond = 0x5601537d93a0 <stop_acknowledged>, mutex = 0x5601537d9360 <queue_guard>, private = 0}
        err = <optimized out>
        g = 0
        flags = <optimized out>
        g1_start = <optimized out>
        maxspin = 0
        signals = <optimized out>
        result = 0
        wseq = 212
        seq = 106
        private = 0
        maxspin = <optimized out>
        err = <optimized out>
        result = <optimized out>
        wseq = <optimized out>
        g = <optimized out>
        seq = <optimized out>
        flags = <optimized out>
        private = <optimized out>
        signals = <optimized out>
        done = <optimized out>
        g1_start = <optimized out>
        spin = <optimized out>
        buffer = <optimized out>
        cbuffer = <optimized out>
        s = <optimized out>
#4  ___pthread_cond_wait (cond=cond@entry=0x5601537d93a0 <stop_acknowledged>, mutex=mutex@entry=0x5601537d9360 <queue_guard>) at ./nptl/pthread_cond_wait.c:618
No locals.
#5  0x00005601537d63b3 in request_espeak_stop () at ../src/softsynth.c:234
No locals.
#6  softsynth_thread (arg=<optimized out>) at ../src/softsynth.c:321
        s = <optimized out>
        set = {__fds_bits = {128, 0 <repeats 15 times>}}
        length = <optimized out>
        buf = "\030\000 \000ce \000 \000 \000\000ash bin slash espeakup \000\000h paste4 ", '\000' <repeats 16337 times>
        cp = 0x7fbed97f9d40 "\030"
        terminalFD = 3
        greatestFD = 7
#7  0x00007fbedb88b044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
        ret = <optimized out>
        pd = <optimized out>
        out = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140457669551808, -3844386314597928019, -136, 2, 140726726671328, 140457661161472, 3879936825179272109, 3879930324205335469}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#8  0x00007fbedb90b61c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
No locals.

Thread 3 (Thread 0x7fbed9fff6c0 (LWP 1476) "espeakup"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7fbedbc792ac <my_cond_start_is_required+44>) at ./nptl/futex-internal.c:57
        sc_cancel_oldtype = 0
        __arg6 = <optimized out>
        __arg3 = <optimized out>
        _a5 = <optimized out>
        _a2 = <optimized out>
        sc_ret = <optimized out>
        __arg4 = <optimized out>
        __arg1 = <optimized out>
        _a6 = <optimized out>
        _a3 = <optimized out>
        resultvar = <optimized out>
        __arg5 = <optimized out>
        __arg2 = <optimized out>
        _a4 = <optimized out>
        _a1 = <optimized out>
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x7fbedbc792ac <my_cond_start_is_required+44>, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
        err = <optimized out>
        clockbit = 256
        op = 393
#2  0x00007fbedb887e0b in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x7fbedbc792ac <my_cond_start_is_required+44>, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
No locals.
#3  0x00007fbedb88a468 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fbedbc79300 <my_mutex>, cond=0x7fbedbc79280 <my_cond_start_is_required>) at ./nptl/pthread_cond_wait.c:503
        spin = 0
        buffer = {__routine = 0x7fbedb88a1f0 <__condvar_cleanup_waiting>, __arg = 0x7fbed9ffed80, __canceltype = 11, __prev = 0x0}
        cbuffer = {wseq = 643, cond = 0x7fbedbc79280 <my_cond_start_is_required>, mutex = 0x7fbedbc79300 <my_mutex>, private = 0}
        err = <optimized out>
        g = 1
        flags = <optimized out>
        g1_start = <optimized out>
        maxspin = 0
        signals = <optimized out>
        result = 0
        wseq = 643
        seq = 321
        private = 0
        maxspin = <optimized out>
        err = <optimized out>
        result = <optimized out>
        wseq = <optimized out>
        g = <optimized out>
        seq = <optimized out>
        flags = <optimized out>
        private = <optimized out>
        signals = <optimized out>
        done = <optimized out>
        g1_start = <optimized out>
        spin = <optimized out>
        buffer = <optimized out>
        cbuffer = <optimized out>
        s = <optimized out>
#4  ___pthread_cond_wait (cond=cond@entry=0x7fbedbc79280 <my_cond_start_is_required>, mutex=mutex@entry=0x7fbedbc79300 <my_mutex>) at ./nptl/pthread_cond_wait.c:618
No locals.
#5  0x00007fbedbc1ed91 in say_thread (p=<optimized out>) at src/libespeak-ng/fifo.c:308
        a_start_is_required = false
        a_status = <optimized out>
        __PRETTY_FUNCTION__ = "say_thread"
        look_for_inactivity = true
#6  0x00007fbedb88b044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
        ret = <optimized out>
        pd = <optimized out>
        out = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140457677944512, -3844386314597928019, -136, 2, 140726726671056, 140457669554176, 3879935725130773421, 3879930324205335469}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#7  0x00007fbedb90b61c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
No locals.

Thread 2 (Thread 0x7fbedaca36c0 (LWP 1475) "espeakup"):
#0  0x00007fbedb83ec02 in __GI___sigtimedwait (set=set@entry=0x7fbedaca2d10, info=info@entry=0x7fbedaca2c50, timeout=timeout@entry=0x0) at ../sysdeps/unix/sysv/linux/sigtimedwait.c:31
        __arg4 = 8
        __arg2 = 140457691196496
        _a3 = 0
        _a1 = 140457691196688
        resultvar = <optimized out>
        __arg3 = 0
        __arg1 = 140457691196688
        _a4 = 8
        _a2 = 140457691196496
        sc_ret = <optimized out>
        sc_cancel_oldtype = 0
        sc_ret = <optimized out>
        result = <optimized out>
#1  0x00007fbedb83e31c in __GI___sigwait (set=set@entry=0x7fbedaca2d10, sig=sig@entry=0x7fbedaca2d0c) at ../sysdeps/unix/sysv/linux/sigwait.c:28
        si = {si_signo = 0, si_errno = 0, si_code = 0, __pad0 = 0, _sifields = {_pad = {0 <repeats 28 times>}, _kill = {si_pid = 0, si_uid = 0}, _timer = {si_tid = 0, si_overrun = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _rt = {si_pid = 0, si_uid = 0, si_sigval = {sival_int = 0, sival_ptr = 0x0}}, _sigchld = {si_pid = 0, si_uid = 0, si_status = 0, si_utime = 0, si_stime = 0}, _sigfault = {si_addr = 0x0, si_addr_lsb = 0, _bounds = {_addr_bnd = {_lower = 0x0, _upper = 0x0}, _pkey = 0}}, _sigpoll = {si_band = 0, si_fd = 0}, _sigsys = {_call_addr = 0x0, _syscall = 0, _arch = 0}}}
        ret = <optimized out>
#2  0x00005601537d5e4c in signal_thread (arg=<optimized out>) at ../src/signal.c:55
        temp = {__sigaction_handler = {sa_handler = 0x5601537d5d60 <dummy_handler>, sa_sigaction = 0x5601537d5d60 <dummy_handler>}, sa_mask = {__val = {0 <repeats 16 times>}}, sa_flags = 0, sa_restorer = 0x0}
        sigset = {__val = {18446744067267100671, 0 <repeats 15 times>}}
        sig = 0
#3  0x00007fbedb88b044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
        ret = <optimized out>
        pd = <optimized out>
        out = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140457691199168, -3844386314597928019, -136, 0, 140726726671328, 140457682808832, 3879933094463304621, 3879930324205335469}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#4  0x00007fbedb90b61c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
No locals.

Thread 1 (Thread 0x7fbedb00a7c0 (LWP 1474) "espeakup"):
#0  __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=1475, futex_word=0x7fbedaca3990) at ./nptl/futex-internal.c:57
        sc_cancel_oldtype = 0
        __arg6 = <optimized out>
        __arg3 = <optimized out>
        _a5 = <optimized out>
        _a2 = <optimized out>
        sc_ret = <optimized out>
        __arg4 = <optimized out>
        __arg1 = <optimized out>
        _a6 = <optimized out>
        _a3 = <optimized out>
        resultvar = <optimized out>
        __arg5 = <optimized out>
        __arg2 = <optimized out>
        _a4 = <optimized out>
        _a1 = <optimized out>
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x7fbedaca3990, expected=1475, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=128, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
        err = <optimized out>
        clockbit = 256
        op = 265
#2  0x00007fbedb887e0b in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x7fbedaca3990, expected=<optimized out>, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=128) at ./nptl/futex-internal.c:139
No locals.
#3  0x00007fbedb88cb33 in __pthread_clockjoin_ex (threadid=140457691199168, thread_return=thread_return@entry=0x0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, block=block@entry=true) at ./nptl/pthread_join_common.c:102
        ret = <optimized out>
        _buffer = {__routine = 0x7fbedb88c9e0 <cleanup>, __arg = 0x7fbedaca3ce0, __canceltype = 0, __prev = 0x0}
        tid = <optimized out>
        pd = 0x7fbedaca36c0
        self = <optimized out>
        result = 0
        pd_result = <optimized out>
#4  0x00007fbedb88c9df in ___pthread_join (threadid=<optimized out>, thread_return=thread_return@entry=0x0) at ./nptl/pthread_join.c:24
No locals.
#5  0x00005601537d4734 in main (argc=<optimized out>, argv=<optimized out>) at ../src/espeakup.c:229
        fd = 6
        devnull = <optimized out>
        ret = 0 '\000'
        sigset = {__val = {16386, 0 <repeats 15 times>}}
        err = <optimized out>
        signal_thread_id = 140457691199168
        espeak_thread_id = 140457661159104
        softsynth_thread_id = 140457669551808
        s = {frequency = 5, pitch = 5, range = 5, punct = 0, rate = 9, voice = "en", '\000' <repeats 17 times>, volume = 6, buf = 0x7fbecc000c40 "0\315\3547\271\177", len = 3}
[?2004h(gdb) [?2004lA debugging session is active.

	Inferior 1 [process 1474] will be detached.

Quit anyway? (y or n) [?2004l[Inferior 1 (process 1474) detached]

Reply to: