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