EionRobb / pidgin-opensteamworks

Steam plugin for Pidgin/libpurple
153 stars 5 forks source link

Intermittent segfaults #183

Open ghost opened 5 years ago

ghost commented 5 years ago

Version: pidgin-opensteamworks-git 1.6.1.r71.gfeece3c Distro: Arch DE: Plasma 5.16

i ran pidgin --debug to see if I could get further information. The last few seconds of debug info follow:

(05:10:14) util: Writing file accounts.xml to directory /home/xxx/.purple
(05:10:14) util: Writing file /home/xxx/.purple/accounts.xml
(05:10:22) steam: getting url /ISteamWebUserPresenceOAuth/Poll/v0001
Pidgin 2.13.0 has segfaulted and attempted to dump a core file.

The output of coredumpctl debug follow:

Reading symbols from /usr/bin/pidgin...
(No debugging symbols found in /usr/bin/pidgin)
[New LWP 7137]
[New LWP 7142]
[New LWP 7138]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `pidgin --debug'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f07f917a755 in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f07f4980240 (LWP 7137))]
(gdb) bt full
#0  0x00007f07f917a755 in raise () at /usr/lib/libc.so.6
#1  0x00007f07f9165851 in abort () at /usr/lib/libc.so.6
#2  0x000055fcdab41b4d in  ()
#3  0x00007f07f917a7e0 in <signal handler called> () at /usr/lib/libc.so.6
#4  0x00007f07f929e66c in __strchr_avx2 () at /usr/lib/libc.so.6
#5  0x00007f07f96193bf in g_hostname_is_ip_address () at /usr/lib/libglib-2.0.so.0
#6  0x00007f07f167b3d9 in  () at /usr/lib/purple-2/libsteam.so
#7  0x00007f07f167c1a0 in steam_post_or_get () at /usr/lib/purple-2/libsteam.so
#8  0x00007f07f167e40b in  () at /usr/lib/purple-2/libsteam.so
#9  0x00007f07f167e4ae in steam_timeout () at /usr/lib/purple-2/libsteam.so
#10 0x00007f07f96153c4 in  () at /usr/lib/libglib-2.0.so.0
#11 0x00007f07f9615bb0 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#12 0x00007f07f9617b11 in  () at /usr/lib/libglib-2.0.so.0
#13 0x00007f07f9618a63 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#14 0x00007f07f9ccedf3 in gtk_main () at /usr/lib/libgtk-x11-2.0.so.0
#15 0x000055fcdaaeb9aa in main ()

I also directly upgraded from 1.6.1.r62.gab6d446-1 directly to r71 (yes, I haven't upgraded in a while, but oh well). Segfaulting only started happening after upgrading to r71.

If there's anything else I can do to help let me know.

undeference commented 5 years ago
(gdb) bt full
#0  0x00007f9117917e35 in raise () at /lib64/libc.so.6
#1  0x00007f9117902895 in abort () at /lib64/libc.so.6
#2  0x000056530b82ad90 in sighandler (sig=<optimized out>) at gtkmain.c:179
        written = <optimized out>
#3  0x000056530b82ad90 in sighandler (sig=<optimized out>) at gtkmain.c:162
        written = <optimized out>
#4  0x00007f9117917ec0 in <signal handler called> () at /lib64/libc.so.6
#5  0x00007f9117979f67 in __strchr_sse2 () at /lib64/libc.so.6
#6  0x00007f9117c597f2 in g_hostname_is_ip_address (hostname=0x0)
    at ../glib/ghostutils.c:705
        p = 0x0
        end = <optimized out>
        nsegments = <optimized out>
        octet = <optimized out>
#7  0x00007f9106456068 in steam_attempt_connection (steamcon=0x56530dc2d710)
    at steam_connection.c:798
        is_proxy = 0
        sa = 0x56530d2952f0
        proxy_info = <optimized out>
        steamcon = 0x56530dc2d710
        __func__ = "steam_next_connection"
        __func__ = "steam_next_connection"
#8  0x00007f9106456068 in steam_next_connection (sa=<optimized out>)
    at steam_connection.c:689
        steamcon = 0x56530dc2d710
        __func__ = "steam_next_connection"
        __func__ = "steam_next_connection"
#9  0x00007f9106456068 in steam_next_connection (sa=<optimized out>)
    at steam_connection.c:678
        __func__ = "steam_next_connection"
#10 0x00007f9106456da8 in steam_post_or_get
    (sa=sa@entry=0x56530d2952f0, method=<optimized out>, 
    method@entry=(STEAM_METHOD_POST | STEAM_METHOD_SSL), host=0x7f910645d192 "api.steampowered.com", 
    host@entry=0x0, url=url@entry=0x7f910645e1c0 "/ISteamWebUserPresenceOAuth/Poll/v0001", postdata=<optimized out>, callback_func=callback_func@entry=0x7f910645b620 <steam_poll_cb>, user_data=0x0, keepalive=0) at steam_connection.c:673
        request = <optimized out>
        cookies = 0x56530d8e57c0 "\360=\231\rSV"
        steamcon = 0x56530d532110
        real_url = 0x56530dd90d60 "/ISteamWebUserPresenceOAuth/Poll/v0001"
        is_proxy = <optimized out>
        user_agent = 0x7f910645d1bd "Steam 1.2.0 / iPhone"
        languages = <optimized out>
        language_names = <optimized out>
        proxy_info = <optimized out>
        proxy_auth = <optimized out>
        proxy_auth_base64 = <optimized out>
#11 0x00007f9106458ed3 in steam_poll
    (sa=sa@entry=0x56530d2952f0, secure=secure@entry=0, message=<optimized out>) at libsteam.c:860
        post = 0x56530d8349a0
        method = (STEAM_METHOD_POST | STEAM_METHOD_SSL)
        url = 0x7f910645e1c0 "/ISteamWebUserPresenceOAuth/Poll/v0001"
#12 0x00007f9106458f6e in steam_timeout
    (userdata=userdata@entry=0x56530d2952f0) at libsteam.c:416
        sa = 0x56530d2952f0
#13 0x00007f9117c68961 in g_timeout_dispatch
    (source=source@entry=0x56530d4fa210, callback=0x7f9106458f60 <steam_timeout>, user_data=0x56530d2952f0) at ../glib/gmain.c:4678
        timeout_source = 0x56530d4fa210
        again = <optimized out>
#14 0x00007f9117c67ecd in g_main_dispatch (context=0x56530c311b90)
    at ../glib/gmain.c:3189
        dispatch = <optimized out>
        prev_source = 0x0
        was_in_call = <optimized out>
        user_data = 0x56530d2952f0
        callback = 0x7f9106458f60 <steam_timeout>
        cb_funcs = 0x7f9117d3a280 <g_source_callback_funcs>
        cb_data = 0x56530d1cb040
        need_destroy = <optimized out>
        source = 0x56530d4fa210
        current = 0x56530c98a860
        i = 0
        __FUNCTION__ = "g_main_dispatch"
EionRobb commented 5 years ago

Can you give that commit a try? Seems that its likely to do with when the server rate-limits us

undeference commented 5 years ago

What commit? It just happened again using commit a68e311bce0bc52cd2556c9b14ea5009ebb5f83c from Wed Sep 11. This time i see #6 0x00007fb4f48317f2 in g_hostname_is_ip_address (hostname=0x20 <error: Cannot access memory at address 0x20>) at ../glib/ghostutils.c:705

EionRobb commented 5 years ago

Oops, I'm an idiot and didn't push the commit. Sorry, I meant with ac9f7d2c78ba9760d805674758610958a2903f43

undeference commented 5 years ago

I haven't seen this again, so I think you fixed it.