[Freeswitch-users] newbie question (first build): FreeSWITCH just "hangs" when I run it

Peter Villeneuve petervnv1 at gmail.com
Mon Jun 23 19:10:03 MSD 2014


It seems it gets stuck on a futex, which explains why it consumes 95% of
the CPU and I eventually have to kill it.
I believe others are seeing the same results, so this seems likely to be a
bug that was recently introduced to git.


futex(0x7fdb61cf6e6c, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7fdb61cf6e68,
{FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
futex(0x7fdb61cf6ec0, FUTEX_WAKE_PRIVATE, 1) = 1
+++ killed by SIGKILL +++


On Mon, Jun 23, 2014 at 3:41 PM, Peter Villeneuve <petervnv1 at gmail.com>
wrote:

> Weird. Strace shows apparently missing library files.
> I won't post the full strace log here, but I can send it to whomever wants
> to look further into this. Did something change recently with the makefile
> and/or library locations?
>
> Here's the beginning:
>
> execve("./freeswitch", ["./freeswitch", "-nonat"], [/* 29 vars */]) = 0
> brk(0)                                  = 0x1519000
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
> directory)
> mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x7fdb61d7e000
> access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
> directory)
> open("/usr/local/freeswitch/lib/tls/x86_64/libm.so.6", O_RDONLY|O_CLOEXEC)
> = -1 ENOENT (No such file or directory)
> stat("/usr/local/freeswitch/lib/tls/x86_64", 0x7fff25c919f0) = -1 ENOENT
> (No such file or directory)
> open("/usr/local/freeswitch/lib/tls/libm.so.6", O_RDONLY|O_CLOEXEC) = -1
> ENOENT (No such file or directory)
> stat("/usr/local/freeswitch/lib/tls", 0x7fff25c919f0) = -1 ENOENT (No such
> file or directory)
> open("/usr/local/freeswitch/lib/x86_64/libm.so.6", O_RDONLY|O_CLOEXEC) =
> -1 ENOENT (No such file or directory)
> stat("/usr/local/freeswitch/lib/x86_64", 0x7fff25c919f0) = -1 ENOENT (No
> such file or directory)
> open("/usr/local/freeswitch/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1
> ENOENT (No such file or directory)
> stat("/usr/local/freeswitch/lib", {st_mode=S_IFDIR|S_ISGID|0750,
> st_size=4096, ...}) = 0
> open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=60104, ...}) = 0
> mmap(NULL, 60104, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fdb61d6f000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
> directory)
> open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
> read(3,
> "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200U\0\0\0\0\0\0"..., 832)
> = 832
> fstat(3, {st_mode=S_IFREG|0644, st_size=1059248, ...}) = 0
>
>
> On Mon, Jun 23, 2014 at 3:34 PM, Peter Villeneuve <petervnv1 at gmail.com>
> wrote:
>
>> I don't think you're doing anything wrong at all. My installation was
>> working fine until I decided to update.
>> I also am running Debian 7 on Amd64 like you.
>>
>> In fact I just did a make current and now I have the same problem you're
>> referring.
>> The freeswitch daemon now consumes around 95% of the CPU when starting
>> and just sits there indefinitely.
>>
>> I'm running strace now
>> http://www.cyberciti.biz/tips/linux-strace-command-examples.html to see
>> if I can figure out why the update seems to have broken my freeswitch
>> install.
>>
>>
>> On Mon, Jun 23, 2014 at 5:39 AM, Craig Stevenson <craig at stevenson.com>
>> wrote:
>>
>>>
>>> Hoping someone can help out a newbie figure out what I'm doing wrong.
>>>  This is my first attempt at building and I keep running into same issue
>>> each time.  Any pointers would be greatly appreciated.
>>>
>>> My problem is that FreeSWITHC seems to just get stuck when I try to run
>>> the binary.  And and if I execute with -ncwait optoin, it keeps spitting
>>> out a line saying that it is waiting for background process to be ready
>>>
>>> This is what happens when I try to run the compiled system on a home
>>> ESXi server in my internal home network.
>>>
>>> # ./freeswitch
>>> 2014-06-22 21:23:06.011792 [INFO] switch_event.c:670 Activate Eventing
>>> Engine.
>>> 2014-06-22 21:23:06.011947 [WARNING] switch_event.c:652 Create
>>> additional event dispatch thread 0
>>> <and then just sits there....  >
>>>
>>>
>>>
>>> BUILD VERSION:
>>> - Debian-7.5.0-amd64-netinst.iso
>>> - FreeSWITCH master (git:git clone git://git.*freeswitch.org/freeswitch.git
>>> <http://freeswitch.org/freeswitch.git>)*
>>>
>>>
>>> TEST MACHINE:  ESXi 5.1 VM
>>> - Debian GNU/Linus 6 (64 bit)
>>> - 1 CPU
>>> - 1 GB RAM
>>> - 16GB Memory
>>> - 1 NIC = E1000
>>>
>>>
>>> INSTALLATION STEPS with output piped through 'tee' to capture logs:
>>>
>>> su
>>>  (apt-get update 2>&1) | tee ~/apt-get-update.txt
>>> (apt-get upgrade 2>&1) | tee ~/apt-get-upgrade.txt
>>> (dpkg --get-selections 2>&1) | tee ~/dpkg-get-selections.txt
>>>
>>> (apt-get install autoconf automake devscripts gawk g++ git-core
>>> libjpeg-dev libncurses5-dev libtool make python-dev gawk pkg-config
>>> libtiff5-dev libperl-dev libgdbm-dev libdb-dev gettext libssl-dev
>>> libcurl4-openssl-dev libpcre3-dev libspeex-dev libspeexdsp-dev
>>> libsqlite3-dev libedit-dev libldns.dev libpq-dev 2>&1) | tee ~/apt-get.txt
>>>
>>> (dpkg --get-selections 2>&1) | tee
>>> ~/dpkg-get-selections-after-apt-get.txt
>>>
>>> cd /usr/src
>>> (git clone git://git.*freeswitch.org/freeswitch.git
>>> <http://freeswitch.org/freeswitch.git>* 2>&1) | tee ~/git.txt
>>>
>>> cd /usr/src/freeswitch
>>> (./bootstrap.sh 2>&1) | tee ~/bootstrap.txt  # same result if I add flag
>>> -j
>>> (./configure --enable-core-pgsql-support 2>&1) | tee ~/configure.txt
>>> (make install 2>&1) | tee ~/make-install.txt
>>> (make all cd-sounds-install cd-moh-install 2>&1) | tee ~make-sounds.txt
>>>
>>> cd /usr/local/freeswitch/bin
>>> #./freeswitch
>>>
>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140623/fb49a473/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list