Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tg dies with SIGABRT. telegram: binlog.c:1128: replay_log_event: Assertion `M' failed. #180

Closed
Korxif opened this issue Apr 4, 2014 · 1 comment

Comments

@Korxif
Copy link

Korxif commented Apr 4, 2014

telegram was started under gdb.
here is last messages and backtrace.

system is:
$ uname -a
Linux vm84832.local 3.6-trunk-amd64 #1 SMP Debian 3.6.8-1~experimental.1 x86_64 x86_64 x86_64 GNU/Linux

here we go:

*** error for query #5998452567028622272: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622440: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622176: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622680: #420 :FLOOD_WAIT_5
*** Hole in seq: seq = 20267, x = 20307
Sent: id = 16464
*** error for query #5998452567028622632: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622704: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622752: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622656: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622800: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622776: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622872: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622920: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622848: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622992: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622968: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623040: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622944: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622728: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623088: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623064: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623160: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622824: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623016: #420 :FLOOD_WAIT_5
*** error for query #5998452567028622896: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623112: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623136: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623208: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623424: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623432: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623360: #420 :FLOOD_WAIT_5
*** error for query #5998452567028623332: #420 :FLOOD_WAIT_5
[10440 unread 1%Up]telegram: binlog.c:1128: replay_log_event: Assertion `M' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff6bd9425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) backtrace full
#0 0x00007ffff6bd9425 in raise () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.
#1 0x00007ffff6bdcb8b in abort () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.
#2 0x00007ffff6bd20ee in ?? () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.
#3 0x00007ffff6bd2192 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.
#4 0x000000000043a181 in replay_log_event () at binlog.c:1128

    M = 0x0
    start = 0x2810f40
    __PRETTY_FUNCTION__ = "replay_log_event"
    op = <optimized out>

#5 0x000000000043b17a in add_log_event (len=12, data=0x2810f40) at binlog.c:1243

    in = 0x2e6111c
    end = 0x2e6111c

#6 add_log_event (data=0x2810f40, len=12) at binlog.c:1233

No locals.
#7 0x000000000041ccbb in msg_send_on_error (q=0x4dd7fe0, error_code=, error_len=, error=) at queries.c:890

    M = <optimized out>

#8 0x0000000000422810 in query_error (id=5998452567028623332) at queries.c:194

    __PRETTY_FUNCTION__ = "query_error"
    error_code = 420
    error_len = 12
    error = 0x2e6110d "FLOOD_WAIT_5"
    q = 0x4dd7fe0

#9 0x000000000041c30d in process_rpc_message (c=0x4da75a0, enc=0x2e610c0, len=104) at mtproto-client.c:1708

    __PRETTY_FUNCTION__ = "process_rpc_message"
    DC = 0x475cb00
    l = <optimized out>
    sha1_buffer = "\274\327\067\222\060[\031\300\362\247\232\247\275\r\240Y\362^\222", <incomplete sequence \320>
    this_server_time = <optimized out>
    st = <optimized out>

#10 0x000000000041c79f in rpc_execute (c=0x4da75a0, op=260751646, len=104) at mtproto-client.c:1767

    Response_len = 104
    __PRETTY_FUNCTION__ = "rpc_execute"
    o = <optimized out>

#11 0x0000000000413e1e in try_rpc_read (c=0x4da75a0) at net.c:487

    len = 104
    t = 26
    op = 260751646
    __PRETTY_FUNCTION__ = "try_rpc_read"

#12 0x0000000000414388 in connections_poll_result (fds=, max=1) at net.c:578

    c = 0x4da75a0
    i = <optimized out>

#13 0x000000000040dd8b in net_loop (flags=1, is_end=0x40d0d0 ) at loop.c:101

    fds = {{fd = 0, events = 1, revents = 0}, {fd = 8, events = 8217, revents = 1}, {fd = 81141920, events = 0, revents = 0}, {fd = 82992288, events = 0, revents = 0}, {fd = 0, 
        events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 80, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {
        fd = 3, events = 48, revents = 0}, {fd = 91, events = 110, revents = 0}, {fd = 119, events = 124, revents = 0}, {fd = -7520, events = 32767, revents = 0}, {
        fd = -151664864, events = 32767, revents = 0}, {fd = -7440, events = 32767, revents = 0}, {fd = 32, events = 0, revents = 0}, {fd = 1154411293, events = 0, revents = 0}, 
      {fd = 82992288, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = -155033707, events = 32767, revents = 0}, {fd = 82902352, events = 0, revents = 0}, {
        fd = 82992328, events = 0, revents = 0}, {fd = 82992240, events = 0, revents = 0}, {fd = 82992328, events = 0, revents = 0}, {fd = 82992432, events = 0, revents = 0}, {
        fd = 82992440, events = 0, revents = 0}, {fd = -7408, events = 32767, revents = 0}, {fd = 4330110, events = 0, revents = 0}, {fd = 82992240, events = 0, revents = 0}, {

---Type to continue, or q to quit---
fd = 82992328, events = 0, revents = 0}, {fd = 1154411293, events = 0, revents = 0}, {fd = 82992288, events = 0, revents = 0}, {fd = -7344, events = 32767, revents = 0},
{fd = 4330408, events = 0, revents = 0}, {fd = 82803864, events = 0, revents = 0}, {fd = 82992432, events = 0, revents = 0}, {fd = -7328, events = 32767, revents = 0}, {
fd = 83001584, events = 0, revents = 0}, {fd = 82992328, events = 0, revents = 0}, {fd = 1154411293, events = 0, revents = 0}, {fd = -7280, events = 32767, revents = 0},
{fd = 4330284, events = 0, revents = 0}, {fd = -7280, events = 32767, revents = 0}, {fd = 4328401, events = 0, revents = 0}, {fd = 82803856, events = 0, revents = 0}, {
fd = 83010880, events = 0, revents = 0}, {fd = 82992328, events = 0, revents = 0}, {fd = 1154411293, events = 0, revents = 0}, {fd = -7216, events = 32767, revents = 0},
{fd = 4330284, events = 0, revents = 0}, {fd = 81374128, events = 0, revents = 0}, {fd = 82992288, events = 0, revents = 0}, {fd = 82992384, events = 0, revents = 0}, {
fd = 81487056, events = 0, revents = 0}, {fd = 82992328, events = 0, revents = 0}, {fd = 1154411293, events = 0, revents = 0}, {fd = -7152, events = 32767, revents = 0},
{fd = 4330352, events = 0, revents = 0}, {fd = 2121428943, events = 0, revents = 0}, {fd = 82992288, events = 0, revents = 0}, {fd = -7120, events = 32767, revents = 0}, {
fd = 83015360, events = 0, revents = 0}, {fd = 82992328, events = 0, revents = 0}, {fd = 1154411293, events = 0, revents = 0}, {fd = -7088, events = 32767, revents = 0},
{fd = 4330284, events = 0, revents = 0}, {fd = 82992288, events = 0, revents = 0}, {fd = 2121428943, events = 0, revents = 0}, {fd = -7056, events = 32767, revents = 0}, {
fd = 83029648, events = 0, revents = 0}, {fd = 82992328, events = 0, revents = 0}, {fd = 1154411293, events = 0, revents = 0}, {fd = -7024, events = 32767, revents = 0},
{fd = 4330284, events = 0, revents = 0}, {fd = 82992288, events = 0, revents = 0}, {fd = 2121428943, events = 0, revents = 0}, {fd = -6992, events = 32767, revents = 0}, {
fd = 83032624, events = 0, revents = 0}, {fd = 82992328, events = 0, revents = 0}, {fd = 1154411293, events = 0, revents = 0}, {fd = -6960, events = 32767, revents = 0},
{fd = 4330284, events = 0, revents = 0}, {fd = 82992288, events = 0, revents = 0}, {fd = 2121428943, events = 0, revents = 0}, {fd = -6928, events = 32767, revents = 0}, {
fd = 82929616, events = 0, revents = 0}, {fd = 82992328, events = 0, revents = 0}, {fd = 1154411293, events = 0, revents = 0}, {fd = -6896, events = 32767, revents = 0},
{fd = 4330284, events = 0, revents = 0}, {fd = 74828544, events = 0, revents = 0}, {fd = 82992328, events = 0, revents = 0}, {fd = -6864, events = 32767, revents = 0}, {
fd = 82992328, events = 0, revents = 0}, {fd = 4, events = 0, revents = 0}, {fd = 42012480, events = 0, revents = 0}, {fd = -6864, events = 32767, revents = 0}, {
fd = 4331542, events = 0, revents = 0}, {fd = 1396623572, events = 0, revents = 0}, {fd = 74828544, events = 0, revents = 0}, {fd = -6768, events = 32767, revents = 0}}
cc = 2
x = 2
timer =
PRETTY_FUNCTION = "net_loop"
#14 0x000000000040dec3 in main_loop () at loop.c:147

No locals.
#15 0x000000000040ebbe in loop () at loop.c:624

    __PRETTY_FUNCTION__ = "loop"
    i = <optimized out>

#16 0x000000000040c4dd in main (argc=6, argv=0x7fffffffe6f8) at main.c:504

No locals.
(gdb) bt
#0 0x00007ffff6bd9425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff6bdcb8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff6bd20ee in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007ffff6bd2192 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x000000000043a181 in replay_log_event () at binlog.c:1128
#5 0x000000000043b17a in add_log_event (len=12, data=0x2810f40) at binlog.c:1243
#6 add_log_event (data=0x2810f40, len=12) at binlog.c:1233
#7 0x000000000041ccbb in msg_send_on_error (q=0x4dd7fe0, error_code=, error_len=, error=) at queries.c:890
#8 0x0000000000422810 in query_error (id=5998452567028623332) at queries.c:194
#9 0x000000000041c30d in process_rpc_message (c=0x4da75a0, enc=0x2e610c0, len=104) at mtproto-client.c:1708
#10 0x000000000041c79f in rpc_execute (c=0x4da75a0, op=260751646, len=104) at mtproto-client.c:1767
#11 0x0000000000413e1e in try_rpc_read (c=0x4da75a0) at net.c:487
#12 0x0000000000414388 in connections_poll_result (fds=, max=1) at net.c:578
#13 0x000000000040dd8b in net_loop (flags=1, is_end=0x40d0d0 ) at loop.c:101
#14 0x000000000040dec3 in main_loop () at loop.c:147
#15 0x000000000040ebbe in loop () at loop.c:624
#16 0x000000000040c4dd in main (argc=6, argv=0x7fffffffe6f8) at main.c:504

(gdb)

@vysheng
Copy link
Owner

vysheng commented Sep 10, 2014

fixed.

@vysheng vysheng closed this as completed Sep 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants