Hi to all, today i got a segfault with general protection error openser 1.2.2 notls under
Linux 2.6.16.27-0.9-smp #1 SMP Tue Feb 13 09:35:18 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux.
It is due to:
May 8 18:29:25 voip /data/openser/sbin/openser[19569]: val2str: Destination buffer too short May 8 18:29:25 voip /data/openser/sbin/openser[19569]: print_values: Error while converting value to string May 8 18:29:25 voip /data/openser/sbin/openser[19569]: ERROR:acc:acc_db_request: Error while inserting to database May 8 18:29:26 voip /data/openser/sbin/openser[19560]: child process 19573 exited by a signal 11 May 8 18:29:27 voip /data/openser/sbin/openser[19560]: core was generated
I examined the core dump and it has been caused from the same thing that happened to me on October 2007 on another installation. I already posted the question to the list without getting any response.
http://lists.openser.org/pipermail/users/2007-October/013796.html
I post now the new gdb trace.
I'm a very beginner using gdb but like very much to know why this is happening.
Core was generated by `/data/openser/sbin/openser'. Program terminated with signal 11, Segmentation fault. #0 0x00002b83e4be4150 in escape_string_for_mysql () from /usr/lib64/ libmysqlclient.so.15 (gdb) bt #0 0x00002b83e4be4150 in escape_string_for_mysql () from /usr/lib64/ libmysqlclient.so.15 #1 0x00002b83e49465d1 in val2str (_c=0x2b83e4de05a0, _v=<value optimized out>, _s=0x2b83e4a48f8d "'33301','','469','','4','','','','102 INVITE','','12.13.14.15','')", _len=0x7fffc67d7804) at val.c:316 #2 0x00002b83e4942952 in db_mysql_print_values (_c=0x6b8768, _b=0x2b83e4a48e0e "'INVITE','5ec34ebc6ad9825','as54a9f138','647f8f41f2ed74cfb28b83633bb8efdb@voip.test.biz ','200','OK','2008-05-08 18:29:25','sip:035123456@voip.test.biz;tag=5ec34ebc6ad9825','sip:031454647@voip "..., _l=65170, _v=<value optimized out>, _n=28) at dbase.c:145 #3 0x00002b83e4943967 in db_mysql_insert (_h=0x6b9018, _k=<value optimized out>, _v=0x2b83e65aa5c0, _n=28) at dbase.c:584 #4 0x00002b83e64956d3 in acc_db_request (rq=0x2b83e6c9dc28) at acc.c: 378 #5 0x00002b83e6497244 in tmcb_func (t=<value optimized out>, type=<value optimized out>, ps=<value optimized out>) at acc_logic.c:376 #6 0x00002b83e52958f1 in run_trans_callbacks (type=128, trans=0x2b83e7673690, req=<value optimized out>, rpl=<value optimized out>, code=<value optimized out>) at t_hooks.c:205 #7 0x00002b83e52a3e76 in relay_reply (t=0x2b83e7673690, p_msg=<value optimized out>, branch=0, msg_status=200, cancel_bitmap=0x7fffc67d7ac8) at t_reply.c:1155 #8 0x00002b83e52a5b0d in reply_received (p_msg=0x6b9138) at t_reply.c: 1388 #9 0x000000000041929e in forward_reply (msg=0x6b9138) at forward.c:489 #10 0x000000000043cbd2 in receive_msg ( buf=0x60e700 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 80.122.12.3;branch=z9hG4bKdd28.b33b4137.0;received=80.122.12.3\r\nVia: SIP/2.0/UDP 20.21.22.23:5060;rport=5060;branch=z9hG4bK31ffac575\r \nRecord-Route: <sip:031454647"..., len=850, rcv_info=0x7fffc67d7b90) at receive.c:195 #11 0x000000000046d45f in udp_rcv_loop () at udp_server.c:451 #12 0x0000000000428dd0 in main_loop () at main.c:834 #13 0x000000000042a899 in main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1393
Thanks in advance to anyone can help me to debug this thing. Bye, Marcello