Opened 8 years ago

Closed 8 years ago

#5762 closed Bug (duplicate)

Recent Transmission versions will crash with assertion failure on my set of torrents.

Reported by: pathetic_loser Owned by:
Priority: High Milestone: None Set
Component: Transmission Version: 2.84
Severity: Critical Keywords:
Cc:

Description

After running for some time, usually about 5-20 minutes with my set of torrents, recent Transmission versions will crash with following message:

transmission-gtk: peer-msgs.c:708: tr_peerMsgsCalculateActive: Assertion `!tr_peerIsSeed (&msgs->peer)' failed.

Needless to say it screws up transmission usage to the hell. Bug appeared between 2.82 which was ok for me and 2.83 or 2.84, which are not ok anymore. Since 2.84 got some security fix, staying at older version is not an option any more. Unfortunately I can't use 2.84 due to mentioned crashes.

Backtraces:

  1. Crash under GDB:
    transmission-gtk: peer-msgs.c:708: tr_peerMsgsCalculateActive: Assertion `!tr_peerIsSeed (&msgs->peer)' failed.
    
    Program received signal SIGABRT, Aborted.
    0x00007ffff4f8af89 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
    56	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
    
  1. bt
    (gdb) bt
    #0  0x00007ffff4f8af89 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
    #1  0x00007ffff4f8e398 in __GI_abort () at abort.c:89
    #2  0x00007ffff4f83e46 in __assert_fail_base (fmt=0x7ffff50d57b8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
        assertion=assertion@entry=0x4dd8ad "!tr_peerIsSeed (&msgs->peer)", file=file@entry=0x4dd786 "peer-msgs.c", line=line@entry=708, 
        function=function@entry=0x4de570 <__PRETTY_FUNCTION__.10058> "tr_peerMsgsCalculateActive") at assert.c:92
    #3  0x00007ffff4f83ef2 in __GI___assert_fail (assertion=0x4dd8ad "!tr_peerIsSeed (&msgs->peer)", file=0x4dd786 "peer-msgs.c", line=708, 
        function=0x4de570 <__PRETTY_FUNCTION__.10058> "tr_peerMsgsCalculateActive") at assert.c:101
    #4  0x00000000004a0ade in tr_peerMsgsCalculateActive (msgs=0x7fffe0542c80, direction=TR_CLIENT_TO_PEER) at peer-msgs.c:708
    #5  0x00000000004a0ce0 in tr_peerMsgsUpdateActive (msgs=0x7fffe0542c80, direction=TR_CLIENT_TO_PEER) at peer-msgs.c:762
    #6  0x00000000004a2e64 in readBtMessage (msgs=0x7fffe0542c80, inbuf=0x7fffe078e250, inlen=175) at peer-msgs.c:1523
    #7  0x00000000004a2560 in readBtId (msgs=0x7fffe0542c80, inbuf=0x7fffe078e250, inlen=176) at peer-msgs.c:1308
    #8  0x00000000004a3b7d in canRead (io=0x7fffe0791310, vmsgs=0x7fffe0542c80, piece=0x7fffe8c638a8) at peer-msgs.c:1774
    #9  0x0000000000492716 in canReadWrapper (io=0x7fffe0791310) at peer-io.c:203
    #10 0x0000000000492a9a in event_read_cb (fd=220, event=2, vio=0x7fffe0791310) at peer-io.c:284
    #11 0x00007ffff609ff24 in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5
    #12 0x000000000046fd7b in libeventThreadFunc (veh=0x7a44a0) at trevent.c:246
    #13 0x0000000000451338 in ThreadFunc (_t=0x80bf90) at platform.c:105
    #14 0x00007ffff5322182 in start_thread (arg=0x7fffe8c64700) at pthread_create.c:312
    #15 0x00007ffff504f38d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
    
  1. bt full
    (gdb) bt full
    #0  0x00007ffff4f8af89 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
            resultvar = 0
            pid = 16024
            selftid = 16030
    #1  0x00007ffff4f8e398 in __GI_abort () at abort.c:89
            save_stage = 2
            act = {__sigaction_handler = {sa_handler = 0x7fffffffe372, sa_sigaction = 0x7fffffffe372}, sa_mask = {__val = {140737304665254, 5101446, 708, 4294967295, 
                  140737303304099, 0, 140737098692032, 3905304112, 140737098691952, 140737488350675, 0, 0, 0, 21474836480, 140737106452480, 140737304680376}}, 
              sa_flags = 5101741, sa_restorer = 0x4de570 <__PRETTY_FUNCTION__.10058>}
            sigs = {__val = {32, 0 <repeats 15 times>}}
    #2  0x00007ffff4f83e46 in __assert_fail_base (fmt=0x7ffff50d57b8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
        assertion=assertion@entry=0x4dd8ad "!tr_peerIsSeed (&msgs->peer)", file=file@entry=0x4dd786 "peer-msgs.c", line=line@entry=708, 
        function=function@entry=0x4de570 <__PRETTY_FUNCTION__.10058> "tr_peerMsgsCalculateActive") at assert.c:92
            str = 0x7fffe1315eb0 ""
            total = 4096
    #3  0x00007ffff4f83ef2 in __GI___assert_fail (assertion=0x4dd8ad "!tr_peerIsSeed (&msgs->peer)", file=0x4dd786 "peer-msgs.c", line=708, 
        function=0x4de570 <__PRETTY_FUNCTION__.10058> "tr_peerMsgsCalculateActive") at assert.c:101
    No locals.
    #4  0x00000000004a0ade in tr_peerMsgsCalculateActive (msgs=0x7fffe0542c80, direction=TR_CLIENT_TO_PEER) at peer-msgs.c:708
            is_active = true
            __PRETTY_FUNCTION__ = "tr_peerMsgsCalculateActive"
    #5  0x00000000004a0ce0 in tr_peerMsgsUpdateActive (msgs=0x7fffe0542c80, direction=TR_CLIENT_TO_PEER) at peer-msgs.c:762
            is_active = false
    #6  0x00000000004a2e64 in readBtMessage (msgs=0x7fffe0542c80, inbuf=0x7fffe078e250, inlen=175) at peer-msgs.c:1523
            ui32 = 3002012287
            msglen = 0
            id = 2 '\002'
            startBufLen = 175
            fext = true
            __PRETTY_FUNCTION__ = "readBtMessage"
    #7  0x00000000004a2560 in readBtId (msgs=0x7fffe0542c80, inbuf=0x7fffe078e250, inlen=176) at peer-msgs.c:1308
            id = 2 '\002'
    #8  0x00000000004a3b7d in canRead (io=0x7fffe0791310, vmsgs=0x7fffe0542c80, piece=0x7fffe8c638a8) at peer-msgs.c:1774
            ret = READ_LATER
            msgs = 0x7fffe0542c80
            in = 0x7fffe078e250
            inlen = 176
            __PRETTY_FUNCTION__ = "canRead"
    #9  0x0000000000492716 in canReadWrapper (io=0x7fffe0791310) at peer-io.c:203
            oldLen = 176
            ret = 0
            overhead = 0
            piece = 0
            used = 4
            now = 1407456318079
            err = false
            done = false
            session = 0x9a8c00
            __PRETTY_FUNCTION__ = "canReadWrapper"
    #10 0x0000000000492a9a in event_read_cb (fd=220, event=2, vio=0x7fffe0791310) at peer-io.c:284
            res = 301
            e = 0
            io = 0x7fffe0791310
            howmuch = 262144
            curlen = 0
            dir = TR_PEER_TO_CLIENT
            max = 262144
            __PRETTY_FUNCTION__ = "event_read_cb"
    #11 0x00007ffff609ff24 in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5
    ---Type <return> to continue, or q <return> to quit---
    No symbol table info available.
    #12 0x000000000046fd7b in libeventThreadFunc (veh=0x7a44a0) at trevent.c:246
            base = 0x7fffe00008f0
            eh = 0x7a44a0
    #13 0x0000000000451338 in ThreadFunc (_t=0x80bf90) at platform.c:105
            t = 0x80bf90
    #14 0x00007ffff5322182 in start_thread (arg=0x7fffe8c64700) at pthread_create.c:312
            __res = <optimized out>
            pd = 0x7fffe8c64700
            now = <optimized out>
            unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737098696448, 219294531445290458, 1, 0, 140737098697152, 140737098696448, -219331977005009446, 
                    -219271950430538278}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
            not_first_call = <optimized out>
            pagesize_m1 = <optimized out>
            sp = <optimized out>
            freesize = <optimized out>
            __PRETTY_FUNCTION__ = "start_thread"
    #15 0x00007ffff504f38d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
    

Change History (2)

comment:1 Changed 8 years ago by x190

pathetic_loser, please try r14319 or higher. This crash has been reported numerous times. See #5505.

comment:2 Changed 8 years ago by livings124

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.