Subject RE: [firebird-support] FBServer.exe terminates unexpectedly Code: 335544741, Error: connection lost to database
Author Saravana Pitchaimuthu

Hi Helen,

    Thanks for your suggestions, I have collected dumps of FBServer.exe while it crashed, doin some initial analysis I found that the bug check is related to access violation.

 

Any idea on how do I proceed with resolving this issue?

 

 

FAULTING_IP:

fbserver!internal_post+2c [\tools\firebird_2.5.3\src\jrd\err.cpp @ 331]

0044332c 8b582c          mov     ebx,dword ptr [eax+2Ch]

 

EXCEPTION_RECORD:  ffffffff -- (.exr 0xffffffffffffffff)

ExceptionAddress: 0044332c (fbserver!internal_post+0x0000002c)

   ExceptionCode: c0000005 (Access violation)

  ExceptionFlags: 00000000

NumberParameters: 2

   Parameter[0]: 00000000

   Parameter[1]: 0000002c

Attempt to read from address 0000002c

 

CONTEXT:  00000000 -- (.cxr 0x0;r)

eax=00000000 ebx=00000000 ecx=00000024 edx=0000000b esi=00000454 edi=03dae688

eip=76f0f8d1 esp=03dae640 ebp=03dae6ac iopl=0         nv up ei pl zr na pe nc

cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000246

ntdll!NtWaitForSingleObject+0x15:

76f0f8d1 83c404          add     esp,4

 

PROCESS_NAME:  fbserver.exe

 

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.

 

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.

 

EXCEPTION_PARAMETER1:  00000000

 

EXCEPTION_PARAMETER2:  0000002c

 

READ_ADDRESS:  0000002c

 

FOLLOWUP_IP:

fbserver!internal_post+2c [\tools\firebird_2.5.3\src\jrd\err.cpp @ 331]

0044332c 8b582c          mov     ebx,dword ptr [eax+2Ch]

 

APP:  fbserver.exe

 

ANALYSIS_VERSION: 6.3.9600.16384 (debuggers(dbg).130821-1623) x86fre

 

FAULTING_THREAD:  000023d0

 

BUGCHECK_STR:  APPLICATION_FAULT_NULL_CLASS_PTR_READ_AFTER_CALL_BEFORE_WRITE

 

PRIMARY_PROBLEM_CLASS:  NULL_CLASS_PTR_READ_AFTER_CALL_BEFORE_WRITE

 

DEFAULT_BUCKET_ID:  NULL_CLASS_PTR_READ_AFTER_CALL_BEFORE_WRITE

 

LAST_CONTROL_TRANSFER:  from 004436e7 to 0044332c

 

STACK_TEXT: 

03dafc60 004436e7 03dafc70 03dafc70 00000001 fbserver!internal_post+0x2c

03dafcbc 005706a7 03dafcec 515897a8 00c7f8fc fbserver!ERR_post_nothrow+0x27

03dafd84 00571ed3 03dafe74 00000000 515896fc fbserver!csma_delete_file+0x197

03daff04 0057200c 00c7f838 00000021 00445690 fbserver!csma_common_main+0x393

03daff10 00445690 00c7f838 00c60254 00443c78 fbserver!main_csma_delete+0xc

03daff1c 00443c78 51589420 00000000 00000000 fbserver!ThreadPriorityScheduler::run+0x10

03daff44 73fe3433 00c60254 51a37148 00000000 fbserver!`anonymous namespace'::threadStart+0x48

03daff7c 73fe34c7 00000000 03daff94 7460338a msvcr90!_endthreadex+0x44

03daff88 7460338a 01532738 03daffd4 76f297f2 msvcr90!_endthreadex+0xd8

03daff94 76f297f2 01532738 67e184bb 00000000 kernel32!BaseThreadInitThunk+0xe

03daffd4 76f297c5 73fe345e 01532738 ffffffff ntdll!__RtlUserThreadStart+0x70

03daffec 00000000 73fe345e 01532738 00000000 ntdll!_RtlUserThreadStart+0x1b

 

 

FAULTING_SOURCE_LINE:  \tools\firebird_2.5.3\src\jrd\err.cpp

 

FAULTING_SOURCE_FILE:  \tools\firebird_2.5.3\src\jrd\err.cpp

 

FAULTING_SOURCE_LINE_NUMBER:  331

 

FAULTING_SOURCE_CODE: 

No source found for \tools\firebird_2.5.3\src\jrd\err.cpp'

 

 

SYMBOL_STACK_INDEX:  0

 

SYMBOL_NAME:  fbserver!internal_post+2c

 

FOLLOWUP_NAME:  MachineOwner

 

MODULE_NAME: fbserver

 

IMAGE_NAME:  fbserver.exe

 

DEBUG_FLR_IMAGE_TIMESTAMP:  54f8e7fe

 

STACK_COMMAND:  ~14s; .ecxr ; kb

 

FAILURE_BUCKET_ID:  NULL_CLASS_PTR_READ_AFTER_CALL_BEFORE_WRITE_c0000005_fbserver.exe!internal_post

 

BUCKET_ID:  APPLICATION_FAULT_NULL_CLASS_PTR_READ_AFTER_CALL_BEFORE_WRITE_fbserver!internal_post+2c

 

ANALYSIS_SOURCE:  UM

 

FAILURE_ID_HASH_STRING:  um:null_class_ptr_read_after_call_before_write_c0000005_fbserver.exe!internal_post

 

FAILURE_ID_HASH:  {ab612c58-ba9d-8aa0-7cf0-7963985a4027}

 

Followup: MachineOwner

---------

 

Thanks,

Saravana

 

From: firebird-support@yahoogroups.com [mailto:firebird-support@yahoogroups.com]
Sent: Tuesday, September 15, 2015 8:12 PM
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] FBServer.exe terminates unexpectedly Code: 335544741, Error: connection lost to database

 

 

At 09:55 a.m. 16/09/2015, Saravana Pitchaimuthu saravana.pitchaimuthu@... [firebir wrote:

>Hi,
> FBServer.exe terminates unexpectedly after few hours of operation with the error mentioned above. Any idea on how to proceed with debugging the issue or any resolutions available?
>
>Version: Firebird 2.5.3 Security Update 1
>Model: SuperServer
>OS: Windows Server 2008 R2
>Language and data caccess interface: C++, fbclient.dll
>

The first step would be to inspect the firebird.log and see whether anything was going on prior to the crash. Of course you won't see anything if this "crash" wasn't a crash but someone rebooting the server or stopping the service. (Cleaning staff coming in at roughly the same time every day and pulling out the server plug so they can plug in their vacuum cleaner? Not a joke - it really happens!)

Another thing that can cause Firebird to crash is a bad UDF. That won't usually cause a log message because it may have crashed the server before it had a chance to generate one.

You might like to have a look at the Bug Fixes section of the Firebird 2.5.4 release notes, under "Server crashes" in case something there rings a bell. You can read them on-line: http://www.firebirdsql.org/file/documentation/release_notes/html/rlsnotes254.html#bug-254-crashes

Or you might simply want to do the easy thing and replace your installation with v.2.5.4.

Helen