dino / dino

Modern XMPP ("Jabber") Chat Client using GTK+/Vala
https://dino.im/
GNU General Public License v3.0
2.23k stars 250 forks source link

munmap_chunk(): invalid pointer #937

Closed Epicalert closed 10 months ago

Epicalert commented 4 years ago

When installing and running, dino crashes:

$ dino
munmap_chunk(): invalid pointer
Aborted (core dumped)
$ coredumpctl info -1
           PID: 11312 (dino)
           UID: 1000 ([redacted])
           GID: 1000 ([redacted])
        Signal: 6 (ABRT)
     Timestamp: Tue 2020-11-03 15:36:17 PST (5s ago)
  Command Line: dino
    Executable: /usr/local/bin/dino
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 ([redacted])
       Boot ID: 1a8f3d7e6f89483eb5d4ca0498f0cb5a
    Machine ID: 6f129489ede048e1948fb14e5c152684
      Hostname: [redacted]
       Storage: /var/lib/systemd/coredump/core.dino.1000.1a8f3d7e6f89483eb5d4ca0498f0cb5a.11312.1604388977000000.zst
       Message: Process 11312 (dino) of user 1000 dumped core.

                Stack trace of thread 11312:
                #0  0x00007f296848c615 raise (libc.so.6 + 0x3d615)
                #1  0x00007f2968475862 abort (libc.so.6 + 0x26862)
                #2  0x00007f29684ce5e8 __libc_message (libc.so.6 + 0x7f5e8)
                #3  0x00007f29684d627a malloc_printerr (libc.so.6 + 0x8727a)
                #4  0x00007f29684d66ac munmap_chunk (libc.so.6 + 0x876ac)
                #5  0x00007f296b717a3a dino_plugins_loader_load (libdino.so.0 + 0x47a3a)
                #6  0x00007f296b716b21 dino_plugins_loader_loadAll (libdino.so.0 + 0x46b21)
                #7  0x00005618c7ba1765 dino_main (dino + 0x27765)
                #8  0x00005618c7ba1a2f main (dino + 0x27a2f)
                #9  0x00007f2968477152 __libc_start_main (libc.so.6 + 0x28152)
                #10 0x00005618c7ba138e _start (dino + 0x2738e)

                Stack trace of thread 11313:
                #0  0x00007f296854446f __poll (libc.so.6 + 0xf546f)
                #1  0x00007f296a3bc75f n/a (libglib-2.0.so.0 + 0xa675f)
                #2  0x00007f296a367121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                #3  0x00007f296a367172 n/a (libglib-2.0.so.0 + 0x51172)
                #4  0x00007f296a395ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                #5  0x00007f296842e3e9 start_thread (libpthread.so.0 + 0x93e9)
                #6  0x00007f296854f293 __clone (libc.so.6 + 0x100293)

                Stack trace of thread 11314:
                #0  0x00007f296854446f __poll (libc.so.6 + 0xf546f)
                #1  0x00007f296a3bc75f n/a (libglib-2.0.so.0 + 0xa675f)
                #2  0x00007f296a367e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                #3  0x00007f296a5a5fe8 n/a (libgio-2.0.so.0 + 0x101fe8)
                #4  0x00007f296a395ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                #5  0x00007f296842e3e9 start_thread (libpthread.so.0 + 0x93e9)
                #6  0x00007f296854f293 __clone (libc.so.6 + 0x100293)

Sometimes I get this error:

$ dino
dino: symbol lookup error: dino: undefined symbol: dino_avatar_manager_has_avatar_cached

but I can run it from the build folder with $ build/dino with no problems.

I had compiled and installed dino before on August 23 (not sure what commit)

OS: Arch Linux Commit: dba63b14737d9415bb189235065efb80676e2b17

fiaxh commented 4 years ago

You seem to have two versions of Dino on your system. The main executable of one version is trying to interact with the plugins of the other (incompatible) version.

Epicalert commented 4 years ago

@fiaxh How do I remove the old version? I already tried make uninstall.

Epicalert commented 4 years ago

I probably should have said this earlier but it also exits with Segmentation fault (core dumped) sometimes.

           PID: 139409 (dino)
           UID: 1000 ([redacted])
           GID: 1000 ([redacted])
        Signal: 11 (SEGV)
     Timestamp: Thu 2020-11-12 23:00:51 PST (43min ago)
  Command Line: dino
    Executable: /usr/local/bin/dino
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 ([redacted])
       Boot ID: 906a555be23648488c50e7211bb5ffa8
    Machine ID: 6f129489ede048e1948fb14e5c152684
      Hostname: [redacted]
       Storage: /var/lib/systemd/coredump/core.dino.1000.906a555be23648488c50e7211bb5ffa8.139409.1605193251000000.zst
       Message: Process 139409 (dino) of user 1000 dumped core.

                Stack trace of thread 139409:
                #0  0x00007f594c3400cf unlink_chunk.constprop.0 (libc.so.6 + 0x880cf)
                #1  0x00007f594c342bda _int_malloc (libc.so.6 + 0x8abda)
                #2  0x00007f594c34301f _int_memalign (libc.so.6 + 0x8b01f)
                #3  0x00007f594c34412c _mid_memalign (libc.so.6 + 0x8c12c)
                #4  0x00007f594c345796 posix_memalign (libc.so.6 + 0x8d796)
                #5  0x00007f594e1ef73a n/a (libglib-2.0.so.0 + 0x7073a)
                #6  0x00007f594e1f0fd3 g_slice_alloc (libglib-2.0.so.0 + 0x71fd3)
                #7  0x00007f594e1f102b g_slice_alloc0 (libglib-2.0.so.0 + 0x7202b)
                #8  0x00007f594e2e37a9 g_type_create_instance (libgobject-2.0.so.0 + 0x307a9)
                #9  0x00007f594e2d3ffe n/a (libgobject-2.0.so.0 + 0x20ffe)
                #10 0x00007f594e2d513d g_object_new_with_properties (libgobject-2.0.so.0 + 0x2213d)
                #11 0x00007f594e2d5c42 g_object_new (libgobject-2.0.so.0 + 0x22c42)
                #12 0x00007f594f619860 dino_module_identity_construct (libdino.so.0 + 0xe0860)
                #13 0x00007f594f6198e7 dino_module_identity_new (libdino.so.0 + 0xe08e7)
                #14 0x00007f594a0c85cc dino_plugins_omemo_manager_class_init (omemo.so + 0x3f5cc)
                #15 0x00007f594e2ea352 g_type_class_ref (libgobject-2.0.so.0 + 0x37352)
                #16 0x00007f594e2d5159 g_object_new_with_properties (libgobject-2.0.so.0 + 0x22159)
                #17 0x00007f594e2d5c42 g_object_new (libgobject-2.0.so.0 + 0x22c42)
                #18 0x00007f594a0bcdb2 dino_plugins_omemo_manager_construct (omemo.so + 0x33db2)
                #19 0x00007f594a0bd01e dino_plugins_omemo_manager_new (omemo.so + 0x3401e)
                #20 0x00007f594a0c6ddc dino_plugins_omemo_manager_start (omemo.so + 0x3dddc)
                #21 0x00007f594a0a82de dino_plugins_omemo_plugin_real_registered (omemo.so + 0x1f2de)
                #22 0x00007f594f57ac05 dino_plugins_root_interface_registered (libdino.so.0 + 0x41c05)
                #23 0x00007f594f5809f9 dino_plugins_loader_load (libdino.so.0 + 0x479f9)
                #24 0x00007f594f57fb21 dino_plugins_loader_loadAll (libdino.so.0 + 0x46b21)
                #25 0x0000564bea12c7b5 dino_main (dino + 0x277b5)
                #26 0x0000564bea12ca7f main (dino + 0x27a7f)
                #27 0x00007f594c2e0152 __libc_start_main (libc.so.6 + 0x28152)
                #28 0x0000564bea12c3de _start (dino + 0x273de)

                Stack trace of thread 139411:
                #0  0x00007f594c3ad46f __poll (libc.so.6 + 0xf546f)
                #1  0x00007f594e22575f n/a (libglib-2.0.so.0 + 0xa675f)
                #2  0x00007f594e1d0e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                #3  0x00007f594e40efe8 n/a (libgio-2.0.so.0 + 0x101fe8)
                #4  0x00007f594e1fece1 n/a (libglib-2.0.so.0 + 0x7fce1)
                #5  0x00007f594c2973e9 start_thread (libpthread.so.0 + 0x93e9)
                #6  0x00007f594c3b8293 __clone (libc.so.6 + 0x100293)

                Stack trace of thread 139410:
                #0  0x00007f594c3ad46f __poll (libc.so.6 + 0xf546f)
                #1  0x00007f594e22575f n/a (libglib-2.0.so.0 + 0xa675f)
                #2  0x00007f594e1d0121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                #3  0x00007f594e1d0172 n/a (libglib-2.0.so.0 + 0x51172)
                #4  0x00007f594e1fece1 n/a (libglib-2.0.so.0 + 0x7fce1)
                #5  0x00007f594c2973e9 start_thread (libpthread.so.0 + 0x93e9)
                #6  0x00007f594c3b8293 __clone (libc.so.6 + 0x100293)
fiaxh commented 10 months ago

Closing this assuming it's outdated. As mentioned before, this was a problem with two conflicting Dino installations, debugging this might be suited for the channel with a wider crowd to help out.