Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 83714

Summary: Muine (or mono) crashes randomly as if somebody `kill -9`ed it -- prints "Killed"
Product: Gentoo Linux Reporter: Tim Macfarlane <timmacfarlane>
Component: [OLD] GNOMEAssignee: dotnet project <dotnet>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tim Macfarlane 2005-03-01 12:47:36 UTC
When running Muine, at completely random moments, the application simply terminates with the terminal message "Killed" -- as if somebody sent a SIGKILL interrupt to it using `kill -9`.

I couldn't determine consistent sequence of user actions that would cause this, which makes me think that perhaps one of it's many threads may have caused mono to crash. Perhaps the thread that is downloading album art?

Also, this is the first time I've run a mono application on this machine, and I haven't attempted to run any other mono applications yet, so perhaps this is a mono bug and not one of muine's... I'll get back to you on this.



Reproducible: Always
Steps to Reproduce:
1. Run muine
2. watch it receive a SIGKILL (from the linux gods)
3.

Actual Results:  
It gets killed.
on stdout:

Killed

Expected Results:  
not crash?

here's some output from `equery depgraph muine` trimmed to 2 levels:
media-sound/muine-0.6.3-r2:
`-- media-sound/muine-0.6.3-r2
 `-- dev-dotnet/mono-1.0.6
  `-- sys-libs/glibc-2.3.4.20040808-r1 (virtual/libc)
  `-- dev-libs/glib-2.4.8
  `-- dev-libs/icu-3.2
  `-- dev-util/pkgconfig-0.15.0
  `-- dev-libs/libxml2-2.6.16
 `-- dev-dotnet/gtk-sharp-1.0.6
  `-- sys-devel/automake-1.9.4
  `-- x11-libs/gtk+-2.4.14
  `-- gnome-base/orbit-2.12.0
 `-- dev-dotnet/gnome-sharp-1.0.6
  `-- gnome-base/libgnomecanvas-2.8.0
  `-- gnome-base/libgnomeui-2.8.0
  `-- gnome-base/libgnomeprintui-2.8.1
  `-- dev-dotnet/art-sharp-1.0.6
 `-- dev-dotnet/glade-sharp-1.0.6
 `-- dev-dotnet/gconf-sharp-1.0.6
 `-- media-libs/xine-lib-1_rc8-r1
  `-- media-libs/libvorbis-1.1.0
  `-- media-libs/win32codecs-20050115
  `-- media-libs/libdvdcss-1.2.8
  `-- kde-base/arts-1.3.2
  `-- media-libs/flac-1.1.0-r2
  `-- media-libs/libsdl-1.2.7-r3
  `-- media-libs/libfame-0.9.0
 `-- media-libs/gstreamer-0.8.8
 `-- media-libs/gst-plugins-0.8.5-r1
 `-- media-plugins/gst-plugins-gnomevfs-0.8.5
 `-- media-plugins/gst-plugins-mad-0.8.5
 `-- media-plugins/gst-plugins-vorbis-0.8.5
 `-- media-plugins/gst-plugins-flac-0.8.5

and my emerge info:
Gentoo Base System version 1.4.16
Portage 2.0.51-r15 (default-linux/x86/2004.2, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 23 2005, 21:18:56)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://gentoo.tiscali.nl/gentoo/ http://ftp.easynet.nl/mirror/gentoo/
http://gentoo.mirror.sdv.fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bonobo
cdr crypt cups curl doc dvd emacs emboss encode esd evo f77 fam flac font-server
foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick
imlib ipv6 java jpeg junit kde libg++ libwww mad mikmod motif mozilla mpeg mysql
ncurses nls oggvorbis opengl oss pam pdflib perl png postgres ppds python qt
quicktime readline ruby samba sdl slang spell ssl svga tcpd tetex tiff truetype
truetype-fonts type1-fonts usb xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Peter Johanson (RETIRED) gentoo-dev 2005-03-01 18:36:19 UTC
I've noticed some threading issues with mono-1.0.6, can you  get me a good backtrace when this crashes, and try also with mono-1.0.6-r4? Thanks.
Comment 2 Tim Macfarlane 2005-03-02 14:20:26 UTC
From Muine being completely unreliable (crashing within 20sec of launching), it is now totally reliable - i've been running it now for hours.

I haven't tested this but my guess is that it tends to crash during the import of a music library (reading mp3/ogg/flac headers, downloading album art, or something else). Now that my music library has been imported, it's running fine.

I'll try to erase Muine's knowledge of my music library and import it again and see what happens -- then I'll get you a stack trace... BTW, do you mean a .Net backtrace or a GDB backtrace? How does one get a .Net backtrace? --debug?
Comment 3 Tim Macfarlane 2005-03-04 12:59:30 UTC
This stack frame was with CFLAGS=""

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 229385 (LWP 9091)]
0x43f759ff in ?? ()
(gdb) bt
#0  0x43f759ff in ?? ()
#1  0xbe9ff568 in ?? ()
#2  0x43f751d0 in ?? ()
#3  0x0808eee0 in ?? ()
#4  0x095c8120 in ?? ()
#5  0xbe9ff4f4 in ?? ()
#6  0x40d9dacb in pthread_mutex_unlock () from /lib/libpthread.so.0
#7  0x43f740e0 in ?? ()
#8  0x095c8120 in ?? ()
#9  0x095c53b8 in ?? ()
#10 0x40d9daf9 in pthread_mutex_unlock () from /lib/libpthread.so.0
#11 0x43f73ddc in ?? ()
#12 0x08668a20 in ?? ()
#13 0x082720f0 in ?? ()
#14 0x0966e720 in ?? ()
#15 0xbe9ff87c in ?? ()
#16 0x00000000 in ?? ()
#17 0x00000001 in ?? ()
#18 0x4373fa58 in ?? ()
#19 0x00000000 in ?? ()
#20 0xbe9ff87c in ?? ()
#21 0x436cb88e in ?? ()
#22 0x08668a20 in ?? ()
#23 0x082720f0 in ?? ()
#24 0x400775b4 in mono_jit_compile_method_with_opt (method=0x8668a20, opt=136782064) at mini.c:8086
Previous frame inner to this frame (corrupt stack?)


this stack frame with CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
SIGSEGV

#0  0x43b4d82f in ?? ()
#1  0xbe7ff598 in ?? ()
#2  0x40d75967 in pthread_mutex_lock () from /lib/libpthread.so.0
#3  0x4380f128 in ?? ()
#4  0x08c41360 in ?? ()
#5  0x0964e2a0 in ?? ()
#6  0x00000001 in ?? ()
#7  0x40efd590 in __after_morecore_hook () from /lib/libc.so.6
#8  0x40d78ac0 in __pthread_unlock () from /lib/libpthread.so.0
#9  0x4380f014 in ?? ()
#10 0x082d1ed0 in ?? ()
#11 0x082c1f18 in ?? ()
#12 0x435f92f8 in ?? ()
#13 0xbe7ff8ac in ?? ()
#14 0x00000000 in ?? ()
#15 0x00000001 in ?? ()
#16 0x437f49d0 in ?? ()
#17 0x00000000 in ?? ()
#18 0xbe7ff8ac in ?? ()
#19 0x435f93d6 in ?? ()
#20 0x082d1ed0 in ?? ()
#21 0x082c1f18 in ?? ()
#22 0x401d5df7 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0
#23 0x096810c8 in ?? ()
#24 0x082c1f18 in ?? ()
#25 0xbe7ff8dc in ?? ()
#26 0x40076446 in mono_jit_compile_method (method=0x0) at mini.c:8115

sorry, neither of them seem to be very useful. GDB complained of a corrupt stack.

This is still with 1.0.6 (not r4) I'll check that next
Comment 4 Peter Johanson (RETIRED) gentoo-dev 2005-03-07 16:20:24 UTC
Can you please try adding "-g" to your CFLAGS, and set FEATURES="nostrip" and re-emerge mono? That may help us get more useful debugging info. Also any news on mono-1.0.5-r4 (or the new -r5 which is pretty much the same thing)? Thanks.
Comment 5 Peter Johanson (RETIRED) gentoo-dev 2005-03-22 18:59:58 UTC
Marking NEEDINFO, please feel free to re-open when you have a better stack trace or results of trying the now stable mono-1.0.5-r5. Thanks.