Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534308 - =net-p2p/transmission-2.84 - transmission: segmentation fault in node_alloc () at list.c:43
Summary: =net-p2p/transmission-2.84 - transmission: segmentation fault in node_alloc (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-01-02 10:26 UTC by Marco Ziebell
Modified: 2015-10-03 19:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info transmission (info.txt,5.43 KB, text/plain)
2015-01-02 10:27 UTC, Marco Ziebell
Details
the upstream patch! (trac_5735.patch,1.18 KB, patch)
2015-01-10 22:22 UTC, Marco Ziebell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Ziebell 2015-01-02 10:26:32 UTC
I've added quite a number of torrent files to transmission (46+) and now it crashes after startu

My system is amd64

CFLAGS="-mtune=native -march=native -pipe -O1 -fno-omit-frame-pointer -fuse-ld=gold -g3 -ggdb3 -gdwarf-4 -fvar-tracking-assignments -fvar-tracking -fweb"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,--hash-style=gnu -fuse-ld=gold"

backtrace from gdb:
#0  node_alloc () at list.c:43
#1  0x000000000046cb34 in tr_list_append (list=list@entry=0x7fffec13b9f8, data=data@entry=0x7fffec79e330) at list.c:99
#2  0x000000000047f09a in on_idle (w=w@entry=0x7fffec13a700) at webseed.c:355
#3  0x000000000047f101 in webseed_timer_func (foo=<optimized out>, bar=<optimized out>, vw=0x7fffec13a700) at webseed.c:516
#4  0x000000333720f2b4 in event_base_loop () from /usr/lib64/libevent-2.0.so.5
#5  0x00000000004589f7 in libeventThreadFunc (veh=0x54eb30) at trevent.c:246
#6  0x0000000000445189 in ThreadFunc (_t=0x54b4e0) at platform.c:105
#7  0x000000333480833a in start_thread () from /lib64/libpthread.so.0
#8  0x00000033340ea6ed in clone () from /lib64/libc.so.6

Reproducible: Always
Comment 1 Marco Ziebell 2015-01-02 10:27:19 UTC
Created attachment 392938 [details]
emerge --info transmission
Comment 2 Marco Ziebell 2015-01-02 13:42:56 UTC
The segfault is known [1] and fixed upstream [2].
Patch is working on my system


[1] https://trac.transmissionbt.com/ticket/5735
[2] https://trac.transmissionbt.com/changeset/14319
Comment 3 Marco Ziebell 2015-01-10 22:22:06 UTC
Created attachment 393646 [details, diff]
the upstream patch!
Comment 4 Mike Gilbert gentoo-dev 2015-10-03 19:10:13 UTC
commit 63a4598a1ae65384bf49a869b292a90509d96633
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sat Oct 3 15:09:17 2015 -0400

    net-p2p/transmission: Fix segfault
    
    Bug: https://bugs.gentoo.org/534308
    
    Package-Manager: portage-2.2.22_p5

 .../files/2.84-node_alloc-segfault.patch           | 55 ++++++++++++++++++++++
 ...-2.84-r2.ebuild => transmission-2.84-r3.ebuild} |  1 +
 2 files changed, 56 insertions(+)