Subject Re: [firebird-support] How to detect the source of a "firebird terminated abnormally (-1)" error?
Author Gabor Boros
2018. 06. 01. 14:33 keltezéssel, Gabor Boros mlnglsts@...
[firebird-support] írta:
> Switched on BugcheckAbort and later found a core file in /tmp. See the
> gdb output below. Any idea?


An other bt below. Is it say something to anybody?

Reading symbols from /opt/firebird/bin/.debug/firebird.debug...done.

warning: core file may not match specified executable file.



[New LWP 3640]



[New LWP 3642]



[New LWP 3528]



[New LWP 3529]



[New LWP 3643]



[New LWP 3530]



[Thread debugging using libthread_db enabled]



Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".



Core was generated by `/opt/firebird/bin/firebird'.



Program terminated with signal SIGSEGV, Segmentation fault.



#0 0x00007f0b295a8880 in ?? ()



(gdb) thread apply all bt







Thread 6 (Thread 0x7f0b31456700 (LWP 3530)):



#0 0x00007f0b3246f761 in sem_timedwait () from
/lib/x86_64-linux-gnu/libpthread.so.0



#1 0x00007f0b33a331b1 in Firebird::SignalSafeSemaphore::tryEnter
(this=0x7f0b33ed91f0, seconds=<optimized out>, milliseconds=<optimized
out>) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/classes/semaphore.cpp:202

#2 0x00007f0b3396661b in Why::(anonymous
namespace)::TimerEntry::timeThread () at
/home/fbadmin/builds/64/fb3.0/firebird/src/yvalve/MasterImplementation.cpp:299
#3 0x00007f0b33a207f1 in run (this=<synthetic pointer>) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/ThreadStart.cpp:78
#4 (anonymous namespace)::threadStart (arg=0x7f0b33ede210) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/ThreadStart.cpp:93
#5 0x00007f0b32469184 in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#6 0x00007f0b3219603d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 5 (Thread 0x7f0b2a004700 (LWP 3643)):
#0 0x00007f0b3246f761 in sem_timedwait () from
/lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007f0b307ffc31 in Firebird::SignalSafeSemaphore::tryEnter
(this=this@entry=0x7f0b33e7af38, seconds=seconds@entry=10,
milliseconds=10000, milliseconds@entry=0) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/classes/semaphore.cpp:202
#2 0x00007f0b305a5cc9 in Jrd::Database::garbage_collector
(dbb=0x7f0b33e7a7c0) at
/home/fbadmin/builds/64/fb3.0/firebird/src/jrd/vio.cpp:4992
#3 0x00007f0b305b06d3 in internalRun (this=<optimized out>) at
/home/fbadmin/builds/64/fb3.0/firebird/src/include/../common/ThreadStart.h:158
#4 ThreadFinishSync<Jrd::Database*>::internalRun
(arg=arg@entry=0x7f0b33e7af78) at
/home/fbadmin/builds/64/fb3.0/firebird/src/include/../common/ThreadStart.h:150
#5 0x00007f0b307e5e71 in run (this=<synthetic pointer>) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/ThreadStart.cpp:78
#6 (anonymous namespace)::threadStart (arg=0x7f0b33e40ce0) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/ThreadStart.cpp:93
#7 0x00007f0b32469184 in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00007f0b3219603d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7f0b31c57700 (LWP 3529)):
#0 0x00007f0b3246f670 in sem_wait () from
/lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007f0b33a33098 in Firebird::SignalSafeSemaphore::enter
(this=0x7f0b33edb860) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/classes/semaphore.cpp:163
#2 0x00007f0b339a1925 in (anonymous namespace)::shutdownThread () at
/home/fbadmin/builds/64/fb3.0/firebird/src/yvalve/why.cpp:754
#3 0x00007f0b33a207f1 in run (this=<synthetic pointer>) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/ThreadStart.cpp:78
#4 (anonymous namespace)::threadStart (arg=0x7f0b33edb898) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/ThreadStart.cpp:93
#5 0x00007f0b32469184 in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#6 0x00007f0b3219603d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7f0b33ecf7c0 (LWP 3528)):
#0 0x00007f0b32188c9d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00000000004096d2 in select (timeout=<synthetic pointer>,
this=0x7f0b33eae110) at
/home/fbadmin/builds/64/fb3.0/firebird/src/remote/inet.cpp:377
#2 select_wait (selct=0x7f0b33eae110, main_port=0x7f0b33ea26c0) at
/home/fbadmin/builds/64/fb3.0/firebird/src/remote/inet.cpp:2243
#3 select_multi (main_port=0x7f0b33ea26c0, buffer=0x7f0b33ea6d40 "",
bufsize=8192, length=0x7fffc5856ea0, port=...) at
/home/fbadmin/builds/64/fb3.0/firebird/src/remote/inet.cpp:2021
#4 0x000000000042bfc1 in SRVR_multi_thread
(main_port=main_port@entry=0x7f0b33ea26c0, flags=flags@entry=2) at
/home/fbadmin/builds/64/fb3.0/firebird/src/remote/server/server.cpp:1543
#5 0x0000000000405a19 in main (argc=<optimized out>, argv=<optimized
out>) at
/home/fbadmin/builds/64/fb3.0/firebird/src/remote/server/os/posix/inet_server.cpp:423

Thread 2 (Thread 0x7f0b2a936700 (LWP 3642)):
#0 0x00007f0b3246f761 in sem_timedwait () from
/lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007f0b307ffc31 in Firebird::SignalSafeSemaphore::tryEnter
(this=this@entry=0x7f0b33d540f8, seconds=seconds@entry=10,
milliseconds=10000, milliseconds@entry=0) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/classes/semaphore.cpp:202
#2 0x00007f0b3044eea0 in Jrd::BufferControl::cache_writer
(bcb=0x7f0b33d53ef0) at
/home/fbadmin/builds/64/fb3.0/firebird/src/jrd/cch.cpp:2935
#3 0x00007f0b30451693 in internalRun (this=<optimized out>) at
/home/fbadmin/builds/64/fb3.0/firebird/src/include/../common/ThreadStart.h:158
#4 ThreadFinishSync<Jrd::BufferControl*>::internalRun
(arg=arg@entry=0x7f0b33d54138) at
/home/fbadmin/builds/64/fb3.0/firebird/src/include/../common/ThreadStart.h:150
#5 0x00007f0b307e5e71 in run (this=<synthetic pointer>) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/ThreadStart.cpp:78
#6 (anonymous namespace)::threadStart (arg=0x7f0b33e40ce0) at
/home/fbadmin/builds/64/fb3.0/firebird/src/common/ThreadStart.cpp:93
#7 0x00007f0b32469184 in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00007f0b3219603d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f0b2bcb9700 (LWP 3640)):
#0 0x00007f0b295a8880 in ?? ()
#1 0x00007f0b32468f82 in __nptl_deallocate_tsd () from
/lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007f0b32469197 in start_thread () from
/lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007f0b3219603d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Gabor