[resending as I hadn't realized I needed to subscribe to the mailing
list]
Hello Hans, hello all,
I just recompiled and upgraded my WNDR3700 home router and everything
went really well. Much congrats to people involved with the build
system, packages and all...
I was previously running asterisk 1.4 and I'm in the process of moving
my setup to 1.8.
That said, I'm having issues: as soon as I install asterisk18-app-stack
from trunk (1.8.2.3-1), no matter what my setup is (in terms of
configuration files), asterisk segfaults when I start it (either in
daemon mode or console mode).
At the moment, I have only these 2 packages installed, I haven't yet
touched the config and it still segfaults:
asterisk18 - 1.8.2.3-1
asterisk18-app-stack - 1.8.2.3-1
There's nothing in system logs:
[Mar 29 20:40:18] WARNING[5239] ccss.c: Could not find valid ccss.conf file.
Using cc_max_requests default
[Mar 29 20:40:18] NOTICE[5239] loader.c: 21 modules will be loaded.
[Mar 29 20:40:18] WARNING[5239] loader.c: Error loading module
'res_musiconhold.so': File not found
[Mar 29 20:40:18] WARNING[5239] loader.c: Error loading module
'res_musiconhold.so': File not found
[Mar 29 20:40:18] WARNING[5239] loader.c: Module 'res_musiconhold.so' could not
be loaded.
[Mar 29 20:40:18] WARNING[5239] loader.c: Error loading module 'res_crypto':
File not found
[Mar 29 20:40:18] WARNING[5239] loader.c: Error loading module 'chan_local':
File not found
[Mar 29 20:40:18] WARNING[5239] loader.c: Error loading module 'res_agi': File
not found
If I strace it, it always dies at the same point: it resolves hostname
using DNS and then clone a new process...
[pid 5878] stat("/etc/resolv.conf", {st_dev=makedev(0, 12), st_ino=34483,
st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=44, st_atime=2011/03/29-22:51:50,
st_mtime=2011/03/29-22:51:50, st_ctime=2011/03/29-22:51:50}) = 0
[pid 5878] socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 6
[pid 5878] connect(6, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("127.0.0.1")}, 28) = 0
[pid 5878] send(6, "\0\5\1\0\0\1\0\0\0\0\0\0\7OpenWrt\4XXXX\6YYYYYY"..., 41,
0) = 41
[pid 5878] poll([{fd=6, events=POLLIN}], 1, 5000) = 1 ([{fd=6,
revents=POLLIN}])
[pid 5878] recv(6, "\0\5\205\200\0\1\0\1\0\0\0\0\7OpenWrt\4XXXX\6YYYYYY"...,
512, MSG_DONTWAIT) = 57
[pid 5878] close(6) = 0
[pid 5878] socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
[pid 5878] setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
[pid 5878] setsockopt(6, SOL_IP, IP_MTU_DISCOVER, [0], 4) = 0
[pid 5878] bind(6, {sa_family=AF_INET, sin_port=htons(5060),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
[pid 5878] getsockname(6, {sa_family=AF_INET, sin_port=htons(5060),
sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
[pid 5878] setsockopt(6, SOL_IP, IP_TOS, [0], 4) = 0
[pid 5878] setsockopt(6, SOL_SOCKET, SO_PRIORITY, [4], 4) = 0
[pid 5878] gettimeofday({1301432042, 8553}, NULL) = 0
[pid 5878] stat64(0x7ffec5d0, 0x7ffec438) = 0
[pid 5878] open("/etc/asterisk/sip_notify.conf", O_RDONLY|O_LARGEFILE) = 7
[pid 5878] ioctl(7, TIOCNXCL, 0x7ffec3e8) = -1 ENOTTY (Inappropriate ioctl for
device)
[pid 5878] gettimeofday({1301432042, 9229}, NULL) = 0
[pid 5878] read(7, "; rfc3842\n; put empty \"Content=>"..., 4096) = 725
[pid 5878] read(7, "", 4096) = 0
[pid 5878] close(7) = 0
[pid 5878] gettimeofday({1301432042, 10072}, NULL) = 0
[pid 5878] time(NULL) = 1301432042
[pid 5878] gettimeofday({1301432042, 10291}, NULL) = 0
[pid 5878] old_mmap(NULL, 49152, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b5a8000 [pid 5878] mprotect(0x2b5a8000,
4096, PROT_NONE) = 0
[pid 5878] clone(Process 5888 attached
child_stack=0x2b5b3380,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
parent_tidptr=0x2b5b36e8, tls=0x2b5ba970, child_tidptr=0x2b5b36e8) = 5888
[pid 5878] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid 5887] +++ killed by SIGSEGV +++
[pid 5886] +++ killed by SIGSEGV +++
[pid 5885] +++ killed by SIGSEGV +++
[pid 5884] +++ killed by SIGSEGV +++
[pid 5883] +++ killed by SIGSEGV +++
[pid 5882] +++ killed by SIGSEGV +++
[pid 5881] +++ killed by SIGSEGV +++
[pid 5880] +++ killed by SIGSEGV +++
[pid 5879] +++ killed by SIGSEGV +++
[pid 5888] +++ killed by SIGSEGV +++
Not sure where to go from here... I've tried enabling debugging but
it doesn't seem to show more than this.
I've looked at known bugs, googled, and found nothing so I'm willing to:
- recompile my kernel with core dumping enabled (not having it certainly
doesn't help)
- compile asterisk with debug mode on to see where it dies
unless you have better ideas of what to try...
Thanks in advance for any kind of assistance you could provide...
Cheers,
--
Mathieu Chouquet-Stringer [email protected]
The sun itself sees not till heaven clears.
-- William Shakespeare --
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel