From: Gentle Y. <no...@gm...> - 2012-02-17 12:48:12
|
Many thanks to you. It looks like ok. The version from SVN is version 0.6 :) The last 3 lines are: 20:44:13.699362 [turnserver.c:5223] TurnServer start 20:44:13.699641 [turnserver.c:5357] Cannot drop privileges 20:44:13.699666 [turnserver.c:5360] Run with uid_real=0 gid_real=0 uid_eff=0 gid_eff=0 I'll contiune my learn and test ... Thx again. 在 2012年2月17日 下午7:48,Sebastien Vincent <se...@ji...>写道: > Hi, > > It seems that this crash has been fixed in SVN revision few month ago (we > will do a release soon with all the fixes since version 0.5). Can you try > with the SVN trunk ? And be sure to "./configure --enable-debug-build" to > have some debug information when you run the program. > > Regards, > -- > Seb > > Le 17/02/12 12:44, Gentle Yang a écrit : > > The following: > > " > > [root@localhost turnserver-work]# valgrind --leak-check=yes turnserver -c > turnserver.conf > ==15937== Memcheck, a memory error detector > ==15937== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. > ==15937== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info > ==15937== Command: turnserver -c turnserver.conf > ==15937== > > ==15937== Invalid read of size 4 > ==15937== at 0x8058C83: tmpuser_destroy (in /usr/local/bin/turnserver) > ==15937== by 0x8052684: main (in /usr/local/bin/turnserver) > ==15937== Address 0x0 is not stack'd, malloc'd or (recently) free'd > ==15937== > ==15937== > ==15937== Process terminating with default action of signal 11 (SIGSEGV) > ==15937== Access not within mapped region at address 0x0 > ==15937== at 0x8058C83: tmpuser_destroy (in /usr/local/bin/turnserver) > ==15937== by 0x8052684: main (in /usr/local/bin/turnserver) > ==15937== If you believe this happened as a result of a stack > ==15937== overflow in your program's main thread (unlikely but > ==15937== possible), you can try to increase the size of the > ==15937== main thread stack using the --main-stacksize= flag. > ==15937== The main thread stack size used in this run was 10485760. > ==15937== > ==15937== HEAP SUMMARY: > ==15937== in use at exit: 5,698 bytes in 182 blocks > ==15937== total heap usage: 334 allocs, 152 frees, 68,705 bytes allocated > ==15937== > ==15937== 64 bytes in 2 blocks are possibly lost in loss record 24 of 34 > ==15937== at 0x4005B83: malloc (vg_replace_malloc.c:195) > ==15937== by 0x8058B0F: turnserver_cfg_parse (in > /usr/local/bin/turnserver) > ==15937== by 0x8051AF3: main (in /usr/local/bin/turnserver) > ==15937== > ==15937== LEAK SUMMARY: > ==15937== definitely lost: 0 bytes in 0 blocks > ==15937== indirectly lost: 0 bytes in 0 blocks > ==15937== possibly lost: 64 bytes in 2 blocks > ==15937== still reachable: 5,634 bytes in 180 blocks > ==15937== suppressed: 0 bytes in 0 blocks > ==15937== Reachable blocks (those to which a pointer was found) are not > shown. > ==15937== To see them, rerun with: --leak-check=full --show-reachable=yes > ==15937== > ==15937== For counts of detected and suppressed errors, rerun with: -v > ==15937== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 27 from 8) > Segmentation fault > [root@localhost turnserver-work]# > > " > > > > > > > 在 2012年2月17日 下午7:32,Sebastien Vincent <se...@ji...>写道: > >> Hi, >> >> Please run turnserver with valgrind and give us the output. >> >> Best regards, >> -- >> Seb >> >> Le 17/02/12 12:23, Gentle Yang a écrit : >> >> Thanks for your swift reply. >> >> 1 "Do you have setup "account_file" property in turnserver.conf ? and >> also provide the turnusers.txt file in the location provided by >> "account_file" property ?" >> >> >> Yes, the account_file is at correct location with turnserver.conf , >> and I checked the account configure >> parameters(account_method,account_file) in turnserver.conf . >> >> 2 I tried to uninstall it,and installed it again : >> >> " >> cd /usr/local/src/ >> bunzip2 -k turnserver-0.5.tar.bz2 >> tar xvf turnserver-0.5.tar >> >> cd turnserver-0.5 >> autoreconf -i >> >> ./configure >> make >> make install >> >> " >> >> Then copy extra/turnserver.conf.template and extra/turnusers.txt.template >> to my work dir: /root/temp/turn-test/turnserver-work, and change >> thelisten_address to my ip,and run it: turnserver -c turnserver.conf >> The error now is "Segmentation fault". >> Here is my shell history and output: >> >> " >> [root@localhost turnserver-work]# pwd >> /root/temp/turn-test/turnserver-work >> [root@localhost turnserver-work]# >> [root@localhost turnserver-work]# ll /usr/local/src/turnserver-0.5 >> total 780 >> -rw-r--r-- 1 1000 1000 11529 Sep 21 2009 acinclude.m4 >> -rw-r--r-- 1 1000 1000 37397 Feb 16 10:40 aclocal.m4 >> -rw-r--r-- 1 1000 1000 4733 Jul 27 2008 aminclude.am >> -rw-r--r-- 1 1000 1000 54 Apr 6 2009 AUTHORS >> drwxr-xr-x 2 1000 1000 4096 Feb 16 10:40 autom4te.cache >> -rw-r--r-- 1 1000 1000 3688 Jun 10 2011 ChangeLog >> -rwxr-xr-x 1 1000 1000 3769 Jun 10 2011 compile >> -rw-r--r-- 1 root root 8497 Feb 17 15:13 config.h >> -rw-r--r-- 1 root root 7982 Feb 16 10:40 config.h.in >> -rw-r--r-- 1 1000 1000 8053 Jun 10 2011 config.h.in~ >> -rw-r--r-- 1 root root 47048 Feb 17 15:13 config.log >> -rwxr-xr-x 1 root root 34587 Feb 17 15:13 config.status >> -rwxr-xr-x 1 1000 1000 319503 Feb 16 10:40 configure >> -rw-r--r-- 1 1000 1000 3470 Jan 7 2011 configure.in >> -rw-r--r-- 1 1000 1000 35147 Jul 27 2008 COPYING >> -rwxr-xr-x 1 1000 1000 18615 Jun 10 2011 depcomp >> drwxr-xr-x 2 1000 1000 4096 Jun 10 2011 doc >> -rw-r--r-- 1 1000 1000 63493 Jul 6 2010 Doxyfile >> drwxr-xr-x 2 1000 1000 4096 Feb 17 15:19 extra >> -rw-r--r-- 1 1000 1000 15578 Jun 10 2011 INSTALL >> -rwxr-xr-x 1 1000 1000 13663 Jun 10 2011 install-sh >> -rw-r--r-- 1 1000 1000 2236 Jul 16 2010 LICENSE >> -rw-r--r-- 1 1000 1000 6279 Jul 27 2008 LICENSE.OpenSSL >> -rw-r--r-- 1 root root 22863 Feb 17 15:13 Makefile >> -rw-r--r-- 1 1000 1000 307 Dec 15 2008 Makefile.am >> -rw-r--r-- 1 root root 25294 Feb 16 10:40 Makefile.in >> drwxr-xr-x 2 1000 1000 4096 Feb 17 15:13 man >> -rwxr-xr-x 1 1000 1000 11419 Jun 10 2011 missing >> -rw-r--r-- 1 1000 1000 0 Jul 27 2008 NEWS >> -rw-r--r-- 1 1000 1000 5095 May 17 2011 README >> drwxr-xr-x 3 1000 1000 4096 Feb 17 15:13 src >> -rw-r--r-- 1 root root 23 Feb 17 15:13 stamp-h1 >> drwxr-xr-x 3 1000 1000 4096 Feb 17 15:13 test >> [root@localhost turnserver-work]# >> [root@localhost turnserver-work]# which turnserver >> /usr/local/bin/turnserver >> [root@localhost turnserver-work]# pwd >> /root/temp/turn-test/turnserver-work >> [root@localhost turnserver-work]# ll >> total 8 >> -rw-r--r-- 1 root root 2335 Feb 17 15:20 turnserver.conf >> -rw-r--r-- 1 root root 36 Feb 17 15:20 turnusers.txt >> [root@localhost turnserver-work]# >> [root@localhost turnserver-work]# turnserver -c turnserver.conf >> >> Segmentation fault >> [root@localhost turnserver-work]# >> " >> >> Thanks again. >> >> >> 在 2012年2月17日 下午3:45,Sebastien Vincent <se...@ji...>写 道: >> >>> Hi, >>> >>> Do you have setup "account_file" property in turnserver.conf ? and also >>> provide the turnusers.txt file in the location provided by "account_file" >>> property ? >>> >>> Please describe _all_ you did (tar -xjvf, ..., cp >>> extra/turnserver.conf.template /usr/..., ...) and also post the output of >>> the program. >>> >>> Regards, >>> -- >>> Seb >>> >>> Le 17/02/12 08:10, Gentle Yang a écrit : >>> >>> Hi all: >>> >>> I tried to install TurnServer-0.5 on centos (x86, ipv4) with the >>> following shell: >>> >>> autoreconf -i >>> ./configure --enable-debug-build >>> >>> >>> make >>> make install >>> >>> And it looks like everything is ok, but when I run the command >>> "turnserver -c /usr/local/etc/turn/turnserver.conf" at >>> "/usr/local/etc/turn/" ,it just output the text in turnserver.conf and then >>> it's over without any system process . Is there something wrong or I missed >>> ? Many thanks. >>> >>> Chris >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Virtualization & Cloud Management Using Capacity Planning >>> Cloud computing makes use of virtualization - but cloud computing >>> also focuses on allowing computing to be delivered as a service.http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> >>> >>> >>> _______________________________________________ >>> Turnserver-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/turnserver-users >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Virtualization & Cloud Management Using Capacity Planning >>> Cloud computing makes use of virtualization - but cloud computing >>> also focuses on allowing computing to be delivered as a service. >>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> _______________________________________________ >>> Turnserver-users mailing list >>> Tur...@li... >>> https://lists.sourceforge.net/lists/listinfo/turnserver-users >>> >>> >> >> > > |