crash on startup with SIP account
Issue generated from Tuleap's migration script. Originally submitted by: Philipp (phg)
After adding a SIP account, ring-gnome segfaults inside libringclient on
startup.
Deleting the SIP account from dring.yml makes it start up cleanly again.
The SIP account is on an Asterisk in the LAN.
* Environment:
System: Arch AMD64, fully up-to-date as of 2017-08-30:
Linux phlegethon 4.12.8-2-ARCH #1 SMP PREEMPT Fri Aug 18 14:08:02 UTC 2017 x86_64 GNU/Linux
There is no actual GNOME running, just a WM.
Versions:
libringclient 2:20170814.2.08cfcc0-1 (from AUR)
ring-daemon 2:20170814.2.08cfcc0-1 (from AUR)
ring-client-gnome 1.0.0-294-g943c7051 (from git)
* Reproduce steps:
1. compile gnome-ring
2. launch gnome-ring
3. create ring account
4. add SIP account
5. close gnome-ring, kill "/usr/lib/ring/dring" process
6. start gnome-ring
→ crash
7. remove SIP account from dring.yml
8. start gnome-ring
→ works
* Expected result:
No crash.
* Actual result:
Segfault.
--- stdio output --------------------------------------------------------------
** Message: Ring GNOME client version: 1.0.0
** Message: git ref: 943c7051
Updating all accounts
Loading "2563a134d767d0e3"
Loading "b4629497426e002b"
History doesn't exist or is not readable
Loading vcf from: QDir( "/home/phg/.local/share/gnome-ring/profiles" , nameFilters = { "*" }, QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters( Dirs|Files|Drives|AllEntries ) )
(gnome-ring:15806): Gtk-WARNING **: GtkGrid does not have a child property called expand
(gnome-ring:15806): Gtk-WARNING **: GtkGrid does not have a child property called fill
(gnome-ring:15806): Gtk-WARNING **: GtkGrid does not have a child property called position
QDBusMarshaller: type VectorString' attempts to redefine basic D-BUS type 'as' (QStringList) (Did you forget to call beginStructure() ?) QDBusMarshaller: type
MapStringVectorString' produces invalid D-BUS signature a{s}' (Did you forget to call beginStructure() ?) QDBusMarshaller: type
QMap<QString,MapStringVectorString>' produces invalid D-BUS signature `a{s}' (Did you forget to call beginStructure() ?)
Invalid current audio plugin
Selection changed 0
Selection changed 0
** (gnome-ring:15806): DEBUG: debug enabled
** (gnome-ring:15806): DEBUG: disabling autostart
** (gnome-ring:15806): DEBUG: '/home/phg/.config/autostart/gnome-ring.desktop' doesn't exist, nothing to do
** (gnome-ring:15806): DEBUG: notify server name: naughty, vendor: awesome, version: v4.2, spec: 1.0
(gnome-ring:15806): Gtk-DEBUG: Connecting to session manager
(gnome-ring:15806): Gtk-DEBUG: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned
(gnome-ring:15806): Gtk-DEBUG: Failed to get the Xfce session proxy: The name org.xfce.SessionManager is not owned
(gnome-ring:15806): Gtk-DEBUG: Failed to get an inhibit portal proxy: The name org.freedesktop.portal.Desktop is not owned
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
** (gnome-ring:15806): DEBUG: debug enabled
** (gnome-ring:15806): DEBUG: disabling autostart
** (gnome-ring:15806): DEBUG: '/home/phg/.config/autostart/gnome-ring.desktop' doesn't exist, nothing to do
** (gnome-ring:15806): DEBUG: notify server name: naughty, vendor: awesome, version: v4.2, spec: 1.0
(gnome-ring:15806): Gtk-DEBUG: Connecting to session manager
(gnome-ring:15806): Gtk-DEBUG: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned
(gnome-ring:15806): Gtk-DEBUG: Failed to get the Xfce session proxy: The name org.xfce.SessionManager is not owned
(gnome-ring:15806): Gtk-DEBUG: Failed to get an inhibit portal proxy: The name org.freedesktop.portal.Desktop is not owned
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
** (gnome-ring:15806): DEBUG: debug enabled
** (gnome-ring:15806): DEBUG: disabling autostart
** (gnome-ring:15806): DEBUG: '/home/phg/.config/autostart/gnome-ring.desktop' doesn't exist, nothing to do
** (gnome-ring:15806): DEBUG: notify server name: naughty, vendor: awesome, version: v4.2, spec: 1.0
(gnome-ring:15806): Gtk-DEBUG: Connecting to session manager
(gnome-ring:15806): Gtk-DEBUG: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned
(gnome-ring:15806): Gtk-DEBUG: Failed to get the Xfce session proxy: The name org.xfce.SessionManager is not owned
(gnome-ring:15806): Gtk-DEBUG: Failed to get an inhibit portal proxy: The name org.freedesktop.portal.Desktop is not owned
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
(gnome-ring:15806): GdkPixbuf-DEBUG: gdk_pixbuf_from_pixdata() called on:
(gnome-ring:15806): GdkPixbuf-DEBUG: Encoding raw
(gnome-ring:15806): GdkPixbuf-DEBUG: Dimensions: 14 x 14
(gnome-ring:15806): GdkPixbuf-DEBUG: Rowstride: 56, Length: 808
(gnome-ring:15806): GdkPixbuf-DEBUG: Copy pixels == false
--- end stdio output ----------------------------------------------------------
--- backtrace -----------------------------------------------------------------
\#0 0x0000558d9a287490 in QVector<ContactMethod\*>::QVector(QVector<ContactMethod\*> const&) (this=0x7ffcadb5e370, v=...) at /usr/include/qt/QtCore/qvector.h:364
\#1 0x00007f64abd6f94b in PhoneDirectoryModelPrivate::slotRegisteredNameFound(Account const\*, NameDirectory::LookupStatus, QString const&, QString const&) () at /usr/lib/libringclient.so.1.0.0
\#2 0x00007f64a94ad8af in QMetaObject::activate(QObject\*, int, int, void\*\*) () at /usr/lib/libQt5Core.so.5
\#3 0x00007f64abe3cc8a in NameDirectory::registeredNameFound(Account\*, NameDirectory::LookupStatus, QString const&, QString const&) () at /usr/lib/libringclient.so.1.0.0
\#4 0x00007f64abe0aa4c in NameDirectoryPrivate::slotRegisteredNameFound(QString const&, int, QString const&, QString const&) () at /usr/lib/libringclient.so.1.0.0
\#5 0x00007f64a94ae1d2 in QObject::event(QEvent\*) () at /usr/lib/libQt5Core.so.5
\#6 0x00007f64a947dbb2 in QCoreApplication::notifyInternal2(QObject\*, QEvent\*) () at /usr/lib/libQt5Core.so.5
\#7 0x00007f64a9480426 in QCoreApplicationPrivate::sendPostedEvents(QObject\*, int, QThreadData\*) ()
at /usr/lib/libQt5Core.so.5
\#8 0x00007f64a94d8a74 in () at /usr/lib/libQt5Core.so.5
\#9 0x00007f64a992da57 in g\_main\_context\_dispatch () at /usr/lib/libglib-2.0.so.0
\#10 0x00007f64a992dc88 in () at /usr/lib/libglib-2.0.so.0
\#11 0x00007f64a992dd1c in g\_main\_context\_iteration () at /usr/lib/libglib-2.0.so.0
\#12 0x00007f64a9ee972d in g\_application\_run () at /usr/lib/libgio-2.0.so.0
\#13 0x0000558d9a20585a in main(int, char\*\*) (argc=1, argv=0x7ffcadb5e9e8)
at /home/phg/src/ring.cx/ring-client-gnome/src/main.cpp:37
--- end backtrace -------------------------------------------------------------
--- valgrind ------------------------------------------------------------------
==15838== Memcheck, a memory error detector
==15838== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==15838== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==15838== Command: /usr/lib/webkit2gtk-4.0/WebKitWebProcess 26
==15838== Parent PID: 15837
==15838==
==15838== Warning: set address range perms: large range [0x59e4b000, 0x99e4d000) (noaccess)
==15==15835==
==15835== HEAP SUMMARY:
==15835== in use at exit: 124,267 bytes in 1,309 blocks
==15835== total heap usage: 2,009 allocs, 700 frees, 336,199 bytes allocated
==15835==
==15835== LEAK SUMMARY:
==15835== definitely lost: 0 bytes in 0 blocks
==15835== indirectly lost: 0 bytes in 0 blocks
==15835== possibly lost: 4,920 bytes in 29 blocks
==15835== still reachable: 115,699 bytes in 1,250 blocks
==15835== of which reachable via heuristic:
==15835== length64 : 920 bytes in 20 blocks
==15835== newarray : 1,696 bytes in 26 blocks
==15835== multipleinheritance: 88 bytes in 2 blocks
==15835== suppressed: 0 bytes in 0 blocks
==15835== Rerun with --leak-check=full to see details of leaked memory
==15835==
==15835== For counts of detected and suppressed errors, rerun with: -v
==15835== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
838== by 0xAD150EC: ??? (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15838== Address 0x1c001961 is on thread 5's stack
==15838==
==15838==
==15838== HEAP SUMMARY:
==15838== in use at exit: 520,665 bytes in 4,764 blocks
==15838== total heap usage: 7,727 allocs, 2,963 frees, 1,763,498 bytes allocated
==15838==
==15838== LEAK SUMMARY:
==15838== definitely lost: 40 bytes in 1 blocks
==15838== indirectly lost: 41 bytes in 2 blocks
==15838== possibly lost: 4,264 bytes in 29 blocks
==15838== still reachable: 475,496 bytes in 4,384 blocks
==15838== of which reachable via heuristic:
==15838== length64 : 1,496 bytes in 26 blocks
==15838== newarray : 1,792 bytes in 32 blocks
==15838== suppressed: 0 bytes in 0 blocks
==15838== Rerun with --leak-check=full to see details of leaked memory
==15838==
==15838== For counts of detected and suppressed errors, rerun with: -v
==15838== Use --track-origins=yes to see where uninitialised values come from
==15838== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==15837==
==15837== HEAP SUMMARY:
==15837== in use at exit: 7,442,287 bytes in 73,180 blocks
==15837== total heap usage: 599,680 allocs, 526,500 frees, 46,095,898 bytes allocated
==15837==
==15837== LEAK SUMMARY:
==15837== definitely lost: 42,184 bytes in 52 blocks
==15837== indirectly lost: 23,111 bytes in 971 blocks
==15837== possibly lost: 151,403 bytes in 904 blocks
==15837== still reachable: 6,454,709 bytes in 65,792 blocks
==15837== of which reachable via heuristic:
==15837== length64 : 14,920 bytes in 223 blocks
==15837== newarray : 2,704 bytes in 83 blocks
==15837== suppressed: 0 bytes in 0 blocks
==15837== Rerun with --leak-check=full to see details of leaked memory
==15837==
==15837== For counts of detected and suppressed errors, rerun with: -v
==15837== Use --track-origins=yes to see where uninitialised values come from
==15837== ERROR SUMMARY: 88 errors from 3 contexts (suppressed: 0 from 0)
==15806== Syscall param writev(vector[...]) points to uninitialised byte(s)
==15806== at 0x1133696D: ??? (in /usr/lib/libc-2.25.so)
==15806== by 0x137E8BAC: ??? (in /usr/lib/libxcb.so.1.1.0)
==15806== by 0x137E8FAC: ??? (in /usr/lib/libxcb.so.1.1.0)
==15806== by 0x137E902C: xcb_writev (in /usr/lib/libxcb.so.1.1.0)
==15806== by 0x9E88F3D: _XSend (in /usr/lib/libX11.so.6.3.0)
==15806== by 0x9E8927F: _XFlush (in /usr/lib/libX11.so.6.3.0)
==15806== by 0x9E8BC67: _XData32 (in /usr/lib/libX11.so.6.3.0)
==15806== by 0x9E66682: XChangeProperty (in /usr/lib/libX11.so.6.3.0)
==15806== by 0x5CEC8B5: ??? (in /usr/lib/libgdk-3.so.0.2200.19)
==15806== by 0x56F3711: ??? (in /usr/lib/libgtk-3.so.0.2200.19)
==15806== by 0x56FACC7: ??? (in /usr/lib/libgtk-3.so.0.2200.19)
==15806== by 0x5460961: ??? (in /usr/lib/libgtk-3.so.0.2200.19)
==15806== Address 0x206b6aef is 6,319 bytes inside a block of size 16,384 alloc'd
==15806== at 0x4C2DF55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15806== by 0x9E79385: XOpenDisplay (in /usr/lib/libX11.so.6.3.0)
==15806== by 0x5CD20F9: ??? (in /usr/lib/libgdk-3.so.0.2200.19)
==15806== by 0x5CA59D4: gdk_display_manager_open_display (in /usr/lib/libgdk-3.so.0.2200.19)
==15806== by 0x5586A72: gtk_init_check (in /usr/lib/libgtk-3.so.0.2200.19)
==15806== by 0xABBDE6B: gtk_clutter_init (in /usr/lib/libclutter-gtk-1.0.so.0.800.4)
==15806== by 0x1AC7D2: ring_client_startup(_GApplication*) (ring_client.cpp:581)
==15806== by 0x70F0EAC: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.5200.3)
==15806== by 0x710357D: ??? (in /usr/lib/libgobject-2.0.so.0.5200.3)
==15806== by 0x710BC84: g_signal_emit_valist (in /usr/lib/libgobject-2.0.so.0.5200.3)
==15806== by 0x710C69E: g_signal_emit (in /usr/lib/libgobject-2.0.so.0.5200.3)
==15806== by 0x6DE5B31: g_application_register (in /usr/lib/libgio-2.0.so.0.5200.3)
==15806==
==15806== Thread 20 ReceiveQueue:
==15806== Syscall param sendmsg(msg.msg_iov[0]) points to uninitialised byte(s)
==15806== at 0x1133FF84: sendmsg (in /usr/lib/libc-2.25.so)
==15806== by 0xD495861: ??? (in /usr/lib/libwebkit2gtk-4.0.so.37.19.9)
==15806== by 0xD495D75: ??? (in /usr/lib/libwebkit2gtk-4.0.so.37.19.9)
==15806== by 0xD203725: ??? (in /usr/lib/libwebkit2gtk-4.0.so.37.19.9)
==15806== by 0x1058C7AD: WTF::RunLoop::performWork() (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== by 0x1058B359: ??? (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== by 0x737E8C4: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x737EC87: ??? (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x737EFA1: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x1058BCA9: WTF::RunLoop::run() (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== by 0x1058AA23: ??? (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== by 0x105550EC: ??? (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== Address 0x36e00921 is on thread 20's stack
==15806==
==15806== Syscall param sendmsg(msg.msg_iov[2]) points to uninitialised byte(s)
==15806== at 0x1133FF84: sendmsg (in /usr/lib/libc-2.25.so)
==15806== by 0xD495861: ??? (in /usr/lib/libwebkit2gtk-4.0.so.37.19.9)
==15806== by 0xD495D75: ??? (in /usr/lib/libwebkit2gtk-4.0.so.37.19.9)
==15806== by 0xD203725: ??? (in /usr/lib/libwebkit2gtk-4.0.so.37.19.9)
==15806== by 0x1058C7AD: WTF::RunLoop::performWork() (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== by 0x1058B359: ??? (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== by 0x737E8C4: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x737EC87: ??? (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x737EFA1: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x1058BCA9: WTF::RunLoop::run() (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== by 0x1058AA23: ??? (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== by 0x105550EC: ??? (in /usr/lib/libjavascriptcoregtk-4.0.so.18.5.13)
==15806== Address 0x213d20b8 is in a rw- anonymous segment
==15806==
==15806== Thread 1:
==15806== Invalid read of size 8
==15806== at 0x22C490: QVector<ContactMethod*>::QVector(QVector<ContactMethod*> const&) (qvector.h:364)
==15806== by 0x4FD094A: PhoneDirectoryModelPrivate::slotRegisteredNameFound(Account const*, NameDirectory::LookupStatus, QString const&, QString const&) (in /usr/lib/libringclient.so.1.0.0)
==15806== by 0x79068AE: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x509DC89: NameDirectory::registeredNameFound(Account*, NameDirectory::LookupStatus, QString const&, QString const&) (in /usr/lib/libringclient.so.1.0.0)
==15806== by 0x506BA4B: NameDirectoryPrivate::slotRegisteredNameFound(QString const&, int, QString const&, QString const&) (in /usr/lib/libringclient.so.1.0.0)
==15806== by 0x79071D1: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x78D6BB1: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x78D9425: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x7931A73: ??? (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x737EA56: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x737EC87: ??? (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x737ED1B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15806==
==15806==
==15806== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==15806== Access not within mapped region at address 0x0
==15806== at 0x22C490: QVector<ContactMethod*>::QVector(QVector<ContactMethod*> const&) (qvector.h:364)
==15806== by 0x4FD094A: PhoneDirectoryModelPrivate::slotRegisteredNameFound(Account const*, NameDirectory::LookupStatus, QString const&, QString const&) (in /usr/lib/libringclient.so.1.0.0)
==15806== by 0x79068AE: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x509DC89: NameDirectory::registeredNameFound(Account*, NameDirectory::LookupStatus, QString const&, QString const&) (in /usr/lib/libringclient.so.1.0.0)
==15806== by 0x506BA4B: NameDirectoryPrivate::slotRegisteredNameFound(QString const&, int, QString const&, QString const&) (in /usr/lib/libringclient.so.1.0.0)
==15806== by 0x79071D1: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x78D6BB1: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x78D9425: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x7931A73: ??? (in /usr/lib/libQt5Core.so.5.9.1)
==15806== by 0x737EA56: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x737EC87: ??? (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== by 0x737ED1B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.5200.3)
==15806== If you believe this happened as a result of a stack
==15806== overflow in your program's main thread (unlikely but
==15806== possible), you can try to increase the size of the
==15806== main thread stack using the --main-stacksize= flag.
==15806== The main thread stack size used in this run was 8388608.
==15806==
==15806== HEAP SUMMARY:
==15806== in use at exit: 7,886,330 bytes in 77,827 blocks
==15806== total heap usage: 655,069 allocs, 577,242 frees, 51,747,221 bytes allocated
==15806==
==15806== LEAK SUMMARY:
==15806== definitely lost: 25,408 bytes in 21 blocks
==15806== indirectly lost: 22,809 bytes in 960 blocks
==15806== possibly lost: 150,404 bytes in 915 blocks
==15806== still reachable: 6,836,733 bytes in 69,850 blocks
==15806== of which reachable via heuristic:
==15806== length64 : 15,400 bytes in 229 blocks
==15806== newarray : 2,704 bytes in 83 blocks
==15806== suppressed: 0 bytes in 0 blocks
==15806== Rerun with --leak-check=full to see details of leaked memory
==15806==
==15806== For counts of detected and suppressed errors, rerun with: -v
==15806== Use --track-origins=yes to see where uninitialised values come from
==15806== ERROR SUMMARY: 110 errors from 7 contexts (suppressed: 0 from 0)
--- end valgrind --------------------------------------------------------------