sometimes fbtracemgr segfaults when ending with ctrl+c ------------------------------------------------------
Key: CORE-3487 URL: http://tracker.firebirdsql.org/browse/CORE-3487 Project: Firebird Core Issue Type: Bug Components: Engine Affects Versions: 2.5.1 Environment: sles11, classic firebird, snapshot build 26275 Reporter: Paulius Pazera Priority: Minor make one connection with isql, do nothing in it, then start fbtracemgs and ctrl+c it until you get segmentation fault: aspdb1:/tmp # /opt/fb25/bin/fbtracemgr -se localhost/3055:service_mgr -user sysdba -password masterkey -config /opt/fb25/fbtrace.conf -start Trace session ID 2 started ^Caspdb1:/tmp # /opt/fb25/bin/fbtracemgr -se localhost/3055:service_mgr -user sysdba -password masterkey -config /opt/fb25/fbtrace.conf -start Trace session ID 3 started ^Caspdb1:/tmp # /opt/fb25/bin/fbtracemgr -se localhost/3055:service_mgr -user sysdba -password masterkey -config /opt/fb25/fbtrace.conf -start ^CSegmentation fault (core dumped) call stack was: [New Thread 2008] Core was generated by `/opt/fb25/bin/fbtracemgr -se localhost/3055:service_mgr -user sysdba -password'. Program terminated with signal 11, Segmentation fault. #0 gds__log (text=0x7f08a24c1d18 "INET/inet_error: %s errno = %d") at ../src/include/../common/classes/alloc.h:408 408 ((MemoryBlock*) ((char*) block - MEM_ALIGN(sizeof(MemoryBlock))))->mbk_pool->deallocate(block); (gdb) bt #0 gds__log (text=0x7f08a24c1d18 "INET/inet_error: %s errno = %d") at ../src/include/../common/classes/alloc.h:408 #1 0x00007f08a235b0c8 in inet_error (port=0x7f08a2991d00, function=0x7f08a298d8b8 <Address 0x7f08a298d8b8 out of bounds>, operation=335544726, status=6433568) at ../src/remote/inet.cpp:2727 #2 0x00007f08a235c096 in packet_receive (port=0x7f08a2991d00, buffer=0x7f08a298dc18 <Address 0x7f08a298dc18 out of bounds>, buffer_length=<value optimized out>, length=0x7fffafe80e26) at ../src/remote/inet.cpp:3150 #3 0x00007f08a235c535 in inet_getbytes (xdrs=0x7f08a2991df0, buff=0x7fffafe80e74 "", count=<value optimized out>) at ../src/remote/inet.cpp:2851 #4 0x00007f08a235ac0c in inet_getlong (xdrs=0x7f08a128ca00, lp=0x7fffafe80ea4) at ../src/remote/inet.cpp:2667 #5 0x00007f08a236500a in xdr_enum (xdrs=0x7f08a128ca00, ip=0x7f08a2996338) at ../src/remote/xdr.cpp:340 #6 0x00007f08a2361eaa in xdr_protocol (xdrs=0x7f08a128ca00, p=0x7f08a298d8b8) at ../src/remote/protocol.cpp:271 #7 0x00007f08a235acab in receive (main_port=0x7f08a2991d00, packet=0x7f08a2996338) at ../src/remote/inet.cpp:2076 #8 0x00007f08a234f44c in receive_packet_noqueue (port=0x7f08a2991d00, packet=0x7f08a2996338, user_status=<value optimized out>) at ../src/remote/interface.cpp:6207 #9 0x00007f08a234f966 in receive_response (rdb=0x7f08a2996300, packet=0x7f08a2996338) at ../src/remote/interface.cpp:6094 #10 0x00007f08a2350670 in info (user_status=0x7fffafe85400, rdb=0x7f08a2996300, operation=<value optimized out>, object=<value optimized out>, incarnation=<value optimized out>, item_length=<value optimized out>, items=0x7fffafe854a0 "@\004", recv_item_length=2, recv_items=0x4177c9 "?\001", buffer_length=16383, buffer=0x7fffafe81400 "") at ../src/remote/interface.cpp:5718 #11 0x00007f08a2358445 in REM_service_query (user_status=0x7fffafe85400, svc_handle=<value optimized out>, item_length=8, items=0x7fffafe854a0 "@\004", recv_item_length=<value optimized out>, recv_items=0x4177c9 "?\001", buffer_length=<value optimized out>, buffer=0x7fffafe81400 "") at ../src/remote/interface.cpp:4024 #12 0x00007f08a20da091 in isc_service_query (user_status=<value optimized out>, handle=0x7fffafe86108, send_item_length=11040, send_items=0x7fffafe854a0 "@\004", recv_item_length=2, recv_items=0x4177c9 "?\001", buffer_length=<value optimized out>, buffer=0x7fffafe81400 "") at ../src/jrd/why.cpp:4726 #13 0x0000000000403ede in Firebird::TraceSvcUtil::runService (this=<value optimized out>, spbSize=<value optimized out>, spb=<value optimized out>) at ../src/utilities/fbtracemgr/traceMgrMain.cpp:245 #14 0x0000000000404bdd in Firebird::TraceSvcUtil::startSession (this=0x7fffafe86100, session=@0x7fffafe85cc0) at ../src/utilities/fbtracemgr/traceMgrMain.cpp:181 #15 0x000000000040fc0d in Firebird::fbtrace (uSvc=0x7f08a29882e0, traceSvc=0x7fffafe86100) at ../src/jrd/trace/TraceCmdLine.cpp:459 #16 0x0000000000403cce in main (argc=<value optimized out>, argv=<value optimized out>) at ../src/utilities/fbtracemgr/traceMgrMain.cpp:346 (gdb) quit -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel