Running test C_DSQL_RI_TAB_PRIM, the server crashed in an assert.

0x00007ffff6235d05 in raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
64    ../nptl/sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório não
encontrado.
    in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt
#0  0x00007ffff6235d05 in raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007ffff6239ab6 in abort () at abort.c:92
#2  0x00007ffff45b0e7e in fb_assert_impl (msg=0x7ffff4ae63b9 "lockCount
== 0", file=0x7ffff4ae53e0
"/home/asfernandes/fb/dev/trunk.git/src/include/../common/classes/locks.h",
line=217, do_abort=true)
    at
/home/asfernandes/fb/dev/trunk.git/src/include/../common/gdsassert.h:48
#3  0x00007ffff45f7b4e in ~Mutex (this=0x7fffec5a10a8) at
/home/asfernandes/fb/dev/trunk.git/src/include/../common/classes/locks.h:217
#4  0x00007ffff45f7ae5 in ~Mutex (this=0x7fffec5a10a8) at
/home/asfernandes/fb/dev/trunk.git/src/include/../common/classes/locks.h:216
#5  0x00007ffff45f7a41 in ~SyncObject (this=0x7fffec5a1048) at
/home/asfernandes/fb/dev/trunk.git/src/include/../common/classes/SyncObject.h:65
#6  0x00007ffff45f78e5 in ~SyncObject (this=0x7fffec5a1048) at
/home/asfernandes/fb/dev/trunk.git/src/include/../common/classes/SyncObject.h:64
#7  0x00007ffff4648a68 in ~Database (this=0x7fffec5a1040) at
/home/asfernandes/fb/dev/trunk.git/src/jrd/Database.cpp:117
#8  0x00007ffff46e9acd in destroy (toDelete=0x7fffec5a1040) at
/home/asfernandes/fb/dev/trunk.git/src/jrd/../jrd/Database.h:351
#9  0x00007ffff46da64f in JRD_shutdown_database (dbb=0x7fffec5a1040,
flags=3) at /home/asfernandes/fb/dev/trunk.git/src/jrd/jrd.cpp:6468
#10 0x00007ffff46d834d in purge_attachment (tdbb=0x7fffef547208,
jAtt=0x7fffeb54a3e8, flags=2) at
/home/asfernandes/fb/dev/trunk.git/src/jrd/jrd.cpp:6849
#11 0x00007ffff46c98b5 in freeEngineData (this=0x7fffeb54a3e8,
user_status=0x7fffef547558) at
/home/asfernandes/fb/dev/trunk.git/src/jrd/jrd.cpp:2802
#12 0x00007ffff46d77e5 in detach (this=0x7fffeb54a3e8,
user_status=0x7fffef547558) at
/home/asfernandes/fb/dev/trunk.git/src/jrd/jrd.cpp:2759
#13 0x00007ffff7841e3b in detach (this=0x7ffff7feccd0,
status=0x7fffef547558) at
/home/asfernandes/fb/dev/trunk.git/src/yvalve/why.cpp:4978
#14 0x0000000000426c96 in disconnect (this=0x7fffef64f3f0,
sendL=0x7ffff7fd02d8, receiveL=0x7ffff7fd07a8) at
/home/asfernandes/fb/dev/trunk.git/src/remote/server/server.cpp:2669
#15 0x0000000000424875 in process_packet (port=0x7fffef64f3f0,
sendL=0x7ffff7fd02d8, receive=0x7ffff7fd07a8, result=0x7fffef547ca0) at
/home/asfernandes/fb/dev/trunk.git/src/remote/server/server.cpp:4195
#16 0x0000000000431d85 in loopThread () at
/home/asfernandes/fb/dev/trunk.git/src/remote/server/server.cpp:5714
#17 0x000000000045e719 in run (this=0x7fffef547d90) at
/home/asfernandes/fb/dev/trunk.git/src/common/ThreadStart.cpp:73
#18 0x000000000045e54e in threadStart (arg=0x7ffff7fd0048) at
/home/asfernandes/fb/dev/trunk.git/src/common/ThreadStart.cpp:88
#19 0x00007ffff659cd8c in start_thread (arg=0x7fffef548700) at
pthread_create.c:304
#20 0x00007ffff62e804d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#21 0x0000000000000000 in ?? ()

(gdb) frame 3
#3  0x00007ffff45f7b4e in ~Mutex (this=0x7fffec5a10a8) at
/home/asfernandes/fb/dev/trunk.git/src/include/../common/classes/locks.h:217
217            fb_assert(lockCount == 0);

Note in the moment of the print, the assert satisfies. Probably some
race condition happened:

(gdb) print this->lockCount
$1 = 0

I then restarted and ran the RI series again and it passed.

My tree is not the latest, it's in "Fixed issues noticed by Claudio"
commit with unrelated changes.


Adriano


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to