Server crashes while unwinding changes in an autonomous transaction -------------------------------------------------------------------
Key: CORE-3979 URL: http://tracker.firebirdsql.org/browse/CORE-3979 Project: Firebird Core Issue Type: Bug Components: Engine Affects Versions: 2.5.2 Reporter: Dmitry Yemanov A part of the backtrace: #1 pop (this=0x2aab64991a48, tdbb=0x2aab0897ea40, request=0x2aab60059bd0) at ../src/dsql/../dsql/../dsql/../dsql/../jrd/../jrd/../jrd/../common/classes/stack.h:146 tmp = <value optimized out> #2 Jrd::InAutonomousTransactionNode::execute (this=0x2aab64991a48, tdbb=0x2aab0897ea40, request=0x2aab60059bd0) at ../src/dsql/StmtNodes.cpp:265 savNumber = 0x2aab6005eb70 transaction = 0x2aab76e4dca8 #3 0x00002aca82bdc936 in EXE_looper (tdbb=0x2aab0897ea40, request=0x2aab60059bd0, in_node=0x2aab6498fd18) at ../src/jrd/exe.cpp:2798 which_erase_trig = 0 which_sto_trig = 0 which_mod_trig = 0 top_node = 0x0 transaction = 0x2aab76e4dca8 dbb = 0x2aaaf7c9edf8 old_pool = 0x2aaaf80b52c0 context = {<Firebird::ContextPoolHolder> = { savedPool = 0x2aaaf80b52c0}, savedThreadData = 0x2aab0897ea40, savedPool = 0x2aaaf80b52c0} old_request = 0x0 old_transaction = 0x2aab76e4dca8 save_point_number = 66 node = 0x2aab60059df0 error_pending = true catch_disabled = true result = 0x2aab0897ea40 #4 0x00002aca82be0ee0 in execute_looper (tdbb=0x2aab0897ea40, request=0x2aab60059bd0, transaction=0x2aab76e4dca8, next_state=req_sync) at ../src/jrd/exe.cpp:1410 dbb = 0x2aaaf7c9edf8 A quick look shows that execute(req_unwind) is called twice for the same node and during the second iteration req_auto_trans is already empty, causing a NULL pointer dereference failure. -- 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 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel