genivi-ipc@lists.genivi.org

Development list for inter process communication (IPC) related topics

View all threads

Core Dump in CommonAPI DBus

DH
Devrukhkar, Hrishikesh (H.)
Tue, Jun 25, 2019 7:40 AM

Hello,

We found a core dump in CommonAPI D-bus wrapper. This issue has been occurring sporadically hence could not get any more logs. From the trace logs we could not determine the root cause behind this.
Please help us determine the root cause. Or provide information if this kind of issue has been reported before and solution if any.

Following are the details.

Version Information :
CommonAPI                    3.1.12
CommonApi Dbus          3.1.12
Dbus                                      3.19.7

Back Trace :

warning: Could not load shared library symbols for linux-vdso.so.1.

Do you need "set solib-search-path" or "set sysroot"?

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `/opt/visteon/bin/UiApp '.

Program terminated with signal SIGSEGV, Segmentation fault.

#0  _int_malloc (av=av@entry=0x76a5179c <main_arena>, bytes=bytes@entry=32) at /usr/src/debug/glibc/2.23-r0/git/malloc/malloc.c:3379

3379          while ((pp = catomic_compare_and_exchange_val_acq (fb, victim->fd, victim))

[Current thread is 1 (Thread 0x74bff3e0 (LWP 323))]

(gdb) bt full

#0  _int_malloc (av=av@entry=0x76a5179c <main_arena>, bytes=bytes@entry=32) at /usr/src/debug/glibc/2.23-r0/git/malloc/malloc.c:3379

    __oldval = 0x76a51000

    __atg1_result = <optimized out>

    fb = 0x76a517b0 <main_arena+20>

    pp = 0xffffffff

    nb = 40

    idx = 3

    bin = <optimized out>

    victim = 0xffffffff

    size = <optimized out>

    victim_index = <optimized out>

    remainder = <optimized out>

    remainder_size = <optimized out>

    block = <optimized out>

    bit = <optimized out>

    map = <optimized out>

    fwd = <optimized out>

    bck = <optimized out>

    errstr = 0x0

    __func__ = "_int_malloc"

#1  0x76982618 in __GI___libc_malloc (bytes=32) at /usr/src/debug/glibc/2.23-r0/git/malloc/malloc.c:2914

    ar_ptr = 0x76a5179c <main_arena>

    victim = <optimized out>

    hook = <optimized out>

    __func__ = "__libc_malloc"

#2  0x76b72724 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6

No symbol table info available.

#3  0x76d8c7f8 in void CommonAPI::DBus::DBusConnection::proxyPushFunctionToMainLoop<std::_Bind<std::_Mem_fn<void (CommonAPI::DBus::DBusConnection::)()> (CommonAPI::DBus::DBusConnection)>>(std::_Bind<std::_Mem_fn<void (CommonAPI::DBus::DBusConnection::)()> (CommonAPI::DBus::DBusConnection)>&&) () from /usr/lib/libCommonAPI-DBus.so.3.1.12

No symbol table info available.

#4  0x76d7f6cc in CommonAPI::DBus::DBusConnection::enforceAsynchronousTimeouts() () from /usr/lib/libCommonAPI-DBus.so.3.1.12

No symbol table info available.

#5  0x76b9e3c8 in ?? () from /usr/lib/libstdc++.so.6

No symbol table info available.

#6  0x76c790c0 in start_thread (arg=0x74bff3e0) at /usr/src/debug/glibc/2.23-r0/git/nptl/pthread_create.c:335

    pd = 0x74bff3e0

    unwind_buf = {cancel_jmp_buf = {{jmp_buf = {459222335, 422006855, 1958736864, 2130146896, 0, 338, 2130146896, 1995989072, 1987605696, 1958735644, 0 <repeats 54 times>},

          mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}

    not_first_call = <optimized out>

    robust = <optimized out>

    pagesize_m1 = <optimized out>

    sp = <optimized out>

    freesize = <optimized out>

    __PRETTY_FUNCTION__ = "start_thread"

#7  0x769e4bf0 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:89 from /lib/libc.so.6

No locals.

Backtrace stopped: previous frame identical to this frame (corrupt stack?)

(gdb)

Please inform if you need any more information.

Thanks & Regards,
Hrishikesh Devrukhkar.

Hello, We found a core dump in CommonAPI D-bus wrapper. This issue has been occurring sporadically hence could not get any more logs. From the trace logs we could not determine the root cause behind this. Please help us determine the root cause. Or provide information if this kind of issue has been reported before and solution if any. Following are the details. Version Information : CommonAPI 3.1.12 CommonApi Dbus 3.1.12 Dbus 3.19.7 Back Trace : warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Core was generated by `/opt/visteon/bin/UiApp '. Program terminated with signal SIGSEGV, Segmentation fault. #0 _int_malloc (av=av@entry=0x76a5179c <main_arena>, bytes=bytes@entry=32) at /usr/src/debug/glibc/2.23-r0/git/malloc/malloc.c:3379 3379 while ((pp = catomic_compare_and_exchange_val_acq (fb, victim->fd, victim)) [Current thread is 1 (Thread 0x74bff3e0 (LWP 323))] (gdb) bt full #0 _int_malloc (av=av@entry=0x76a5179c <main_arena>, bytes=bytes@entry=32) at /usr/src/debug/glibc/2.23-r0/git/malloc/malloc.c:3379 __oldval = 0x76a51000 __atg1_result = <optimized out> fb = 0x76a517b0 <main_arena+20> pp = 0xffffffff nb = 40 idx = 3 bin = <optimized out> victim = 0xffffffff size = <optimized out> victim_index = <optimized out> remainder = <optimized out> remainder_size = <optimized out> block = <optimized out> bit = <optimized out> map = <optimized out> fwd = <optimized out> bck = <optimized out> errstr = 0x0 __func__ = "_int_malloc" #1 0x76982618 in __GI___libc_malloc (bytes=32) at /usr/src/debug/glibc/2.23-r0/git/malloc/malloc.c:2914 ar_ptr = 0x76a5179c <main_arena> victim = <optimized out> hook = <optimized out> __func__ = "__libc_malloc" #2 0x76b72724 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6 No symbol table info available. #3 0x76d8c7f8 in void CommonAPI::DBus::DBusConnection::proxyPushFunctionToMainLoop<std::_Bind<std::_Mem_fn<void (CommonAPI::DBus::DBusConnection::*)()> (CommonAPI::DBus::DBusConnection*)>>(std::_Bind<std::_Mem_fn<void (CommonAPI::DBus::DBusConnection::*)()> (CommonAPI::DBus::DBusConnection*)>&&) () from /usr/lib/libCommonAPI-DBus.so.3.1.12 No symbol table info available. #4 0x76d7f6cc in CommonAPI::DBus::DBusConnection::enforceAsynchronousTimeouts() () from /usr/lib/libCommonAPI-DBus.so.3.1.12 No symbol table info available. #5 0x76b9e3c8 in ?? () from /usr/lib/libstdc++.so.6 No symbol table info available. #6 0x76c790c0 in start_thread (arg=0x74bff3e0) at /usr/src/debug/glibc/2.23-r0/git/nptl/pthread_create.c:335 pd = 0x74bff3e0 unwind_buf = {cancel_jmp_buf = {{jmp_buf = {459222335, 422006855, 1958736864, 2130146896, 0, 338, 2130146896, 1995989072, 1987605696, 1958735644, 0 <repeats 54 times>}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = <optimized out> robust = <optimized out> pagesize_m1 = <optimized out> sp = <optimized out> freesize = <optimized out> __PRETTY_FUNCTION__ = "start_thread" #7 0x769e4bf0 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:89 from /lib/libc.so.6 No locals. Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) Please inform if you need any more information. Thanks & Regards, Hrishikesh Devrukhkar.