Menu

#315 Crash when contact list is empty

OBSOLETE_1.21.x
closed-fixed
None
Crash
5
2018-12-11
2016-10-16
dx
No

Happened two times so far, when logging in for the first time to newly created accounts.

Full log attached, relevant fragment:

MESSAGE START <<<<<<<<<< SIP - 2016-10-16T04:23:16.633358Z
SIP/2.0 200 OK
ms-user-logon-data: RemoteUser
Authentication-Info: TLS-DSK qop="auth", opaque="0671B667", srand="E39DE2F8", snum="6", rspauth="e82c292660b1fbfa6b2ec317a0f4febdfd659e48", targetname="BN11A06FES04.infra.lync.com", realm="SIP Communications Service", version=4
Content-Length: 250
From: "test 3"<sip:test3@dequis.onmicrosoft.com>;tag=5882839637;epid=f9336807aee0
To: <sip:test3@dequis.onmicrosoft.com>;tag=88A15107BB8DD05E8CE69259426E6004
Call-ID: 0C62g2CD6a2B7Ci7653mD608tB70BbDE86x944Ax
CSeq: 1 SERVICE
Via: SIP/2.0/tls 192.168.0.30:60132;branch=z9hG4bK4155A3AF1148BA0E2D9B;received=10.58.141.251;ms-received-port=60132;ms-received-cid=17D18500
Content-Type: application/SOAP+xml

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:addGroup xmlns:m="http://schemas.microsoft.com/winrtc/2002/11/sip">
<m:groupID>1</m:groupID>
</m:addGroup>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

MESSAGE END <<<<<<<<<< SIP - 2016-10-16T04:23:16.633358Z
DEBUG sipe: sip_sec_verify_signature: message is:<TLS-DSK><E39DE2F8><6><SIP Communications Service><BN11A06FES04.infra.lync.com><0C62g2CD6a2B7Ci7653mD608tB70BbDE86x944Ax><1><SERVICE><sip:test3@dequis.onmicrosoft.com><5882839637><sip:test3@dequis.onmicrosoft.com><88A15107BB8DD05E8CE69259426E6004><><><><200> signature to verify is:e82c292660b1fbfa6b2ec317a0f4febdfd659e48
DEBUG sipe: sip_transport_input: signature of incoming message validated
DEBUG sipe: process_input_message: msg->response(200),msg->method(SERVICE)
DEBUG sipe: process_input_message: we have a transaction callback
DEBUG sipe: sipe_group_add: created backend group 'Other Contacts' with id 1

(process:7153): GLib-CRITICAL **: g_utf8_strdown: assertion 'str != NULL' failed
==7153== Invalid read of size 1
==7153==    at 0x5376E73: g_str_hash (/home/dx/test/asd/quorum/glib5/glib2/src/glib-2.48.1/glib/ghash.c:1876)
==7153==    by 0x1B13AF0B: sipe_ht_hash_nick (/home/dx/test/gits/sipe/src/core/sipe-buddy.c:2360)
==7153==    by 0x5376307: g_hash_table_lookup_node (/home/dx/test/asd/quorum/glib5/glib2/src/glib-2.48.1/glib/ghash.c:375)
==7153==    by 0x5376307: g_hash_table_lookup (/home/dx/test/asd/quorum/glib5/glib2/src/glib-2.48.1/glib/ghash.c:1147)
==7153==    by 0x1B147E57: process_add_group_response (/home/dx/test/gits/sipe/src/core/sipe-group.c:97)
==7153==    by 0x1B138179: process_input_message (/home/dx/test/gits/sipe/src/core/sip-transport.c:1689)
==7153==    by 0x1B1387C3: sip_transport_input (/home/dx/test/gits/sipe/src/core/sip-transport.c:1784)
==7153==    by 0x615F3C5: recv_cb (/home/dx/test/build/pidgin/src/pidgin-2.11.0/libpurple/sslconn.c:155)
==7153==    by 0x1C2762: gaim_io_invoke (/lib/events_glib.c:86)
==7153==    by 0x53CC1B8: g_io_unix_dispatch (/home/dx/test/asd/quorum/glib5/glib2/src/glib-2.48.1/glib/giounix.c:165)
==7153==    by 0x53874DF: g_main_dispatch (/home/dx/test/asd/quorum/glib5/glib2/src/glib-2.48.1/glib/gmain.c:3154)
==7153==    by 0x53874DF: g_main_context_dispatch (/home/dx/test/asd/quorum/glib5/glib2/src/glib-2.48.1/glib/gmain.c:3769)
==7153==    by 0x538776B: g_main_context_iterate (/home/dx/test/asd/quorum/glib5/glib2/src/glib-2.48.1/glib/gmain.c:3840)
==7153==    by 0x5387B12: g_main_loop_run (/home/dx/test/asd/quorum/glib5/glib2/src/glib-2.48.1/glib/gmain.c:4034)
==7153==    by 0x1C265B: b_main_run (/lib/events_glib.c:59)
==7153==    by 0x1BCE05: main (unix.c:177)
==7153==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

Bitlbee git master, sipe 1.21.1, arch linux x86_64.

1 Attachments

Related

Release Notes: 2017/02/pidgin-sipe-release-1220

Discussion

  • Stefan Becker

    Stefan Becker - 2016-10-16
    • summary: Segfault on process_add_group_response for new accounts --> Crash when contact list is empty
    • status: open --> closed-fixed
    • assigned_to: Stefan Becker
     
  • Stefan Becker

    Stefan Becker - 2016-10-16

    Fixed in commit ab4cd58

    CLOSING

     

Log in to post a comment.