Hi,
I have tried to register to OpenSER CVS 31.03 with my SNOM 360 (5.3.6sw), disabled pretty all modules from OpenSER (radius, xlog, auth, ...) and always the server crashes.
Is there something I have missed in configuration ?
Thanks a lot for help, -Mika
The error message and debug info seems like this:
11(24351) tcpconn_new: new tcp connection to: XXX.XX.XX.XXX 11(24351) tcpconn_new: on port 2171, type 3 11(24351) tls_tcpconn_init: Entered: Creating a whole new ssl connection 11(24351) tls_tcpconn_init: Looking up tls domain [XXX.XX.XX.XXX:5061] 11(24351) tls_tcpconn_init: Using default tls server settings 11(24351) tls_tcpconn_init: Setting in ACCEPT mode (server) 11(24351) tcpconn_add: hashes: 442, 1 11(24351) handle_new_connect: new connection: 0xb608f6a0 24 flags: 0002 11(24351) send2child: to tcp child 0 7(24347), 0xb608f6a0 7(24347) received n=4 con=0xb608f6a0, fd=19 7(24347) DBG: io_watch_add(0x810e580, 19, 2, 0xb608f6a0), fd_no=1 7(24347) tls_update_fd: New fd is 19 11(24351) DBG: handle_tcp_child: dead tcp child 0 (pid 24347, no 7) (shutting down?) 11(24351) DBG: io_watch_del (0x810e420, 17, -1, 0x0) fd_no=16 called 11(24351) ERROR: receive_fd: EOF on 15 11(24351) DBG: handle_ser_child: dead child 7, pid 24347 (shutting down?) 11(24351) DBG: io_watch_del (0x810e420, 15, -1, 0x0) fd_no=15 called 0(24339) child process 24347 exited by a signal 11 0(24339) core was generated 0(24339) INFO: terminating due to SIGCHLD 6(24346) INFO: signal 15 received 6(24346) Memory status (pkg):
Hi,
Not sure if this help, but here is the backtrace of the crash. The openser dumps 2 core files same time, here are backtraces of both.
First core file: (gdb) bt #0 0x001a1464 in OPENSSL_cleanse () from /lib/libcrypto.so.5 #1 0x00ddf2c5 in kssl_ctx_free () from /lib/libssl.so.5 #2 0x00dd503e in SSL_free () from /lib/libssl.so.5 #3 0x080dee26 in tls_tcpconn_clean (c=0xb60ff6a0) at tls/tls_server.c:472 #4 0x080924b0 in _tcpconn_rm (c=0xb60ff6a0) at tcp_main.c:520 #5 0x08092f88 in destroy_tcp () at tcp_main.c:1410 #6 0x0806ad52 in cleanup (show_status=1) at main.c:362 #7 0x0806bdc6 in handle_sigs () at main.c:517 #8 0x0806c6d7 in main_loop () at main.c:1059 #9 0x0806e355 in main (argc=1, argv=0xbfe80b54) at main.c:1472
Second core file: (gdb) bt #0 0x003e9b87 in strchr () from /lib/libc.so.6 #1 0x00133c53 in krb5_kt_resolve () from /usr/lib/libkrb5.so.3 #2 0x00ddf5a0 in kssl_keytab_is_available () from /lib/libssl.so.5 #3 0x00dcbc4c in ssl3_choose_cipher () from /lib/libssl.so.5 #4 0x00dc73c0 in ssl3_accept () from /lib/libssl.so.5 #5 0x00dd4eba in SSL_accept () from /lib/libssl.so.5 #6 0x080de715 in tls_accept (c=0xb60ff6a0) at tls/tls_server.c:152 #7 0x080df55c in tls_fix_read_conn (c=0xb60ff6a0) at tls/tls_server.c:684 #8 0x0809ab18 in tcp_read_req (con=0xb60ff6a0, bytes_read=0xbfe808a8) at tcp_read.c:411 #9 0x0809ae97 in handle_io (fm=0x8149c7c, idx=-1) at tcp_read.c:772 #10 0x0809c2e3 in io_wait_loop_epoll (h=0x810e580, t=Variable "t" is not available. ) at io_wait.h:722 #11 0x0809c699 in tcp_receive_loop (unix_sock=18) at tcp_read.c:878 #12 0x08092099 in tcp_init_children (chd_rank=0x8109234) at tcp_main.c:1729 #13 0x0806c71e in main_loop () at main.c:1003 #14 0x0806e355 in main (argc=1, argv=0xbfe80b54) at main.c:1472
Thanks again, -Mika
Hi Mika,
thanks for report - I will take a look on it ASAP. What version on libssl and openser are yo using?
regards, bogdan
mika.saari@wipsl.com wrote:
Hi,
Not sure if this help, but here is the backtrace of the crash. The openser dumps 2 core files same time, here are backtraces of both.
First core file: (gdb) bt #0 0x001a1464 in OPENSSL_cleanse () from /lib/libcrypto.so.5 #1 0x00ddf2c5 in kssl_ctx_free () from /lib/libssl.so.5 #2 0x00dd503e in SSL_free () from /lib/libssl.so.5 #3 0x080dee26 in tls_tcpconn_clean (c=0xb60ff6a0) at tls/tls_server.c:472 #4 0x080924b0 in _tcpconn_rm (c=0xb60ff6a0) at tcp_main.c:520 #5 0x08092f88 in destroy_tcp () at tcp_main.c:1410 #6 0x0806ad52 in cleanup (show_status=1) at main.c:362 #7 0x0806bdc6 in handle_sigs () at main.c:517 #8 0x0806c6d7 in main_loop () at main.c:1059 #9 0x0806e355 in main (argc=1, argv=0xbfe80b54) at main.c:1472
Second core file: (gdb) bt #0 0x003e9b87 in strchr () from /lib/libc.so.6 #1 0x00133c53 in krb5_kt_resolve () from /usr/lib/libkrb5.so.3 #2 0x00ddf5a0 in kssl_keytab_is_available () from /lib/libssl.so.5 #3 0x00dcbc4c in ssl3_choose_cipher () from /lib/libssl.so.5 #4 0x00dc73c0 in ssl3_accept () from /lib/libssl.so.5 #5 0x00dd4eba in SSL_accept () from /lib/libssl.so.5 #6 0x080de715 in tls_accept (c=0xb60ff6a0) at tls/tls_server.c:152 #7 0x080df55c in tls_fix_read_conn (c=0xb60ff6a0) at tls/tls_server.c:684 #8 0x0809ab18 in tcp_read_req (con=0xb60ff6a0, bytes_read=0xbfe808a8) at tcp_read.c:411 #9 0x0809ae97 in handle_io (fm=0x8149c7c, idx=-1) at tcp_read.c:772 #10 0x0809c2e3 in io_wait_loop_epoll (h=0x810e580, t=Variable "t" is not available. ) at io_wait.h:722 #11 0x0809c699 in tcp_receive_loop (unix_sock=18) at tcp_read.c:878 #12 0x08092099 in tcp_init_children (chd_rank=0x8109234) at tcp_main.c:1729 #13 0x0806c71e in main_loop () at main.c:1003 #14 0x0806e355 in main (argc=1, argv=0xbfe80b54) at main.c:1472
Thanks again, -Mika
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi,
thanks for report - I will take a look on it ASAP. What version on libssl and openser are yo using?
The libssl is openssl-0.9.7f and OpenSER is latest CVS from today (31-March-2006). I downloaded the CVS and compiled it using TLS=1.
I also tested OpenSER 1.0.1 release after CVS test, but got same crash.
Thanks, -Mika