Opened 12 years ago

Closed 12 years ago

#3629 closed Bug (fixed)

transmission-cli 2.10 segfaults every time I try to use it

Reported by: specnaz Owned by: charles
Priority: Normal Milestone: 2.12
Component: CLI Version: 2.10
Severity: Major Keywords:


Starting new session with transmission-cli causes instant segfault. Transmission-gtk, daemon, web-client are ok.

Few lines from dmesg:

transmission-cl[12946]: segfault at 786bc678 ip 0804ccb5 sp bfb01a88 error 6 in transmission-cli[8048000+5a000] transmission-cl[22027]: segfault at 786b7678 ip 0804ccb5 sp bf87ef78 error 6 in transmission-cli[8048000+5a000] transmission-cl[22058]: segfault at 785fc678 ip 0804ccb5 sp bf9a8d08 error 6 in transmission-cli[8048000+5a000] transmission-cl[22059]: segfault at 78682678 ip 0804ccb5 sp bfc652e8 error 6 in transmission-cli[8048000+5a000] transmission-cl[22060]: segfault at b77d200c ip 0804d4e1 sp bfbf4730 error 4 in transmission-cli[8048000+5a000]

This happens each time.

O.S: Slackware 13.1- bit

Change History (6)

comment:1 Changed 12 years ago by charles

  • Keywords needinfo added; transmission-cli removed

Hi specnaz,

Unfortunately the dmseg isn't very helpful. Could you try running transmission-cli in gdb and get a backtrace for it?

This page describes how to get a backtrace. The debug symbol version may be named differently on slackware than on debian, but the rest of the ideas should port over correctly.

comment:2 Changed 12 years ago by charles

specnaz, any news?

comment:3 Changed 12 years ago by the0

Hi all! I'm using up-to-date Arch Linux (2.6.35-ARCH 32-bit) and having the same issue with transmission-cli 2.11:

[the0@can ~]$ gdb -q transmission-cli
Reading symbols from /usr/bin/transmission-cli...done.
(gdb) set pagination 0
(gdb) run -w /media/temp/torrents /media/temp/tpb_cd.torrent 
Starting program: /usr/bin/transmission-cli -w /media/temp/torrents /media/temp/tpb_cd.torrent
[Thread debugging using libthread_db enabled]
transmission-cli 2.11 (11316)

Program received signal SIGSEGV, Segmentation fault.
tr_bencInit (val=0xc0efdba0, type=2 '\002') at bencode.c:71
71	    memset( val, 0, sizeof( *val ) );
(gdb) bt
#0  tr_bencInit (val=0xc0efdba0, type=2 '\002') at bencode.c:71
#1  0x0804de61 in tr_bencInitRaw (val=0xc0efdba0, src=0x8095bd4, byteCount=12) at bencode.c:593
#2  0x0804e27a in tr_bencDictAdd (dict=0xbffff98c, key=0x8095bd4 "download-dir") at bencode.c:763
#3  0x0804e555 in tr_bencDictAddStr (dict=0xbffff98c, key=0x8095bd4 "download-dir", val=0xbffffc16 "/media/temp/torrents") at bencode.c:835
#4  0x0804c0a2 in parseCommandLine (argc=4, argv=0xbffffa84) at cli.c:401
#5  main (argc=4, argv=0xbffffa84) at cli.c:236
(gdb) quit

PS. It works fine without "-w" option.

comment:4 Changed 12 years ago by Longinus00

tr_bencInitDict is called too late, t should be called before the call to parseCommandLine. praseCommandLine should also come after tr_sessionLoadSettings or else it will get overwritten.

Looks like this is fallout from r11163.

Last edited 12 years ago by Longinus00 (previous) (diff)

comment:5 Changed 12 years ago by charles

  • Keywords needinfo removed
  • Milestone changed from None Set to 2.12
  • Owner changed from specnaz to charles
  • Severity changed from Critical to Major
  • Status changed from new to assigned

comment:6 Changed 12 years ago by charles

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in trunk by r11330 for 2.12.

edit revised in r11335

Last edited 12 years ago by charles (previous) (diff)
Note: See TracTickets for help on using tickets.