C++ App crashes regularly with Segmentation fault.
Hi
we have a C++ App which crashes regularly.
a Snippet of stack trace output is following:
01-01 23:02:41.690 dumping stack trace from core dump /var/log/core_dumps/LineSelect/LineSelect.core.dump (current build:130005)
[New LWP 10185]
[New LWP 10192]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/apps/LineSelect/LineSelect --manager=/var/run/manager/manager --service-id=lin'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000479afe in PostgreSQLDatabase::ReadResult() ()
[Current thread is 1 (Thread 0x7f0797d3d100 (LWP 10185))]
Thread 2 (Thread 0x7f0797d39700 (LWP 10192)):
#0 0x00007f07987ea77c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00000000004c5603 in DnsThread::ThreadFunction() ()
#2 0x00000000004c481a in __dns_thread_main(void*) ()
#3 0x00007f07987e3f3d in start_thread () from /lib64/libpthread.so.0
#4 0x00007f0797e7a9af in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7f0797d3d100 (LWP 10185)):
#0 0x0000000000479afe in PostgreSQLDatabase::ReadResult() ()
#1 0x000000000047a3b0 in non-virtual thunk to PostgreSQLDatabase::IoContextNotify(bool, bool) ()
#2 0x000000000045e597 in IoMux::Run() ()
#3 0x0000000000409742 in main ()
I can send complete Logoutput if needed.
Please tell me how can I Fix these typ of errors.
Best Regards
Iqbal