[sr-dev] crash at startup when listening address does not exist

Andrei Pelinescu-Onciul andrei at iptel.org
Thu May 5 21:33:11 CEST 2011


On May 03, 2011 at 10:23, Juha Heinanen <jh at tutpro.com> wrote:
> i noticed that sr master version crashes at startup if a listening
> address does not exist:
> 
> May  3 10:19:43 sip /usr/sbin/sip-proxy[27907]: ERROR: <core> [udp_server.c:400]: ERROR: udp_init: bind(8, 0xb7210490, 16) on 192.98.102.10: Cannot assign requested address
> May  3 10:19:43 sip kernel: [189745.416438] sip-proxy[27907]: segfault at 786e6570 ip b767ce38 sp bf85f67c error 4 in libc-2.11.2.so[b760a000+140000]
> May  3 10:19:43 sip sip-proxy: ERROR: <core> [daemonize.c:307]: Main process exited before writing to pipe
> 

I cannot reproduce it.
Tried it with the current master (a8859f) and a very basic config:

$ ./ser -Ef stateless.cfg  -l 1.2.3.4
 0(12034) WARNING: <core> [socket_info.c:912]: WARNING: fix_hostname: could not rev. resolve 1.2.3.4
 0(12034) WARNING: <core> [socket_info.c:912]: WARNING: fix_hostname: could not rev. resolve 1.2.3.4
Listening on 
             udp: 1.2.3.4:5060
             tcp: 1.2.3.4:5060
Aliases: 
             *: foo.bar:*
             *: iptel.org:*

 0(12036) ERROR: <core> [udp_server.c:400]: ERROR: udp_init: bind(3, 0xb72221a4, 16) on 1.2.3.4: Cannot assign requested address

Do you get a coredump? If so, could you send a backtrace?

Andrei



More information about the sr-dev mailing list