Issue Details (XML | Word | Printable)

Key: CORE-4616
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dmitry Yemanov
Reporter: Yurij
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Server crashes while accessing context variables concurrently

Created: 21/Nov/14 10:27 AM   Updated: 23/Sep/15 12:20 PM
Component/s: Engine
Affects Version/s: 2.5.2, 2.5.2 Update 1, 2.5.3
Fix Version/s: 2.5.4

QA Status: Not enough information
Test Details: Can`t understand "pseudo-language" from starting post. Is it possible to write sequence of actions in each thread more simply ?


 Description  « Hide
Crash happens when one thread executes RDB$SET_CONTEXT:

fb_inet_server!set_context
fb_inet_server!CALL_UDF<long>
fb_inet_server!invoke
fb_inet_server!FUN_evaluate
fb_inet_server!EVL_expr
fb_inet_server!EXE_assignment
fb_inet_server!EXE_looper
fb_inet_server!looper_seh
fb_inet_server!execute_looper
fb_inet_server!EXE_start
fb_inet_server!execute_triggers
fb_inet_server!EXE_execute_db_triggers
fb_inet_server!JRD_start_multiple
fb_inet_server!jrd8_start_transaction

and another one retrieves the list of context variables due to the MON$ table request:

fb_inet_server!Jrd::DatabaseSnapshot::putContextVars+0xc3
fb_inet_server!Jrd::DatabaseSnapshot::dumpData+0x128
fb_inet_server!Jrd::DatabaseSnapshot::blockingAst+0x9c
fb_inet_server!Jrd::LockManager::blocking_action+0x134
fb_inet_server!Jrd::LockManager::signal_owner+0x37
fb_inet_server!Jrd::LockManager::post_blockage+0x1b4
fb_inet_server!Jrd::LockManager::wait_for_request+0x3d9
fb_inet_server!Jrd::LockManager::grant_or_que+0x8c
fb_inet_server!Jrd::LockManager::enqueue+0x20e
fb_inet_server!enqueue+0x51
fb_inet_server!LCK_lock+0x8f
fb_inet_server!LCK_lock_opt+0x36
fb_inet_server!lock_buffer+0xdb
fb_inet_server!CCH_fetch_lock+0x132
fb_inet_server!CCH_fetch+0x2d
fb_inet_server!DPM_gen_id+0x152

Bug is caused by the lack of proper synchronization inside RDB$SET_CONTEXT. v2.1 and v3 are not affected.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.