Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668662 - xfce-extra/xfce4-diskperf-plugin-2.6.1::gentoo crashes with /usr/lib64/xfce4/panel/plugins/libdiskperf.so: undefined symbol: major because of missing patches to configure.ac and panel-plugin/devperf.c provided by bug 611418
Summary: xfce-extra/xfce4-diskperf-plugin-2.6.1::gentoo crashes with /usr/lib64/xfce4/...
Status: RESOLVED DUPLICATE of bug 661994
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-14 20:04 UTC by Pariksheet Nanda
Modified: 2018-10-15 18:12 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.txt,15.67 KB, text/plain)
2018-10-14 20:04 UTC, Pariksheet Nanda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pariksheet Nanda 2018-10-14 20:04:45 UTC
Created attachment 551284 [details]
emerge --info

When I try to "Add New Items..." to the xfce4-panel and choose "Disk Performance Monitor", it immediately crashes and shows the dialog window:

    Plugin "Disk Performance Monitor" unexpectedly
    left the panel, do you want to restart it?

    The plugin restarted more than once in the last 60 seconds.
    If you press Execute the panel will try to restart the plugin
    otherwise it will be permanently removed from the panel.

    [ Execute ] [ Remove ]

I retried adding the plugin using gdb as suggested by upstream's panel debugging suggestions: https://docs.xfce.org/xfce/xfce4-panel/debugging

The output is ~20 lines so I included it at the end of the description.  The relevant bit seems to be:

    /usr/lib64/xfce4/panel/plugins/libdiskperf.so: undefined symbol: major.

The crash happens early on during launch, so using PANEL_DEUG=gdb adds no useful information over using PANEL_DEBUG=1.

After running:

    # ebuild /usr/portage/xfce-extra/xfce4-diskperf-plugin/xfce4-diskperf-plugin-2.6.1.ebuild configure

The problem seems to be that neither the patches to configure.ac and panel-plugin/devperf.c are present in the source tarball described in https://bugs.gentoo.org/611418#c11 so upstream needs to release a new version of the plugin; the version tag 2.6.1 is 23 months old.   I took a stab at applying the patch myself and using eautoreconf, etc but I don't know how to provide the XDT_* autoconf macros that upstream uses and so it seems like upstream tagging a release and providing a sane configure file would make everyone's life easier.


Output from xfce4-panel
-----------------------

$ xfce4-panel -q             # Quit running panel.
$ PANEL_DEBUG=gdb xfce4-panel

xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/5
xfce4-panel(module): new item (type=external-wrapper, name=diskperf, id=5)
xfce4-panel(external): diskperf-5: child spawned; pid=24559, argc=25
xfce4-panel(application): saving /panels/panel-1: ids=true, providers=false
warning: Currently logging to /tmp/1539538947_gdb_diskperf_5.log.  Turn the logging off and on to make the new setting effective.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

(process:24561): GLib-WARNING **: (/var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gerror.c:405):g_error_new_valist: runtime check failed: (domain != 0)

(process:24561): xfce4-panel-wrapper-CRITICAL **: Wrapper diskperf-5: Failed to open plugin module "/usr/lib64/xfce4/panel/plugins/libdiskperf.so": /usr/lib64/xfce4/panel/plugins/libdiskperf.so: undefined symbol: major.
[Inferior 1 (process 24561) exited with code 01]
No stack.
The program has no registers now.
xfce4-panel(external): diskperf-5: child exited with status 0
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-10-15 17:39:16 UTC
Oh, I see we need to stabilize the new revision.  I'll open a stabilization request and CC you there.

*** This bug has been marked as a duplicate of bug 661994 ***
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-10-15 17:40:42 UTC
That said, I'd appreciate if you could confirm that -r1 fixes the issue for you.  If it still happens with the new patch, please reopen.
Comment 3 Pariksheet Nanda 2018-10-15 18:12:57 UTC
Yes -r1 fixes it for me.

* Pariksheet head desk

Thank you so much for your quick help and sorry for my round about report.