Closed GoogleCodeExporter closed 8 years ago
Sorry, I meant to give you the following OS info:
CentOS release 5.5 (Final)
(according to /etc/redhat-release)
Original comment by dexterou...@gmail.com
on 24 Aug 2010 at 3:43
Original comment by dexterou...@gmail.com
on 24 Aug 2010 at 3:50
Attachments:
Hi Dexter,
Thanks for the detailed description of the problem.
I tried to reproduce and eventually got the same, although I was not so "lucky"
and it crashed only after 20 or so attempts. Now looking at the source code of
the plugin and the backtraces you provided, it seems I know where the problem
is in.
As you properly noticed, apr_thread_exit() destroys memory pool of its thread.
And this pool is a child of the pool associated with the RTSP/MRCP session. So,
it causes a typical bug that a child memory pool (apr_thread_exit) is destroyed
after destruction of its parent memory pool (rtsp_server_session_destroy). I
don't know why it happens so frequently to you, but I admit the issue exists.
It's clear that mrcp_engine_channel_close_respond() MUST be called after
apr_thread_exit()...
Original comment by achalo...@gmail.com
on 25 Aug 2010 at 11:59
I've just fixed the issue in r1773.
Unfortunately, I don't have the time to test this fix enough, and honestly
speaking, I use PocketSphinx very rarely just for basic tests. So, give it a
try and come back with the results, please.
Original comment by achalo...@gmail.com
on 25 Aug 2010 at 12:26
Excellent! It definitely seems to have fixed the problem, so you are welcome
to close this issue.
(I had actually considered adding the thread join, but I think I unconsciously
put it low on my mental list of "things to try" because I was concerned that
the recognizer thread might take a while to terminate. But it turns out that
it's really quick, so I think we're going to go with this solution.)
Thanks so much for the quick turnaround, especially since it's in a plugin/demo
and not part of the actual mrcp-server.
Original comment by dexterou...@gmail.com
on 27 Aug 2010 at 8:38
You're welcome and thanks for the issue report!
Original comment by achalo...@gmail.com
on 1 Sep 2010 at 9:56
Original issue reported on code.google.com by
dexterou...@gmail.com
on 24 Aug 2010 at 3:39