<div dir="ltr">can you get a backtrace from gdb of the core file rather than strace?<div>I know the srtp lib has had a problem in big endian.</div><div><br></div><div>You could try adding --disable-srtp to configure params</div><div><br></div>
<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 1, 2014 at 6:50 AM, Андрей Аппалонов <span dir="ltr"><<a href="mailto:appalonovandrey@gmail.com" target="_blank">appalonovandrey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><span>Hello</span><span></span><span>!</span><br><span lang="en"> <span>Can you</span> <span>help me?</span> <span>The problem</span> <span>is as follows:</span><br><br> <span>I compiled</span> <span>FreeSwitch</span> <span>for</span> <span>PowerPC.</span> <span>FS</span> <span>compiled,</span> <span>but</span> <span>does not want to</span> <span>run</span><span>.</span> <span>Gives</span> <span>a</span> <span>Aborted</span><span>.</span> <span>Runs under</span> <span>strace,</span> <span>this is what</span> <span>gives</span> <span>(the last</span> <span>38</span> <span>lines):</span></span><br><br>open("/proc/stat", O_RDONLY) = 3<br>fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000<br>read(3, "cpu 278 0 1857 11232 0 10 29 0 0"..., 1024) = 1024<br>read(3, "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"..., 1024) = 161<br>read(3, ""..., 1024) = 0<br>close(3) = 0<br>munmap(0x48023000, 4096) = 0<br>sched_setscheduler(0, SCHED_FIFO, { 1 }) = 0<br>setpriority(PRIO_PROCESS, 1485, -10) = 0<br>setrlimit(RLIMIT_STACK, {rlim_cur=240*1024, rlim_max=8192*1024}) = 0<br>setrlimit(RLIMIT_NOFILE, {rlim_cur=999999, rlim_max=999999}) = 0<br>setrlimit(RLIMIT_CPU, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_NPROC, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_RTPRIO, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_AS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>mkdir("/usr/local/freeswitch/<div>run", 0750) = -1 EEXIST (File exists)<br>open("/usr/local/freeswitch/run/freeswitch.pid", O_RDONLY) = 3<br>read(3, "1483"..., 32) = 4<br>close(3) = 0<br>open("/usr/local/freeswitch/run/freeswitch.pid", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3<br>fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0<br>write(3, "1485"..., 4) = 4<br>uname({sys="Linux", node="OD-171/172", ...}) = 0<br>open("/proc/stat", O_RDONLY) = 4<br>fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000<br>read(4, "cpu 279 0 1858 11232 0 10 29 0 0"..., 1024) = 1024<br>read(4, "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"..., 1024) = 161<br>read(4, ""..., 1024) = 0<br>close(4) = 0<br>munmap(0x48023000, 4096) = 0<br>rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0<br>tgkill(1485, 1485, SIGABRT) = 0<br>--- SIGABRT (Aborted) @ 0 (0) ---<br>+++ killed by SIGABRT +++<br><br><font size="4"><span lang="en"><span>it</span> <span>wrote</span> <span>gdb</span></span></font>:<br><br></div><div>warning: exec file is newer than core file.<br><br>warning: Can't read pathname for load map: Input/output error.<br>Reading symbols from /lib/libm.so.6...done.<br>Loaded symbols for /lib/libm.so.6<br>Reading symbols from /lib/libpthread.so.0...done.<br>Loaded symbols for /lib/libpthread.so.0<br>Reading symbols from /usr/local/freeswitch/lib/libfreeswitch.so.1...done.<br>Loaded symbols for /usr/local/freeswitch/lib/libfreeswitch.so.1<br>Reading symbols from /usr/lib/libz.so.1...done.<br>Loaded symbols for /usr/lib/libz.so.1<br>Reading symbols from /lib/librt.so.1...done.<br>Loaded symbols for /lib/librt.so.1<br>Reading symbols from /lib/libdl.so.2...done.<br>Loaded symbols for /lib/libdl.so.2<br>Reading symbols from /lib/libcrypt.so.1...done.<br>Loaded symbols for /lib/libcrypt.so.1<br>Reading symbols from /usr/lib/libssl.so.0.9.8...done.<br>Loaded symbols for /usr/lib/libssl.so.0.9.8<br>Reading symbols from /usr/lib/libcrypto.so.0.9.8...done.<br>Loaded symbols for /usr/lib/libcrypto.so.0.9.8<br>Reading symbols from /usr/lib/libjpeg.so.62...done.<br>Loaded symbols for /usr/lib/libjpeg.so.62<br>Reading symbols from /lib/libc.so.6...done.<br>Loaded symbols for /lib/libc.so.6<br>Reading symbols from /lib/ld.so.1...done.<br>Loaded symbols for /lib/ld.so.1<br>Reading symbols from /lib/libstdc++.so.6...done.<br>Loaded symbols for /lib/libstdc++.so.6<br>Reading symbols from /lib/libgcc_s.so.1...done.<br>Loaded symbols for /lib/libgcc_s.so.1<br>Core was generated by `./freeswitch'.<br>Program terminated with signal 6, Aborted.<br>#0 0x0f84e564 in raise () from /lib/libc.so.6<br><font size="4"><br></font></div></div></div><div><span lang="en"><font size="4"><span>Under</span> <span>gdb</span> <span>run:</span></font><br><br> <span>export CFLAGS = "- g -ggdb"</span><br> <span>export MOD_CFLAGS = "- g -ggdb"</span><br> <span>./run_configure</span><br> <span>make</span><br><br> <span>ulimit -c unlimited</span><br> <span>./freeswitch</span><br><br> <span>gdb bin / freeswitch core</span><br><font size="4"><br> <span>Version</span> <span>FreeSwitch 1.4.0.</span></font><br><br> <font size="4"><span>run_configure</span> <span>looks like this:</span><br></font><br> <span>export PATH = / opt / freescale / usr / local / gcc-4.1.78-eglibc-2.5.78-1 / powerpc-e300c3-linux-gnu / bin: \</span><br> <span>/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib: \</span><br> <span>/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs: \</span><br> <span>/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / lib: $ PATH</span><br><br> <span>#export CC = powerpc-e300c3-linux-gnu-gcc</span><br><br> <span>declare -x CROSS_COMPILE = "powerpc-e300c3-linux-gnu-"</span><br> <span>declare -x CC = "$ CROSS_COMPILE" gcc</span><br> <span>declare -x CXX = "$ CROSS_COMPILE" g ++</span><br> <span>declare -x CPP = "$ CROSS_COMPILE" cpp</span><br> <span>declare -x STRIP = "$ CROSS_COMPILE" strip</span><br> <span>declare -x RANLIB = "$ CROSS_COMPILE" ranlib</span><br> <span>declare -x AR = "$ CROSS_COMPILE" ar</span><br> <span>declare -x AS = "$ CROSS_COMPILE" as</span><br> <span>declare -x NM = "$ CROSS_COMPILE" nm</span><br> <span>declare -x LD = "$ CROSS_COMPILE" ld</span><br> <span>export LDFLAGS = -L / home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib</span><br><br> <span>export ac_cv_sizeof_ssize_t =</span> <span>4</span><br> <span>export ac_cv_lib_z_inflateReset = yes</span><br> <span>./configure
--target = powerpc --with-lib-subdir = / home / common / ltib-mpc83xx /
mpc8308erdb / rootfs / usr / lib --with-gcc-arch = powerpc --host =
powerpc-e300c3-linux</span> <span>-gnu \</span><br> <span>ac_cv_file__dev_ptmx = yes --disable-core-libedit-support --without-apr-util</span></span></div><span class=""><div><br></div><br><span lang="en"><span>What</span> <span>could be</span> <span>the reason for such</span> <span>behavior?<br><br><br></span></span></span><span><font color="#888888"><span><font color="#888888"><div><div dir="ltr"><span lang="en"><span>Best Regards</span><span>,</span><br> <span>Appalonov</span> <span>Andrei.</span></span></div></div></font></span></font></span><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> ☎ +19193869900 </div><div><br></div></div></div></div></div>
</div>