Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FB crash because TraceSvcJrd::checkPrivileges can pass NULL in 'alias' [CORE6204] #6449

Closed
firebird-automations opened this issue Dec 11, 2019 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pavel-zotov

// Vlad has asked me to create this ticked with brief description (I've reported him about FB crash that was during fbtest run 07-dec-19).

FB version: 3.0.5.33205
Perhaps crash related to incorrect work of services.
Time of crash (07.12.19 13:20) points that it was during check core_5675.fbt.

Commits: 97131a5

====== Test Details ======

Sent letter to dimitr, hvlad, 16.12.2019 14:56. Waiting for reply.

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Version: 3.0.5 [ 10885 ]

Fix Version: 3.0.5 [ 10885 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

The bug was introduced with patch for CORE5995.

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Part of the call stack

06 kernel32!UnhandledExceptionFilter+0x1fc
07 ntdll!longjmp+0xc2f5
08 ntdll!_C_specific_handler+0x8c
09 ntdll!_chkstk+0x9d
0a ntdll!RtlInitializeResource+0x53a
0b ntdll!KiUserExceptionDispatcher+0x2e
0c engine12!Firebird::makeDynamicStrings(unsigned int length = 0, int64 * dst = 0x00000000`07d1da60, int64 * src = 0x00000000`07d1dc70)+0x75 [e:\snapshots\firebird\src\common\dynamicstrings.cpp @ 70]
0d engine12!Firebird::status_exception::set_status(int64 * new_vector = 0x00000000`07d1da60)+0x6a [e:\snapshots\firebird\src\common\fb_exception.cpp @ 102]
0e engine12!Firebird::status_exception::status_exception(int64 * status_vector = 0x000007fe`e93a7f08)+0x39 [e:\snapshots\firebird\src\common\fb_exception.cpp @ 80]
0f engine12!Firebird::status_exception::raise(class Firebird::Arg::StatusVector * statusVector = 0x000007fe`e91e7ac0)+0x2e [e:\snapshots\firebird\src\common\fb_exception.cpp @ 143]
10 engine12!Firebird::Arg::StatusVector::raise(void)+0x2c [e:\snapshots\firebird\src\common\statusarg.cpp @ 263]
11 engine12!Jrd::mapUser(class Firebird::StringBaseFirebird::StringComparator\ * name = 0x00000000`07d1fd20, class Firebird::StringBaseFirebird::StringComparator\ * trusted_role = 0x00000000`07d1f710, class Firebird::StringBaseFirebird::StringComparator\ * auth_method = 0x00000000`00000000, class Firebird::Array<unsigned char,Firebird::EmptyStorage<unsigned char> > * newAuthBlock = 0x00000000`00000000, class Firebird::Array<unsigned char,Firebird::EmptyStorage<unsigned char> > * authBlock = 0x00000000`07d1fd70, char * alias = 0x00000000`00000000 "", char * db = 0x00000000`00000000 "", char * securityAlias = 0x00000000`05884010, class Firebird::ICryptKeyCallback * cryptCb = 0x00000000`05bab9e0, class Firebird::IAttachment * att = 0x00000000`00000000)+0x1ed9 [e:\snapshots\firebird\src\jrd\mapping.cpp @ 1167]
12 engine12!TraceSvcJrd::checkPrivileges(class Firebird::TraceSession * session = 0x00000000`00000000)+0x1ba [e:\snapshots\firebird\src\jrd\trace\traceservice.cpp @ 367]
13 engine12!TraceSvcJrd::listSessions(void)+0x16c [e:\snapshots\firebird\src\jrd\trace\traceservice.cpp @ 239]
14 engine12!Firebird::fbtrace(class Firebird::UtilSvc * uSvc = 0x00000000`00000000, class Firebird::TraceSvcIntf * traceSvc = 0x00000000`00000000)+0xd69 [e:\snapshots\firebird\src\jrd\trace\tracecmdline.cpp @ 425]
15 engine12!TRACE_main(class Firebird::UtilSvc * arg = 0x000007fe`e91eac58)+0xb6 [e:\snapshots\firebird\src\jrd\trace\traceservice.cpp @ 396]
16 engine12!Jrd::Service::run(void * arg = 0x00000000`06ef69f0)+0x47 [e:\snapshots\firebird\src\jrd\svc.cpp @ 1970]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Deferred

Test Details: Sent letter to dimitr, hvlad, 16.12.2019 14:56. Waiting for reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants