[Top][All Lists]

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

Re: [Linphone-developers] Runtime Errors

From: Greg Troxel
Subject: Re: [Linphone-developers] Runtime Errors
Date: Fri, 03 Apr 2020 10:59:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)

"Raghav Gururajan" <address@hidden> writes:

> I am in the middle of packaging LinphoneQt (4.1.1) into Guix System 
> (
> While running the application, I get the following errors and application 
> quits itself:
> QMutex: destroying locked mutex
> Core:belle-sip: There were still [1] object pools for thread 
> [140700444260096] while the thread exited.

Probably you know this, but the pthreads/mutex specs are pretty
unforgiving.  Many things, including destroying a locked mutex, are
undefined behavior.  Some systems seem to be set up to basically ignore
those things, and somesystems seem to be set up to basically assert on
undefined behavior.  NetBSD used to assert, and then ran into too many
problems with incorrect code that worked on Linux (and therefore did not
get fixed), and I think we changed those to ignore.

1) you may have a runtime switch (env var) to control asserting vs
reporting vs ignoring on undefined behavior.  An example, perhaps useful
only as a hint of what to look for:

2) it may be possible to add a breakpoint for that error case and figure
out why the mutex wasn't unlocked before being destroyed.

(I don't know if this is fixed post 4.1.1.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]