zhuguoqiang / rfc5766-turn-server

Automatically exported from code.google.com/p/rfc5766-turn-server
0 stars 0 forks source link

Segmentation fault at startup #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Downloaded rfc5766-turnserver from 
http://rfc5766-turn-server.googlecode.com/files/turnserver-2.6.3.1-binary-linux-
wheezy-ubuntu-mint-x86-64bits.tar.gz
2. Extracted and installed: dpkg -i ./rfc5766-turn-server-2.6.3.1-1_amd64.deb
3. Start server: /usr/bin/turnserver

What is the expected output? What do you see instead?
server will start to work

What version of the product are you using? On what operating system?
Linux ubuntu 3.2.0-52-generic #78-Ubuntu SMP Fri Jul 26 16:21:44 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by ktrushni...@gmail.com on 26 Sep 2013 at 10:42

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for reporting.

Unfortunately, I cannot reproduce the problem on my Debian and Ubuntu systems. 
Could you please provide more information ?

1) The exact version of OS
2) How many CPUs
3) What network interfaces do you have: how many cards and IP address. As far 
as I can see - just one of both, right ?
4) Could you please download and compile the full archive and test whether it 
works ? If not, I'd ask to try to run in a debugger and see what is going on.

Thanks !
Oleg

Original comment by mom040...@gmail.com on 26 Sep 2013 at 3:30

GoogleCodeExporter commented 8 years ago
I installed ubuntu kernel 3.2.0-52 x64 and I tried all possible variants - no 
luck, I cannot crash the server. Please help me to debug the situation in your 
system.

Original comment by mom040...@gmail.com on 27 Sep 2013 at 7:23

GoogleCodeExporter commented 8 years ago
It seems like i found a reason: if i set "redis-statsdb" param without a 
"dbname" at /etc/turnserver.conf file - server craches.

So, if i set something like:
redis-statsdb="dbname=test"
server start normally (don't crash)

Original comment by ktrushni...@gmail.com on 27 Sep 2013 at 1:39

GoogleCodeExporter commented 8 years ago
Indeed, the stats db name seems to be the problem. It actually has to be an 
integer - redis uses pre-defined database numbers, starting from 0. When you 
use "test" then the turnserver converts it to 0. When you do not use any dbname 
then something is crashing inside, I'll investigate it later today.

Thanks !
Oleg

Original comment by mom040...@gmail.com on 27 Sep 2013 at 4:27

GoogleCodeExporter commented 8 years ago
fixed in 2.6.4.1

Original comment by mom040...@gmail.com on 28 Sep 2013 at 5:33