Comments (11)
Did rtpengine cycle through one certificate lifetime by any chance? Look for "Generating new DTLS certificate" in the logs, but keep in mind that it also does this when (re)starting the daemon.
from rtpengine.
I had a look into the logs, but i could not find any occurence of at least the string "DTLS". Not even for restart. What log level in needed in order to get this message?
from rtpengine.
That one is logged as INFO, which is 6.
from rtpengine.
it crashed again on a system with enabled log level 7, but there was no message like dtls in the logs. Shall i provide you with log files from the rtpengine?
Failure message in gdb looks exactly the same than the obove one, again with libcrypto failure
from rtpengine.
In gdb, can you check please:
frame 2
p d->ssl_ctx
p cert->x509
from rtpengine.
Hi, it seems there is something wrong
(gdb) frame 2
#2 0x00007f517a04d25b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) p d->ssl_ctx
No symbol "d" in current context.
(gdb) p cert->x509
No symbol "cert" in current context.
Here the actual gdb thread apply all bt
(gdb) thread apply all bt
Thread 7 (Thread 0x7f517ca74720 (LWP 14177)):
#0 0x00007f517a08c33d in nanosleep () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f517a0b6084 in usleep () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x0000000000408002 in main (argc=1, argv=0x7fffa43d9218) at main.c:573
Thread 6 (Thread 0x7f5176824700 (LWP 14181)):
#0 0x00007f517a0bc4c3 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x000000000040bacb in poller_poll (p=0x1e37c50, timeout=100) at poller.c:308
#2 0x0000000000000000 in ?? ()
Thread 5 (Thread 0x7f5177826700 (LWP 14178)):
#0 0x00007f517a012ecb in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f517a012f73 in sigtimedwait () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00000000004082db in sighandler (x=<optimized out>) at main.c:119
#3 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7f5177025700 (LWP 14179)):
#0 0x00007f517a08c33d in nanosleep () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f517a0b6084 in usleep () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x000000000040c434 in poller_timers_wait_run (p=0x1e37c50, max=100000) at poller.c:500
#3 0x000000005458ab01 in ?? ()
#4 0x00000000000621d2 in ?? ()
#5 0x0000000001e37c50 in ?? ()
#6 0x0000000001e406b0 in ?? ()
#7 0x00007f5177025700 in ?? ()
#8 0x00007f51770259c0 in ?? ()
#9 0x00007f517ca8e040 in ?? () from /lib64/ld-linux-x86-64.so.2
#10 0x000000000040824d in timer_loop (d=0x186a0) at main.c:546
#11 0x0000000001e3c230 in ?? ()
#12 0x000000000040c53f in thread_detach_func (d=0x186a0) at aux.c:160
#13 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7f5175822700 (LWP 14184)):
#0 0x00007f517a0c88bb in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f517a05d4e8 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007f517a05b841 in free () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007f517b4f0a4d in CRYPTO_free () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#4 0x00007f517b529e20 in BN_clear_free () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#5 0x00007f517b55b93d in RSA_free () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#6 0x00007f517b585a3b in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#7 0x00007f517b5861c8 in EVP_PKEY_free () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#8 0x00007f517b8b1bc9 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
#9 0x000000000042178b in dtls_connection_init (ps=0x7f51680228c0, active=0, cert=0x1e39000) at dtls.c:443
#10 0x00007f51680228c0 in ?? ()
#11 0x00007f5168027d20 in ?? ()
#12 0x0000000001f19010 in ?? ()
#13 0x00007f516801f1c0 in ?? ()
#14 0x00007f51680228c0 in ?? ()
#15 0x000000000040e33a in __init_stream (ps=0x1f19010) at call.c:1700
#16 0x00007f516800d000 in ?? ()
#17 0x00007f5168039f80 in ?? ()
#18 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7f5176023700 (LWP 14182)):
#0 0x00007f517a0bc4c3 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x000000000040bacb in poller_poll (p=0x1e37c50, timeout=100) at poller.c:308
#2 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7f516d822700 (LWP 14183)):
#0 0x00007f517a0121a5 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f517a015420 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007f517a04d25b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007f517a056aa6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00007f517a05b84c in free () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x00007f517b4f0a4d in CRYPTO_free () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#6 0x00007f517b529e20 in BN_clear_free () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#7 0x00007f517b55b92f in RSA_free () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#8 0x00007f517b585a3b in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#9 0x00007f517b5861c8 in EVP_PKEY_free () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#10 0x00007f517b8b1d51 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
#11 0x0000000000421772 in dtls_connection_init (ps=0x7f517007a1c0, active=0, cert=0x1e39000) at dtls.c:441
#12 0x00007f517007a1c0 in ?? ()
#13 0x00007f516803f150 in ?? ()
#14 0x0000000001fc7a10 in ?? ()
#15 0x00007f516810d810 in ?? ()
#16 0x00007f517007a1c0 in ?? ()
---Type <return> to continue, or q <return> to quit---
#17 0x000000000040e33a in __init_stream (ps=0x1fc7a10) at call.c:1700
#18 0x0000000002051e00 in ?? ()
#19 0x0000000001f01b60 in ?? ()
#20 0x0000000000000000 in ?? ()
from rtpengine.
Oh yeah, this is different now. Can you post or upload the log leading up to this?
Which version of OpenSSL is being used here?
from rtpengine.
We are using:
openssl:
Installed: 1.0.1e-2+deb7u13
i send you the logs via E-Mail. github is not able to attach log files to issues.
from rtpengine.
Nothing out of the ordinary in the logs. In order to eliminate one possible source of problems, I would recommend upgrading OpenSSL to at least 1.0.1j as a lot of bugs relating to SRTP/DTLS were fixed, including memory leaks and security vulnerabilities.
from rtpengine.
we are also getting the same error on ubuntu, we had compiled all libraries manually even using openssl1.0.1.j we get this :
Nov 24 15:54:10 localhost /usr/local/sbin/kamailio[2127]: INFO: <script>: Reply from webrtc client: 100
Nov 24 15:54:10 localhost /usr/local/sbin/kamailio[2127]: INFO: <script>: Reply from webrtc client: 180
Nov 24 15:54:14 localhost rtpengine[2032]: [2faa647a-2ac5-724d-4c4e-8ffba3e918c6 port 10000] Successful STUN binding request from x.x.x.x:41537
Nov 24 15:54:14 localhost kernel: [11788.609364] rtpengine[2035]: segfault at 7f089803d000 ip 00007f08a481d6d8 sp 00007f089ef51990 error 4 in libcrypto.so.1.0.0[7f08a47b2000+1b1000]
we are using Linux ip-10-0-0-254 3.8.0-35-generic #52~precise1-Ubuntu SMP Thu Jan 30 17:24:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
it looks like on redhat it does work better but we really want to use ubuntu.
from rtpengine.
Duplicate to #51
from rtpengine.
Related Issues (20)
- rtpengine-recording is not converting anything. There is no log record HOT 1
- Drops packets, after re-invite sdp port changed, only when using "asymmetric+strict-source" flags together HOT 19
- Crash due to empty learned_endpoint HOT 5
- Q: "generate-RTCP" do send it to Homer ? HOT 2
- deleting .meta file immediately after the call ends HOT 1
- [feature-req] generate-RTCP sends to Homer too
- T38 encoder issue?! HOT 6
- rtpengine-recording: core dumps HOT 3
- rtpengine-recording: Failed to add frame to mixer: received samples for old re-used input channel? HOT 1
- Build warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' HOT 1
- XML-RPC response not well-formed HOT 2
- Invalid codec rate in SDP can trigger segfault when using play media
- timer for call deletion does not seem to be working HOT 5
- support for both rtp and srtp with ca certificate HOT 1
- transcoded AMR switching OA->BE mode on reINVITE? HOT 4
- MOS is being reported for a very tiny percentage of all processed calls
- Unable to install repo keyring. dfx certificate expired. HOT 1
- use taskset to set the rtpengine process to bind to the core failed HOT 1
- OPUS to G729 Transcoding broken after SIP Re-INVITE (No SDP) HOT 4
- Build failing with "attribute directive ignored" warnings HOT 3
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 rtpengine.