Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program received signal SIGSEGV, Segmentation fault. #1018

Closed
izemize opened this issue Oct 5, 2017 · 13 comments
Closed

Program received signal SIGSEGV, Segmentation fault. #1018

izemize opened this issue Oct 5, 2017 · 13 comments

Comments

@izemize
Copy link

izemize commented Oct 5, 2017

Janus randomly stoped after joining text room.

[Switching to Thread 0x7fffc67fc700 (LWP 6753)]
__memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:116
116 ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Nincs ilyen fájl vagy könyvtár.
(no such file or directory)

@izemize
Copy link
Author

izemize commented Oct 7, 2017

#0  __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:152
#1  0x00007fc94cc3b249 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#2  0x00007fc94cc3a1ec in BIO_write () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#3  0x000000000042133e in janus_dtls_bio_filter_write (bio=0x7fc8f8016650,
    in=0x7fc8d80118ba "\370\060@\320*\202\324\260\307\373\235ܺ)]\340\306\001[V>c\271T@P\230\023\223\207F\006v0#\371-/\213]k\370c4\fd8\216\277\030AA\343\346\355U\262\236wb\tsc\030\322CI\347\350\020]\356c5o\320o\027xt\037\361\003|6ì\205\250\033\354\352\\^\332\342\321\365d\324\370\361\215\067}rC\341\034\340\311\070\224\366UM\271\346/t\371\260\355\204\b\303.\363Kw\006%\025ϦѸ\224\212Oĝ\262Ҥ\003\246}\263\306r^\270\345\206J\357$\353L\265\220\207U\036<\250\064\177\212\234\347i_S\354\002\240\340\262 d\224z\261\246b\337\027\021gp\035\062\220\316\020\316\003>"..., inl=-93) at dtls-bio.c:133
#4  0x00007fc94cc3a1ec in BIO_write () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#5  0x00007fc94cf64f12 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
#6  0x00007fc94cf76e04 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
#7  0x00007fc94cf76b12 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
#8  0x00000000004208a4 in janus_dtls_send_sctp_data (dtls=0x7fc8f8014db0, buf=<optimized out>, len=<optimized out>) at dtls.c:894
#9  0x0000000000450f23 in janus_sctp_thread (data=0x7fc8f8021260) at sctp.c:1278
#10 0x00007fc94d421845 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007fc94bce2064 in start_thread (arg=0x7fc910ff9700) at pthread_create.c:309
#12 0x00007fc94ba1762d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

@lminiero
Copy link
Member

Sorry, but this trace doesn't help, as it doesn't contain any useful info (everything seems to be optimized). Either build Janus without optimizations, or try with AddressSanitizer itself, which may help in case it's a race condition of some sort: https://janus.conf.meetecho.com/docs/debug

@atoppi
Copy link
Member

atoppi commented Oct 10, 2017

As @lminiero said, I suggest to run Janus with libasan to gather more info.

@atoppi
Copy link
Member

atoppi commented Oct 10, 2017

You could also try with a newer version of OpenSSL or just switch to a recent OpenSSL if you are using LibreSSL.

@izemize
Copy link
Author

izemize commented Oct 10, 2017

I try AddressSanitizer next time. I use jessie, and there are no newer version of OpenSSL

@izemize
Copy link
Author

izemize commented Oct 11, 2017

@atoppi
Copy link
Member

atoppi commented Oct 11, 2017

Stll can't fully understand what's happening here, because the asan output does not contain useful info.
I want to try relaxing the minimum OpenSSL version to use BIO_write OpenSSL API. That is an API introduced back in 0.9.6 version, and should grant a clean BIO traversal, in place of simple pointer access.

Attached here the patch. Give it a run please.

@izemize
Copy link
Author

izemize commented Oct 13, 2017

Thanks for your help. I'm not sure you can changed only version number in this patch?

@atoppi
Copy link
Member

atoppi commented Oct 13, 2017

Yes, changed the minimum version in order to use OpenSSL API.

@izemize
Copy link
Author

izemize commented Oct 16, 2017

Thanks for your job, but patch nothing help for me.

crash

@atoppi
Copy link
Member

atoppi commented Oct 16, 2017

Can you test your Janus installation with other plugins? E.g. use the html demo pages with echotest and videoroom.

@lminiero
Copy link
Member

Any update? Still an issue?

@lminiero
Copy link
Member

Closing as we didn't get any update. Please let us know if it's still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants