Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500570 - net-p2p/vuze segfaults when adding torrents
Summary: net-p2p/vuze segfaults when adding torrents
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL: https://bugs.eclipse.org/bugs/show_bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-06 22:30 UTC by PM
Modified: 2021-04-19 08:02 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
full vuze output (vuzelog,854.20 KB, text/plain)
2014-02-06 22:31 UTC, PM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PM 2014-02-06 22:30:01 UTC
It happens every time I try to add a new torrent, which makes Vuze pretty much useless. It also happens after clicking through the UI for a while. Everything used to work fine until recently, I have no idea what might have triggered this.

The error looks like this:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fa7faea4358, pid=5998, tid=140359587026688
#
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgobject-2.0.so.0+0x19358]  g_object_get_qdata+0x18
#
# Core dump written. Default location: /home/piotrek/core or core.5998
#
# An error report file with more information is saved as:
# /home/piotrek/hs_err_pid5998.log
Compiled method (nm)   11034  705     n       org.eclipse.swt.internal.gtk.OS::_g_object_get_qdata (native)
 total in heap  [0x00007fa8091a5d50,0x00007fa8091a60d0] = 896
 relocation     [0x00007fa8091a5e70,0x00007fa8091a5ed0] = 96
 main code      [0x00007fa8091a5ee0,0x00007fa8091a60d0] = 496
Compiled method (nm)   11034  705     n       org.eclipse.swt.internal.gtk.OS::_g_object_get_qdata (native)
 total in heap  [0x00007fa8091a5d50,0x00007fa8091a60d0] = 896
 relocation     [0x00007fa8091a5e70,0x00007fa8091a5ed0] = 96
 main code      [0x00007fa8091a5ee0,0x00007fa8091a60d0] = 496
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Reproducible: Always

Steps to Reproduce:
1.Open Vuze
2.Try to add a torrent, either a .torrent file or a magnet link.
3.



Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.18-r1, 3.11.4-pf x86_64)
=================================================================
System uname: Linux-3.11.4-pf-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.2
KiB Mem:     4044424 total,    345688 free
KiB Swap:    4095996 total,   4095996 free
Timestamp of tree: Thu, 06 Feb 2014 20:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.6.4, 4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo multimedia sunrise steam-overlay kde roslin dupa
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ggdb"                                                                                                                    
CHOST="x86_64-pc-linux-gnu"                                                                                                                               
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"                                                                                                                      
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                           
CXXFLAGS="-O2 -march=native -pipe -ggdb"                                                                                                                  
DISTDIR="/usr/portage/distfiles"                                                                                                                          
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n --autounmask-write"                                                                                     
FCFLAGS="-O2 -march=native -pipe -ggdb"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -pipe -ggdb"
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/multimedia /usr/local/portage/layman/sunrise /usr/local/portage/layman/steam /usr/local/portage/layman/kde /usr/local/portage/layman/roslin /usr/local/portage/moje"
USE="X Xaw3d a52 aac aalib acl acpi adobe-cff alsa amd64 amr amrnb amrwb apng async audiofile automount avahi avresample bash-completion berkdb bfq bineditor bluetooth bluray branding bzip2 c++0x cairo cdda cddb cdparanoia cdr chdir clang cli consolekit cracklib crypt css cuda cups curl cxx dbus dirac disk-partition divx djvu dri dts dvd dvdr ebook editor emboss emovix enca encode exchange exif faac faad fam fat fdk ffmpeg fftw firefox firefox3 flac fontconfig fortran g3dvl gd gdbm geoip gif glitz gmedia gnuplot gphoto2 gpm gtk hddtemp iconv id3 id3tag imagemagick inotify iostats ipod jpeg kde kde4 kdehiddenvisibility kipi kompare kpathsea kqemu ladspa lame laptop lastfm latex lcms libass libcaca libnotify libsamplerate lm_sensors lto lzma lzo mad matroska midi mjpeg mmap mmx mmxext mng modules moodbar mp3 mp3tunes mp4 mpeg mplayer mtp multilib musicbrainz ncurses networkmanager nls nptl nsplugin ntfs nvidia ogg okteta openal opencl opencore-amr opengl openmp optimized-qmake opus pam pango pch pcre pdf plasma png policykit portage ppds private-headers pulseaudio qt3 qt3support qt4 qthelp raster readline realmedia roe scanner schroedinger sdl secure-delete semantic-desktop sensord session shaders slang sndfile solver soundtouch sourceview sparse spell sse sse2 sse3 sse4 sse41 sse4_1 sse4a ssl ssse3 startup-notification steamruntime suid svg swat symlink syslog tcpd theora threads tiff truetype udev udisks unicode upnp upower usb vaapi vamp vcd vdpau vorbis wifi wmf wmp wxwidgets wxwindows x264 xcb xcomposite xml xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 PM 2014-02-06 22:31:47 UTC
Created attachment 369734 [details]
full vuze output
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2014-02-22 11:07:47 UTC
I'm not sure if the warnings are related to the crash.  I get them here as well but have no problems.  But if they are then this is a swt bug.
Comment 3 PM 2014-02-22 11:15:53 UTC
That's what I thought, my original title was "net-p2p/vuze-4.8.1.2-r1 crashes with SIGSEGV in libgobject-2.0.so", then sometime changed it.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2014-03-09 07:38:54 UTC
Give 5.3.0.0 a try.
Comment 5 PM 2014-03-18 22:27:54 UTC
No improvement.
Comment 6 BobbyK 2014-05-01 02:25:27 UTC
Had what seems to be the same thing with vuze 4.5.1.0-r1, 4.8.1.2-r1 and 5.3.0.0.  Found https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776 which suggests adding -Dorg.eclipse.swt.browser.DefaultType=mozilla to the command line.  Added the option by seeting 
JAVA_OPTIONS="-Dorg.eclipse.swt.browser.DefaultType=mozilla"
in ~/.azureus/gentoo.config and can add new torrents to vuze again.
Comment 7 PM 2014-05-21 10:34:50 UTC
Apparently the bug got fixed otherwise, I can no longer get vuze to crash this way. (5.3.0)
Comment 8 PM 2014-05-21 10:38:32 UTC
Scratch that, it crashed seconds after I submitted previous comment. Seems like it crashes less often though. Ryan's workaround doesn't help.
Comment 9 BobbyK 2014-08-19 23:49:28 UTC
Seems the issue is back for me, not sure what triggered it, though I do have another workaround.  I use KDE for my WM and for a GTK2 Theme I had oxygen-gtk, changing this to Rayleigh allows me to download new torrents with Vuze.  Not exactly happy with this, though I seems to work.  I wondered if it was something to do with oxygen-gtk-1.4.5 so masked that and installed 1.3.5, unfortunately I'm no longer able to select oxygen-gtk as a GTK2 Theme with this config (perhaps I need to re-emerge a couple of other things).  It was comments here  http://code.google.com/p/android/issues/detail?id=66748 that gave me the idea to try a change of GTK2 Theme.
Comment 10 G. Náray 2014-09-07 11:30:46 UTC
(In reply to BobbyK from comment #6)
> Had what seems to be the same thing with vuze 4.5.1.0-r1, 4.8.1.2-r1 and
> 5.3.0.0.  Found https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776 which
> suggests adding -Dorg.eclipse.swt.browser.DefaultType=mozilla to the command
> line.  Added the option by seeting 
> JAVA_OPTIONS="-Dorg.eclipse.swt.browser.DefaultType=mozilla"
> in ~/.azureus/gentoo.config and can add new torrents to vuze again.

This solution works on my gentoo, with vuze 4.8.1.2-r1. Thanks!
Comment 11 Marko Doko 2014-09-25 11:29:36 UTC
(In reply to BobbyK from comment #9)
> Seems the issue is back for me, not sure what triggered it, though I do have
> another workaround.  I use KDE for my WM and for a GTK2 Theme I had
> oxygen-gtk, changing this to Rayleigh allows me to download new torrents
> with Vuze.  Not exactly happy with this, though I seems to work.  I wondered
> if it was something to do with oxygen-gtk-1.4.5 so masked that and installed
> 1.3.5, unfortunately I'm no longer able to select oxygen-gtk as a GTK2 Theme
> with this config (perhaps I need to re-emerge a couple of other things).  It
> was comments here  http://code.google.com/p/android/issues/detail?id=66748
> that gave me the idea to try a change of GTK2 Theme.

This works for me too. It is an ugly workaround, but what can you do. 

I hope this gets resolved in future oxygen-gtk versions.
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2014-10-02 00:06:22 UTC
I think I've seen the same elsewhere.  I'll add it to 5400 and we'll get that stabilized quick.
Comment 13 BobbyK 2014-10-04 13:23:48 UTC
Seems the donations window also triggers the crash regardless of the workarounds :(.
Comment 14 BobbyK 2014-10-19 15:19:13 UTC
Seems that on my desktop vuze will crash when oxygen-gtk is used as the GTK2 theme only if "Show icons in GTK menus" is checked.
Comment 15 nebojsa 2015-01-23 22:51:23 UTC
Patch from https://bugs.eclipse.org/bugs/attachment.cgi?id=229268 fixed problem for me. Running net-p2p/vuze-5.3.0 with dev-java/swt-3.8.2 on dev-java/icedtea-7.2.5.3
By the way, adding -Dorg.eclipse.swt.browser.DefaultType=mozilla effectivly disables html widget (it then depends on xulrunnerm which is no longer available) which is causing the problem, but functionality suffers.
Comment 16 Ryan Hill (RETIRED) gentoo-dev 2015-10-26 23:37:20 UTC
I pushed this patch to swt-3.8.2-r1.  Let me know if you still have problems.
Comment 18 BobbyK 2015-10-31 18:11:06 UTC
Vuze still crashes on adding a new torrent from KDE desktop with new version of swt.  I have the html web ui, and can add new torrents via that (which is better than crashing, though not quite as useful as directly from the client).
Comment 19 Ryan Hill (RETIRED) gentoo-dev 2015-11-01 04:05:17 UTC
I was afraid of that.  Looking at the upstream bugtracker it seems that other people are still hitting this as well.  Is your swt built with USE=webkit?  Does the mozilla thing still work and can you tell what functionality it disables?  I use the classic interface so I wouldn't know if something is missing.
Comment 20 BobbyK 2015-11-01 15:56:55 UTC
swt has webkit USE enabled.

The mozilla workaround from last year no longer works for me.  

The selection of gtk2 theme in kde system settings seems to have an effect, issue reproduces with oxygen-gtk, and QTCurve, does not reproduce with Raleigh and Ana. Ana is not quite as ugly as Raleigh, so I'll live with it for a while.

I think I also use the classic interface.
Comment 21 BobbyK 2016-11-11 15:08:59 UTC
After upgrading to 5.7.2.0 found that classic crashed on adding a torrent, so switched back to Vuze UI and so far so good (though not tried oxygen-gtk yet).

Investigating the crash in classic eventually took me to https://bugs.eclipse.org/bugs/show_bug.cgi?id=372560, which looks like it might be a good fit for the original issue in this bug.  If true, it may mean this is a dupe of https://bugs.gentoo.org/show_bug.cgi?id=521308...
Comment 22 BobbyK 2016-11-13 22:43:44 UTC
Switching of oxygen-gtk resurrected the crash, replacing /usr/share/swt-3.8/lib/swt.jar with org.eclipse.swt.gtk.linux.x86_64_3.105.0.v20160603-0902.jar (from eclipse-sdk-bin-4.6) resolved it (though appears to have broken the system tray menu).
Comment 23 James Le Cuirot gentoo-dev 2016-11-13 22:50:03 UTC
I have seen this for myself in the past so I'll try to bump swt when I can.
Comment 24 BobbyK 2016-11-16 13:50:36 UTC
A little more testing; took the patches attached to https://bugs.gentoo.org/show_bug.cgi?id=521308 and added a swt-3.8.2-r2.ebuild to my local overlay to apply them.  Using KDE with oxygen-gtk and Vuze UI - no crashes on adding a torrent (the system tray context menu also works).

Also removed:

JAVA_OPTIONS="-Dorg.eclipse.swt.browser.DefaultType=mozilla"

from ~/.azureus/gentoo.config.