Server Crashing Lock Issue (bug)

Just fyi, what I’d call a bug and other might call a feature (can be avoided by proper coding)…

If you mistakenly pass an uninitialized array to document.lock(mylockarray), it will crash the server (7.0.3, win2k, don’t know about others)

no-fail server crashing code:

set db=session.currentdatabase

dim mylocklist()

'forget to initalize this array…

set doc=db.getdocbyUNID(anyvalidunid)

call doc.lock(mylocklist)

call doc.save(false,false)

doc.unlock

Subject: Server Crashing Lock Issue (bug)

Hi,

do you have the FATAL THREAD with the few lines under it?

For example:

############################################################

FATAL THREAD 1/2 [ domdsm:107a8:67076]

FP=0x0012a34c, PC=0x60069a86, SP=0x0012a2f0, stksize=92

EAX=0x01a3088c, EBX=0x01a48650, ECX=0x0000bffe, EDX=0x01a325e6

ESI=0x00004000, EDI=0x0032ff78, CS=0x0000001b, SS=0x00000023

DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010206

Exception code: c0000005 (ACCESS_VIOLATION)

############################################################

@[ 1] 0x60069a86 nnotes._fdDelete@4+118 (4000,12a368,608770ef,4000)

@[ 2] 0x60069a0c nnotes._OSFileClose@4+12 (4000,12adc0,12a380,60872ea7)

@[ 3] 0x608770ef nnotes._sqloclose+15 (4000,12b59c,5010,0)

@[ 4] 0x60872ea7 nnotes._sqlpgclf+71 (12adc0,1aaa2cb,70,1aaa2f3)

@[ 5] 0x60885458 nnotes._sqlpgfdl+616 (12b9a4,1aaa2cb,41,12be44)

@[ 6] 0x60876a6f nnotes._sqlpgcdl+927 (12bf44,12b9a4,0,12be44).

Date

Topic

Frequently asked question - How to analyze Notes/Domino NSDs? (Jean-Yves Riverin)

JYR

Subject: RE: Server Crashing Lock Issue (bug)

Sure. Below:

############################################################

FATAL THREAD 1/20 [ nAMgr: 0cd4: 0cd0]

FP=0x0012dfa0, PC=0x60176b81, SP=0x0012d82c

stkbase=00130000, total stksize=69632, used stksize=10196

EAX=0x00fc0648, EBX=0x00000000, ECX=0x00980000, EDX=0x00980000

ESI=0x0012de34, EDI=0x00ee9250, CS=0x0000001b, SS=0x00000023

DS=0x00000023, ES=0x00000023, FS=0x00000038, GS=0x00000000 Flags=0x00010206

Exception code: c0000005 (ACCESS_VIOLATION)

############################################################

@[ 1] 0x60176b81 nnotes.Panic@4+417 (60b0595e)

@[ 2] 0x6000292e nnotes.LockHandle@12+222 (0,12dfc8,12dfd4)

@[ 3] 0x600027b6 nnotes.OSLockObject@4+22 (60d5a480)

@[ 4] 0x63222f3e nlsxbe.ANotes::ANLockNote+174 (12e508)

@[ 5] 0x6322dbbe nlsxbe.ANNote::ANNLockNote+94 (12e508)

@[ 6] 0x6320655d nlsxbe.ANNote::ANDispatchMethod+525 (12e508)

@[ 7] 0x6320337b nlsxbe.ANCLASSCONTROL@16+1867 (9775c0,109,12e4bc,12e508)

@[ 8] 0x63203699 nlsxbe._tag_NotesADTControl::ClassControl+25 (ee927c,9775c0,109,12e4bc)

@[ 9] 0x6004ed2d nnotes.LSsInstance::AdtCallBack+269 (9775c0,63202c30,109,5a33cb8)

@[10] 0x600648cd nnotes.LScObjCli::ProdMethodCall+61 (5a33c78,ef7,5ab4328,10003)

@[11] 0x600647d2 nnotes.LSsThread::AdtDoProdCallout+162 (5aa0408,5a33c78,10003,5ab42dc)

@[12] 0x600646ed nnotes.LSsThread::AdtCallMethod+45 (4,5ab9550,1,2)

@[13] 0x60021d69 nnotes.LSsThread::NRun+5705 (5aa0408,0,475c214,0)