Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2724 closed Bug (invalid)

Segmentation fault: 11 (core dumped)

Reported by: nijikon Owned by:
Priority: Normal Milestone: None Set
Component: Daemon Version: 1.76+
Severity: Normal Keywords: needinfo
Cc:

Description

I keep getting Segmentation fault: 11 (core dumped) on the svn trunk version, how can I provide You guys with useful feedback so You can fix the issue?

Change History (14)

comment:1 Changed 12 years ago by charles

nijikon, what platform are you on?

comment:2 Changed 12 years ago by charles

  • Keywords needinfo added
  • Priority changed from Highest to Normal
  • Severity changed from Blocker to Normal

comment:3 Changed 12 years ago by nijikon

FreeBSD 6.2-RELEASE-p3

comment:4 Changed 12 years ago by charles

Preferred would be a valgrind log, if valgrind works on 6.2-RELEASE-p3. Otherwise, from gdb a backtrace of "thread apply all bt" would be good.

comment:5 Changed 12 years ago by nijikon

can You be more specific, i didn't use valgrind or gdb ever.

comment:6 Changed 12 years ago by charles

Since you're compiling Transmission yourself, after making sure you've got valgrind installed, go into the daemon/ directory and run the file "my-valgrind.sh". After the daemon crashes, attach valgrind's output file to this ticket. Thanks!

comment:7 Changed 12 years ago by nijikon

i can't install valgrind on current version of my system, so how can I do this with gdb?

comment:8 Changed 12 years ago by charles

% cd transmission/gtk/
% gdb ./transmission
(gdb) handle SIGPIPE nostop noprint nopass
(gdb) r
... run until the crash ...
(gdb) thread apply all bt

comment:9 Changed 12 years ago by nijikon

[n@h1 ~/Transmission/daemon]$ env CLUTCH_HOME=/home/n/Transmission/web gdb "./transmission-daemon" GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) handle SIGPIPE nostop noprint nopass Signal Stop Print Pass to program Description SIGPIPE No No No Broken pipe (gdb) r Starting program: /home/n/Transmission/daemon/transmission-daemon warning: Unable to get location for thread creation breakpoint: generic error [New LWP 100118]

Program exited normally.

comment:10 Changed 12 years ago by nijikon

[n@h1 ~/Transmission/daemon]$ env CLUTCH_HOME=/home/n/Transmission/web gdb "./transmission-daemon"
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) handle SIGPIPE nostop noprint nopass
Signal        Stop      Print   Pass to program Description
SIGPIPE       No        No      No              Broken pipe
(gdb) r
Starting program: /home/n/Transmission/daemon/transmission-daemon 
warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100118]

Program exited normally.

comment:11 Changed 12 years ago by jch

Hmm, looks like a gdb bug on your platform.

Try this, then:

$ ulimit -c unlimited
$ transmission
  <transmission crashes>
$ gdb /full/path/to/transmisison core
(gdb) thread apply all bt

comment:12 Changed 12 years ago by nijikon

[n@h1 ~/Transmission/daemon]$ gdb /home/n/Transmission/daemon/transmission-daemon transmission-daemon.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...

warning: core file may not match specified executable file.
Core was generated by `transmission-daemon'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/local/lib/libcurl.so.5...done.
Loaded symbols for /usr/local/lib/libcurl.so.5
Reading symbols from /usr/local/lib/libssl.so.5...done.
Loaded symbols for /usr/local/lib/libssl.so.5
Reading symbols from /usr/local/lib/libcrypto.so.5...done.
Loaded symbols for /usr/local/lib/libcrypto.so.5
Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libpthread.so.2...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x282c8537 in pthread_testcancel () from /lib/libpthread.so.2
[New Thread 0x80c3200 (LWP 100233)]
[New Thread 0x80c3000 (LWP 100050)]

(gdb) thread apply all bt

Thread 2 (Thread 0x80c3000 (LWP 100050)):
#0  0x282c8537 in pthread_testcancel () from /lib/libpthread.so.2
#1  0x282b789a in sigaction () from /lib/libpthread.so.2
#2  0x282b188d in pthread_kill () from /lib/libpthread.so.2
#3  0x282b1256 in raise () from /lib/libpthread.so.2
#4  0x2838ab78 in abort () from /lib/libc.so.6
#5  0x282c8c6f in pthread_testcancel () from /lib/libpthread.so.2
#6  0x282bd85f in _pthread_mutex_trylock () from /lib/libpthread.so.2
#7  0x282be590 in _pthread_mutex_lock () from /lib/libpthread.so.2
#8  0x282b4361 in _spinlock () from /lib/libpthread.so.2
#9  0x28328ddb in _UTF8_init () from /lib/libc.so.6
#10 0x283a3940 in _thread_autoinit_dummy_decl_stub () from /lib/libc.so.6
#11 0x280da8e0 in ?? () from /libexec/ld-elf.so.1
#12 0x280bc395 in symlook_obj () from /libexec/ld-elf.so.1
#13 0x282b93ff in pthread_attr_init () from /lib/libpthread.so.2
#14 0x282b58fd in sigaction () from /lib/libpthread.so.2
#15 0x282bf915 in pthread_mutexattr_init () from /lib/libpthread.so.2
#16 0x282b9116 in pthread_create () from /lib/libpthread.so.2
#17 0x0805222d in tr_threadNew (func=0x80643e8 <libeventThreadFunc>, arg=0x80bb780) at platform.c:134
#18 0x08064582 in tr_eventInit (session=0x80bd200) at trevent.c:249
#19 0x080549fc in tr_sessionInit (tag=0x80a78c4 "daemon", configDir=0x80c6080 "/home/n/.config/transmission-daemon", messageQueuingEnabled=1 '\001',
    clientSettings=0xbfbfe760) at session.c:535
#20 0x0804bdce in main (argc=1, argv=0xbfbfe7e0) at daemon.c:382
warning: Couldn't find general-purpose registers in core file.


Thread 1 (Thread 0x80c3200 (LWP 100233)):
#0  0x282c8537 in pthread_testcancel () from /lib/libpthread.so.2
#1  0x282b789a in sigaction () from /lib/libpthread.so.2
#2  0x282b188d in pthread_kill () from /lib/libpthread.so.2
#3  0x282b1256 in raise () from /lib/libpthread.so.2
#4  0x2838ab78 in abort () from /lib/libc.so.6
#5  0x282c8c6f in pthread_testcancel () from /lib/libpthread.so.2
#6  0x282bd85f in _pthread_mutex_trylock () from /lib/libpthread.so.2
#7  0x282be590 in _pthread_mutex_lock () from /lib/libpthread.so.2
#8  0x282b4361 in _spinlock () from /lib/libpthread.so.2
#9  0x28328ddb in _UTF8_init () from /lib/libc.so.6
#10 0x283a3940 in _thread_autoinit_dummy_decl_stub () from /lib/libc.so.6
#11 0x280da8e0 in ?? () from /libexec/ld-elf.so.1
#12 0x280bc395 in symlook_obj () from /libexec/ld-elf.so.1
#13 0x282b93ff in pthread_attr_init () from /lib/libpthread.so.2
#14 0x282b58fd in sigaction () from /lib/libpthread.so.2
#15 0x282bf915 in pthread_mutexattr_init () from /lib/libpthread.so.2
#16 0x282b9116 in pthread_create () from /lib/libpthread.so.2
#17 0x0805222d in tr_threadNew (func=0x80643e8 <libeventThreadFunc>, arg=0x80bb780) at platform.c:134
#18 0x08064582 in tr_eventInit (session=0x80bd200) at trevent.c:249
#19 0x080549fc in tr_sessionInit (tag=0x80a78c4 "daemon", configDir=0x80c6080 "/home/n/.config/transmission-daemon", messageQueuingEnabled=1 '\001',
    clientSettings=0xbfbfe760) at session.c:535
#20 0x0804bdce in main (argc=1, argv=0xbfbfe7e0) at daemon.c:382
#0  0x282c8537 in pthread_testcancel () from /lib/libpthread.so.2

comment:13 Changed 12 years ago by charles

  • Resolution set to invalid
  • Status changed from new to closed

jch: thanks for the suggestion.

nijikon: something is wrong either with your system or with the way Transmission was built on your system. Transmission is aborting somewhere in OS' pthread_create() system call, which is not something that should ever happen on a system that's well.

I sympathize with your desire to make this work, but I don't think this can be addressed in Transmission's code. You may want to either try using the prebuilt BSD version of Transmission or to ask for help in the BSD forums.

comment:14 Changed 12 years ago by nijikon

will update to FreeBSD 7.0 and we will see if it helps

Note: See TracTickets for help on using tickets.