Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Aug 2016 21:53:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211630] audio/libmusicbrainz5 crash when used from libkcddb
Message-ID:  <bug-211630-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211630

            Bug ID: 211630
           Summary: audio/libmusicbrainz5 crash when used from libkcddb
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jhale@FreeBSD.org
          Reporter: groot@kde.org
             Flags: maintainer-feedback?(jhale@FreeBSD.org)
          Assignee: jhale@FreeBSD.org

Created attachment 173365
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D173365&action=
=3Dedit
Patch adding visibility to C++ exceptions

See also upstream report http://tickets.musicbrainz.org/browse/LMB-43

Applications using libkcddb crash when libmusicbrainz5 throws an error while
looking up the CD info (e.g. connection error, or unknown CD).

The problem is that libmusicbrainz5 throws a (C++) exception. libkcddb catc=
hes
those exceptions and returns an error code instead. But with
-fvisibility=3Dhidden (the default in compiling KDE code), the exception sy=
mbols
are hidden, libkcddb can't catch the exceptions and they propagate to the
calling application, which gets an unexpected exception and crashes.

The nicest place to patch this is in libmusicbrainz5, to ensure that the
exception symbols are always visible (so that libkcddb and possibly other u=
sers
of libmusicbrainz5 can catch the exceptions reliably).

The attached patch adds a visibility-attribute to the exception symbols, and
prevents crashes that have been reported against KDE applications on FreeBSD
(e.g. PR 209696).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211630-13>