Opened 11 years ago

Closed 11 years ago

#2740 closed Bug (fixed)

sefault in torrent creating

Reported by: Elbandi Owned by: charles
Priority: Normal Milestone: 1.80
Component: CLI Version: 1.76
Severity: Normal Keywords:
Cc:

Description

Try to create a torrent from a not exist file, you get:

/home/hardy/transmission/transmission/cli/transmissioncli -n notexists aaaa.torrent
Transmission 1.80b4 (9886) - http://www.transmissionbt.com/
[03:15:40.146] Transmission 1.80b4 (9886) started
[03:15:40.146] RPC Server: Adding address to whitelist: 127.0.0.1
[03:15:40.146] RPC Server: Serving RPC and Web requests on port 9091
[03:15:40.146] RPC Server: Whitelist enabled
[03:15:40.148] DHT: Generating new id
Did you mean to create a torrent without a tracker's announce URL?
creating torrent "aaaa.torrent"
[03:15:40.247] Torrent Creator is skipping file "./notexists": No such file or directory
Segmentation fault

I know, it doesn't make sense, but T sould not so exit :)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6940b90 (LWP 20611)]
0x080544d4 in makeInfoDict (dict=0x80c67b8, builder=0x80c5ec0) at makemeta.c:344
warning: Source file is more recent than executable.
344             tr_bencDictAddInt( dict, "length", builder->files[0].size );
(gdb) where
#0  0x080544d4 in makeInfoDict (dict=0x80c67b8, builder=0x80c5ec0) at makemeta.c:344
#1  0x08054914 in tr_realMakeMetaInfo (builder=0x80c5ec0) at makemeta.c:423
#2  0x08054a3c in makeMetaWorkerFunc (unused=0x0) at makemeta.c:487
#3  0x0805650f in ThreadFunc (_t=0x80de470) at platform.c:115
#4  0xb7d3a4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb7cbce5e in clone () from /lib/tls/i686/cmov/libc.so.6

Change History (2)

comment:1 Changed 11 years ago by charles

  • Component changed from Transmission to CLI
  • Milestone changed from None Set to 1.80
  • Owner set to charles
  • Status changed from new to assigned

comment:2 Changed 11 years ago by charles

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

fixed in trunk for 1.80 by r9903

Note: See TracTickets for help on using tickets.