LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-19-2015, 08:59 PM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
transmission-gtk/cli 2.82 segfault, can't find source of problem


So I've been having trouble with transmission (both gtk and cli) in Linux Mint 17.1, Ubuntu 14.04.1, and now LXLE (which so far I'm liking best of the *buntu based distros). Every time I try to add a torrent file to transmission, it adds and starts but before even .001kB can download it crashes. Terminal output of transmission-gtk was simply "Segmentation fault." I tried transmission-cli, and got this:

Code:
lra@deb-lapt:~$ transmission-cli Downloads/fta-m2-admin_gnulinux-v1.pdf.torrent 
transmission-cli 2.82 (14160)
[21:38:59.399] Transmission 2.82 (14160) started
[21:38:59.400] RPC Server: Adding address to whitelist: 127.0.0.1
[21:38:59.400] UDP: Failed to set receive buffer: requested 4194304, got 425984
[21:38:59.400] UDP: Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf
[21:38:59.400] UDP: Failed to set send buffer: requested 1048576, got 425984
[21:38:59.400] UDP: Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf
[21:38:59.400] DHT: Generating new id
[21:38:59.439] Saved "/home/lra/.config/transmission/torrents/fta-m2-admin_gnulinux-v1.pdf.94daf68d28374590.torrent"
[21:38:59.723] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[21:38:59.723] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)
[21:39:01.740] Port Forwarding (UPnP): Found Internet Gateway Device "http://192.168.2.1:23481/upnp/control/WANIPConn1"
[21:39:01.740] Port Forwarding (UPnP): Local Address is "192.168.2.10"
[21:39:01.798] Port Forwarding (UPnP): Port forwarding through "http://192.168.2.1:23481/upnp/control/WANIPConn1", service "urn:schemas-upnp-org:service:WANIPConnection:1". (local address: 192.168.2.10:51413)
[21:39:01.798] Port Forwarding (UPnP): Port forwarding successful!
[21:39:01.798] Port Forwarding: State changed from "Not forwarded" to "Forwarded"
Progress: 0.0, dl from 0 of 0 peers (0 kB/s), ul tSegmentation fault]
I tried googling and found mentions of this happening on *buntu systems, and arch, but with older versions (2.3*, 2.42, 2.75). Each time a person had a problem before with segfaults the suggestion was to upgrade to the latest and that solved it, except one which suggested uninstalling all XFCE4 items, removing their files in ~/.config, and reinstalling them then everything was flawless, but that didn't work for me. I would try getting the latest version, but the only download option is source, and when I try to run "./configure" It fails with this:

Code:
[...]
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENSSL... no
checking for OpenSSL... configure: error: Cannot locate ssl
So I'm now at a road block and could use some outside advice/suggestions. Thanks!



(Why do I always seem to have problems with every distro when doing the simplest things?)

Last edited by slacker_; 03-19-2015 at 09:02 PM.
 
Old 03-21-2015, 06:27 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
checking for OpenSSL... configure: error: Cannot locate ssl
Well, then install openssl :

$ sudo apt-get install libssl-dev

* http://packages.ubuntu.com/trusty-updates/libssl-dev



-
 
Old 03-21-2015, 01:58 PM   #3
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Ah, ok I didn't realize just having openssl installed wasn't enough. I installed libssl-dev, and the rest of the dependencies required, then installed transmission-gtk. Result:

Code:
lra@deb-lapt:~$ transmission-gtk 
Segmentation fault
Great. Tried transmission-cli then, and here's the result:

Code:
lra@deb-lapt:~$ transmission-cli Downloads/fta-m2-admin_gnulinux-v1.pdf.torrent 
transmission-cli 2.84 (14307)
[2015-03-21 14:55:01.095 EDT] Transmission 2.84 (14307) started
[2015-03-21 14:55:01.095 EDT] RPC Server: Adding address to whitelist: 127.0.0.1
[2015-03-21 14:55:01.096 EDT] UDP: Failed to set receive buffer: requested 4194304, got 425984
[2015-03-21 14:55:01.096 EDT] UDP: Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf
[2015-03-21 14:55:01.096 EDT] UDP: Failed to set send buffer: requested 1048576, got 425984
[2015-03-21 14:55:01.096 EDT] UDP: Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf
[2015-03-21 14:55:01.096 EDT] DHT: Generating new id
[2015-03-21 14:55:01.155 EDT] Saved "/home/lra/.config/transmission/torrents/fta-m2-admin_gnulinux-v1.pdf.94daf68d28374590.torrent"
[2015-03-21 14:55:01.428 EDT] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[2015-03-21 14:55:01.428 EDT] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)
Progress: 0.0, dl fro[2015-03-21 14:55:07.439 EDT] Port Forwarding: State changed from "Not forwarded" to "Starting"
[2015-03-21 14:55:07.503 EDT] fta-m2-admin_gnulinux-v1.pdf: Could not connect to tracker
[2015-03-21 14:55:07.503 EDT] fta-m2-admin_gnulinux-v1.pdf: Retrying announce in 0 seconds.
Progress: 0.0%, dl from 0 of 0 peers (0 kB/s), ul to 0 (0 kB/s) [0.00]    [2015-03-21 14:55:10.147 EDT] Port Forwarding: State changed from "Starting" to "???"
Progress: 0.0%, dl fr^Com 0 of 0 peers (0 kB/s), ul to 0 (0 kB/s) [0.00]        Progress: 0.0%, dl from 0 of 0 peers (0 kB/s), ul to 0 (0 kB/s) [0.00]          
Stopping torrent...
[2015-03-21 14:55:42.636 EDT] fta-m2-admin_gnulinux-v1.pdf: Pausing
[2015-03-21 14:55:42.650 EDT] Saved "/home/lra/.config/transmission/settings.json"

[2015-03-21 14:55:42.650 EDT] Saved "/home/lra/.config/transmission/resume/fta-m2-admin_gnulinux-v1.pdf.94daf68d28374590.resume"
[2015-03-21 14:55:42.650 EDT] DHT: Not saving nodes, DHT not ready
[2015-03-21 14:55:42.650 EDT] Port Forwarding: Stopped
[2015-03-21 14:55:42.650 EDT] fta-m2-admin_gnulinux-v1.pdf: Removing torrent
[2015-03-21 14:55:42.650 EDT] fta-m2-admin_gnulinux-v1.pdf: Pausing
[2015-03-21 14:55:42.650 EDT] Saved "/home/lra/.config/transmission/stats.json"
I had to cancel it because it just stalled out at 0.00% for about 3 minutes.

Any ideas from here?
 
Old 04-19-2015, 12:52 AM   #4
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Still haven't found a solution. Any ideas anyone?
 
Old 04-19-2015, 04:37 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Use strace to check where it gets error:

Code:
strace -o debug.log transmission-cli
See the log file to make a solution.

If that doesn't works you should use a debugger like gdb. It may show where in code the segfault occurs and if you can amend it or let upstream developers fix it.
 
Old 04-19-2015, 06:12 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i'd stick with the currently packaged version, and search ubuntu forums.
also your first post's log suggests "UDP: Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf" - no harm in trying, can always undo it.
next i'd try to disable extra features in transmission's preferences (like udp, upnp...) one by one. maybe the culprit is to be found there.

edit:
fwiw, transmission works good on my system. archlinux.

Last edited by ondoho; 04-19-2015 at 06:13 AM.
 
  


Reply

Tags
segfault, segmentation fault, transmission, ubuntu 14.04.1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't Install Transmission-cli kb2tfa Linux - Software 2 12-12-2014 01:57 AM
Use tsocks with transmission-cli? penyuan Linux - Networking 0 02-10-2013 04:45 PM
SegFault with transmission-gtk fc-16 thezerodragon Linux - Newbie 1 11-09-2011 09:28 PM
Transmission CLI process management Jayel Linux - Server 3 10-01-2011 09:46 AM
GTK+ problem loading image segfault exvor Programming 3 09-13-2010 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration