Comments (11)
The problem is that pthread_create(...) on error returns not a negative value. It returns an error number that is positive. So, if the thread creation failed, then we treat it as success, but the content of the thread id is undefined. This is why the detach function is crashing. I can fix it in the next build. But why the thread creation is failing is unclear, probably your debugger is doing something wrong.
from coturn.
I pushed the fix to the master branch. You can try that and let me know please.
from coturn.
I've confirmed that git master doesn't crash as soon as I start it in the debugger. (Didn't bother checking to confirm everything else is working in the debugger, only that it doesn't crash right away).
Much appreciated!
from coturn.
This problem is back in 4.5.0.3
from coturn.
from coturn.
I'm very sorry, I wrote the wrong version number.
The version that I'm running is 4.5.0.4, the latest release.
I'll try testing the latest git master branch.
from coturn.
Latest git master branch has the same problem:
static void setup_auth_server(struct auth_server *as)
{
if(pthread_create(&(as->thr), NULL, run_auth_server_thread, as)) {
perror("Cannot create auth thread\n");
exit(-1);
}
pthread_detach(as->thr);
}
the call to pthread_detach triggers segmentation fault.
I'm running with qtcreator 4.0.3
gdb 7.12
coturn was compiled with gcc 4.9.3
from coturn.
from coturn.
What version of gdb do you use? I can install and try that version.
from coturn.
from coturn.
So you can't reproduce the issue?
from coturn.
Related Issues (20)
- Intermittent Connectivity Issues and Delayed Audio with COTURN Server in Android App HOT 1
- ERROR: Cannot open log file for writing: HOT 2
- How to reload coturn when ssl certificates are renewed? HOT 1
- Link Error : netengine.c:(.text+0x5f9b): undefined reference to `evthread_use_pthreads' HOT 8
- Support UDP proxy protocol HOT 1
- Empty else branch in ns_turn_server.c HOT 1
- remove "realm" from hmackey for Long Term credentials
- error 401: Unauthorized help~ HOT 2
- stun can't get the public ip HOT 2
- Segmentation fault due to stack overflow on log rotation HOT 3
- [RFC7250] Raw public keys openssl functionality HOT 2
- REST API problem... HOT 2
- coturn filter for fail2ban HOT 9
- Thread count should default to *ONLINE* CPU count HOT 1
- Coturn under attack? HOT 2
- Coturn behind NAT, correct firewall setting for a range of ports
- Docker min and max port not being used HOT 7
- Running coturn via Docker in AWS results in only private IP for relay HOT 1
- Serve prometheus on localhost
- Specifying a prometheus port results in segfault HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coturn.