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

Coturn server crashes #36

Closed
watanabejr opened this issue Feb 26, 2016 · 8 comments
Closed

Coturn server crashes #36

watanabejr opened this issue Feb 26, 2016 · 8 comments

Comments

@watanabejr
Copy link

I build source code coturn and libevent, then install them in CentOS 6.5. STUN and TRUN access seems to be working correct.
But, when I send http query request without "=" and value like http://<ip address>:<port>?key, coturn server crashes because of segmentation fault.
Coturn server does not crash when I send http query with ?key= or ?key=value.

Here is the syslog.

Feb 26 11:44:50 host-192-168-10-9 kernel: turnserver[19668]: segfault at 8 ip 000000000040fe8e sp 00007f3c6dd12220 error 6 in turnserver[400000+6a000]
Feb 26 11:44:50 host-192-168-10-9 abrtd: Directory 'ccpp-2016-02-26-11:44:50-19660' creation detected
Feb 26 11:44:50 host-192-168-10-9 abrt[19674]: Saved core dump of pid 19660 (/usr/local/bin/turnserver) to /var/spool/abrt/ccpp-2016-02-26-11:44:50-19660 (86544384 bytes)

I want not to stop coturn when the server receives any query.
Is this a bug? Otherwise, could you please tell me how to avoid?

Thanks.

@mom040267
Copy link
Contributor

I ll check the problem and i ll let you know

Sent from my iPhone

On Feb 26, 2016, at 6:44 AM, watanabejr notifications@github.com wrote:

I build source code coturn and libevent, then install them in CentOS 6.5. STUN and TRUN access seems to be working correct.
But, when I send http query request without "=" and value like http://:?key, coturn server crashes because of segmentation fault.
Coturn server does not crash when I send http query with ?key= or ?key=value.

Here is the syslog.

Feb 26 11:44:50 host-192-168-10-9 kernel: turnserver[19668]: segfault at 8 ip 000000000040fe8e sp 00007f3c6dd12220 error 6 in turnserver[400000+6a000]
Feb 26 11:44:50 host-192-168-10-9 abrtd: Directory 'ccpp-2016-02-26-11:44:50-19660' creation detected
Feb 26 11:44:50 host-192-168-10-9 abrt[19674]: Saved core dump of pid 19660 (/usr/local/bin/turnserver) to /var/spool/abrt/ccpp-2016-02-26-11:44:50-19660 (86544384 bytes)
I want not to stop coturn when the server receives any query.
Is this a bug? Otherwise, could you please tell me how to avoid?

Thanks.


Reply to this email directly or view it on GitHub.

@mom040267
Copy link
Contributor

I was able to reproduce the issue.

I'll fix it.

On Fri, Feb 26, 2016 at 10:04 AM, Oleg Moskalenko mom040267@gmail.com
wrote:

I ll check the problem and i ll let you know

Sent from my iPhone

On Feb 26, 2016, at 6:44 AM, watanabejr notifications@github.com wrote:

I build source code coturn and libevent, then install them in CentOS 6.5.
STUN and TRUN access seems to be working correct.
But, when I send http query request without "=" and value like http://:?key, coturn server crashes because of segmentation fault.
Coturn server does not crash when I send http query with ?key= or
?key=value.

Here is the syslog.

Feb 26 11:44:50 host-192-168-10-9 kernel: turnserver[19668]: segfault at 8 ip 000000000040fe8e sp 00007f3c6dd12220 error 6 in turnserver[400000+6a000]
Feb 26 11:44:50 host-192-168-10-9 abrtd: Directory 'ccpp-2016-02-26-11:44:50-19660' creation detected
Feb 26 11:44:50 host-192-168-10-9 abrt[19674]: Saved core dump of pid 19660 (/usr/local/bin/turnserver) to /var/spool/abrt/ccpp-2016-02-26-11:44:50-19660 (86544384 bytes)

I want not to stop coturn when the server receives any query.
Is this a bug? Otherwise, could you please tell me how to avoid?

Thanks.


Reply to this email directly or view it on GitHub
#36.

mom040267 added a commit that referenced this issue Feb 27, 2016
@mom040267
Copy link
Contributor

I fixed the problem in the master branch.

On Fri, Feb 26, 2016 at 10:04 AM, Oleg Moskalenko mom040267@gmail.com
wrote:

I ll check the problem and i ll let you know

Sent from my iPhone

On Feb 26, 2016, at 6:44 AM, watanabejr notifications@github.com wrote:

I build source code coturn and libevent, then install them in CentOS 6.5.
STUN and TRUN access seems to be working correct.
But, when I send http query request without "=" and value like http://:?key, coturn server crashes because of segmentation fault.
Coturn server does not crash when I send http query with ?key= or
?key=value.

Here is the syslog.

Feb 26 11:44:50 host-192-168-10-9 kernel: turnserver[19668]: segfault at 8 ip 000000000040fe8e sp 00007f3c6dd12220 error 6 in turnserver[400000+6a000]
Feb 26 11:44:50 host-192-168-10-9 abrtd: Directory 'ccpp-2016-02-26-11:44:50-19660' creation detected
Feb 26 11:44:50 host-192-168-10-9 abrt[19674]: Saved core dump of pid 19660 (/usr/local/bin/turnserver) to /var/spool/abrt/ccpp-2016-02-26-11:44:50-19660 (86544384 bytes)

I want not to stop coturn when the server receives any query.
Is this a bug? Otherwise, could you please tell me how to avoid?

Thanks.


Reply to this email directly or view it on GitHub
#36.

@watanabejr
Copy link
Author

Thank you for the quick response.

I confirmed that coturn does not crash when I send query of this issue.
But, it seems any http response is not returned to my client. Is it a correct behavior?

@mom040267
Copy link
Contributor

not "any", only badly formed HTTP requests.

I'll adjust it so an error will be returning.

On Sat, Feb 27, 2016 at 7:52 PM, watanabejr notifications@github.com
wrote:

Thank you for the quick response.

I confirmed that coturn does not crash when I send query of this issue.
But, it seems any http response is not returned to my client. Is it a
correct behavior?


Reply to this email directly or view it on GitHub
#36 (comment).

@mom040267
Copy link
Contributor

I fixed that.

On Sat, Feb 27, 2016 at 10:22 PM, Oleg Moskalenko mom040267@gmail.com
wrote:

not "any", only badly formed HTTP requests.

I'll adjust it so an error will be returning.

On Sat, Feb 27, 2016 at 7:52 PM, watanabejr notifications@github.com
wrote:

Thank you for the quick response.

I confirmed that coturn does not crash when I send query of this issue.
But, it seems any http response is not returned to my client. Is it a
correct behavior?


Reply to this email directly or view it on GitHub
#36 (comment).

@watanabejr
Copy link
Author

Sorry for my poor English.

I confirmed that logon page is returned when I send bad format HTTP requests.

Thank you for your time.

@muabada
Copy link

muabada commented Apr 9, 2021

Apr 9 08:42:40 JVBNA kernel: [252318.145277] turnserver[10065]: segfault at 7ff0d0000078 ip 00007ff0d0000078 sp 00007ff0d5999958 error 15

Still getting this issue, turn server keeps crashing :

Version : Version Coturn-4.5.0.5
OS :
Distributor ID: Debian
Description: Debian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch

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