Opened 10 years ago

Closed 10 years ago

#4870 closed Bug (duplicate)

Segmentation fault in funciton malloc of libc

Reported by: jianmeng Owned by:
Priority: Normal Milestone: None Set
Component: Transmission Version: 2.51
Severity: Normal Keywords: SIGSEGV malloc
Cc:

Description

I meet a strange Segmentation fault using manually compile version transmission-daemon from svn.

In my torrents home directory (~/.config/transmission-daemon/torrents),there are several torrents here. After I run the transmission-daemon command in shell,it crash. But when I put only one torrents file in that directory, it run normally.

my linux version is Linux 3.0.0-17-generic-pae #30-Ubuntu SMP Thu Mar 8 17:53:35 UTC 2012 i686 i686 i386 GNU/Linux.

GDB output is in here: http://pastebin.com/gxwVEuRe

x-valgrind file is in here: http://pastebin.com/wG6zFunh

I guess probable reasons is using malloc in multi-threads which cause a internal state error of function malloc. So I add a lock to tr_malloc function in libtransmission directory, and using set event_set_mem_functions method of libevent to set new with-lock version tr_malloc. Here is my svn diff: http://pastebin.com/fFdxQH70

But after compile code I still got same malloc error.

So help.

Change History (1)

comment:1 Changed 10 years ago by livings124

  • Resolution set to duplicate
  • Status changed from new to closed
Version 1, edited 10 years ago by livings124 (previous) (next) (diff)
Note: See TracTickets for help on using tickets.