majn / telegram-purple

Adds support for Telegram to Pidgin, Adium, Finch and other Libpurple based messengers.
GNU General Public License v2.0
735 stars 81 forks source link

SIGSEGV in tgp_blist_lookup_get_id #583

Open bodqhrohro opened 2 years ago

bodqhrohro commented 2 years ago
Thread 1 "pidgin" received signal SIGSEGV, Segmentation fault.
0x00007ffff72e2972 in g_hash_table_lookup_node (hash_return=<synthetic pointer>, key=0x5555588bfbe0, 
    hash_table=<error reading variable: Cannot access memory at address 0x555500000038>0x555500000000) at ../../../glib/ghash.c:472
472 ../../../glib/ghash.c: Нет такого файла или каталога.
@(gdb) dns[2146923]: nobody needs me... =(
dns[2146936]: nobody needs me... =(
dns[2146922]: nobody needs me... =(
bt
#0  0x00007ffff72e2972 in g_hash_table_lookup_node
    (hash_return=<synthetic pointer>, key=0x5555588bfbe0, hash_table=<error reading variable: Cannot access memory at address 0x555500000038>0x555500000000) at ../../../glib/ghash.c:472
#1  g_hash_table_lookup
    (hash_table=<error reading variable: Cannot access memory at address 0x555500000038>0x555500000000, key=key@entry=0x5555588bfbe0)
    at ../../../glib/ghash.c:1511
#2  0x00007fffdb3a7b74 in tgp_blist_lookup_get_id (purple_name=0x555558cdf8b0 "Gastón", TLS=0x555558f51400) at tgp-blist.c:61
#3  tgp_blist_create_print_name (TLS=0x555558f51400, id=..., a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=0x0) at tgp-blist.c:224
#4  0x00007fffdb3d0bab in bl_do_user
    (TLS=0x555558f51400, id=<optimized out>, access_hash=<optimized out>, first_name=<optimized out>, first_name_len=<optimized out>, last_name=0x0, last_name_len=0, phone=0x0, phone_len=0, username=0x5555585ba960 "g4570n", username_len=6, photo=0x0, profile_photo=0x55555784a320, last_read_in=0x0, last_read_out=0x0, bot_info=0x0, flags=<optimized out>) at binlog.c:610
#5  0x00007fffdb3cb18d in tglf_fetch_alloc_user (TLS=TLS@entry=0x555558f51400, DS_U=0x5555558d4000) at tgl.h:323
#6  0x00007fffdb3bee49 in get_difference_on_answer (TLS=0x555558f51400, q=0x555557964570, D=0x55555aadbdc0) at queries.c:3849
#7  0x00007fffdb3b587e in tglq_query_result (TLS=TLS@entry=0x555558f51400, id=<optimized out>) at queries.c:479
#8  0x00007fffdb3ac5bc in work_rpc_result (c=0x555558d9b6b0, msg_id=<optimized out>, TLS=0x555558f51400) at mtproto-client.c:848
#9  0x00007fffdb3ad8f0 in process_rpc_message (enc=0x7fffdc4adcc0 <Response.43>, len=<optimized out>, c=0x555558d9b6b0, TLS=0x555558f51400)
    at mtproto-client.c:1135
#10 rpc_execute (TLS=0x555558f51400, c=0x555558d9b6b0, op=<optimized out>, len=<optimized out>) at mtproto-client.c:1189
@--Type <RET> for more, q to quit, c to continue without paging--
#11 0x00007fffdb39aae9 in try_rpc_read (c=0x555558d9b6b0) at tgp-net.c:431
#12 try_read (c=<optimized out>) at tgp-net.c:476
#13 conn_try_read (arg=0x555558d9b6b0, source=<optimized out>, cond=cond@entry=PURPLE_INPUT_READ) at tgp-net.c:227
#14 0x00005555555cdfb2 in pidgin_io_invoke (source=<optimized out>, condition=<optimized out>, data=0x5555583bbee0) at ././pidgin/gtkeventloop.c:73
#15 0x00007ffff72f5be4 in g_main_dispatch (context=0x5555556c8b10) at ../../../glib/gmain.c:3381
#16 g_main_context_dispatch (context=0x5555556c8b10) at ../../../glib/gmain.c:4099
#17 0x00007ffff72f5f88 in g_main_context_iterate (context=0x5555556c8b10, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at ../../../glib/gmain.c:4175
#18 0x00007ffff72f6273 in g_main_loop_run (loop=0x5555564b7d70) at ../../../glib/gmain.c:4373
#19 0x00007ffff79d8b2a in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#20 0x0000555555591d70 in main (argc=<optimized out>, argv=<optimized out>) at ././pidgin/gtkmain.c:947

I don't even have PM with this Gastón, so probably it happened because of assuming it should be there when they joined the Tdlib-Purple Discussion group.