Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

razor-panel segfaults #257

Closed
jleclanche opened this Issue Apr 3, 2012 · 13 comments

Comments

Projects
None yet
3 participants
Owner

jleclanche commented Apr 3, 2012

(gdb) r
Starting program: /usr/local/bin/razor-panel 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7ffff13d7700 (LWP 11332)]
[New Thread 0x7fffebfff700 (LWP 11333)]
QLayout: Attempting to add QLayout "" to RazorQuickLaunch "QuickLaunch", which already has a layout

Program received signal SIGSEGV, Segmentation fault.
0x00007fffeadd6e05 in Popup::Popup(RazorMountManager*, QWidget*) () from /usr/local/lib64/razor-panel//libmount.so
(gdb) bt
    #0  0x00007fffeadd6e05 in Popup::Popup(RazorMountManager*, QWidget*) () from /usr/local/lib64/razor-panel//libmount.so
    #1  0x00007fffeadd715b in MountButton::MountButton(QWidget*, RazorPanel*) () from /usr/local/lib64/razor-panel//libmount.so
    #2  0x00007fffeadd628f in RazorMount::RazorMount(RazorPanelPluginStartInfo const*, QWidget*) () from /usr/local/lib64/razor-panel//libmount.so
    #3  0x00007fffeadd6334 in init () from /usr/local/lib64/razor-panel//libmount.so
    #4  0x0000000000411d5a in RazorPanelPrivate::loadPlugin(RazorPluginInfo const&, QString) ()
    #5  0x0000000000415292 in RazorPanelPrivate::loadPlugins() ()
    #6  0x00000000004162c9 in RazorPanelPrivate::init() ()
    #7  0x0000000000416a1e in RazorPanel::RazorPanel(QWidget*) ()
    #8  0x000000000041007c in main ()
Owner

jleclanche commented Apr 3, 2012

i think it's because i kept my config over when recompiling on arch. It's possible it's looking for a plugin that does not exist, still this should be fixed.

Owner

pvanek commented Apr 3, 2012

please, try to compile with cmake's -DCMAKE_BUILD_TYPE=debug. It would improve gdb output a lot.

But it seems the plugin is found but something is wrong there...

Owner

jleclanche commented Apr 3, 2012

When i removed the mount section from the conf file the segfault disappeared.

Owner

pvanek commented Apr 3, 2012

cannot reproduce it now. Do you have your old config stored?

Owner

jleclanche commented Apr 3, 2012

Yes.

(gdb) r
Starting program: /usr/local/bin/razor-panel 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7ffff13b2700 (LWP 28858)]
[New Thread 0x7fffebfff700 (LWP 28859)]
 razor-panel(0x7fffffffe3a0) Debug: false 
 razor-panel(0x7fffffffe3a0) Warning: QxtGlobalShortcut failed to register: "Alt+F1" 
 razor-panel(0x7fffffffe3a0) Debug: false 
 razor-panel(0x7fffffffe3a0) Warning: QxtGlobalShortcut failed to register: "Ctrl+F1" 
 razor-panel(0x7fffffffe3a0) Warning: QLayout: Attempting to add QLayout "" to RazorQuickLaunch "QuickLaunch", which already has a layout
 razor-panel(0x7fffffffe3a0) Warning: Another systray is running 
 razor-panel(0x7fffffffe3a0) Debug: RazorClock Recalc width  59 "12:01:01 AM
May 01"                                                                                                                                                                                                                                     

Program received signal SIGSEGV, Segmentation fault.
0x00007fffeadcad00 in QList<RazorMountDevice*>::QList (this=0x7fffffffdcb0, l=...) at /usr/include/QtCore/qlist.h:122
122         inline QList(const QList<T> &l) : d(l.d) { d->ref.ref(); if (!d->sharable) detach_helper(); }
(gdb) bt
#0  0x00007fffeadcad00 in QList<RazorMountDevice*>::QList (this=0x7fffffffdcb0, l=...) at /usr/include/QtCore/qlist.h:122
#1  0x00007fffeadca7c8 in QForeachContainer<QList<RazorMountDevice*> const>::QForeachContainer (this=0x7fffffffdcb0, t=...) at /usr/include/QtCore/qglobal.h:2338
#2  0x00007fffeadc8c1a in Popup::Popup (this=0x724260, manager=0x7ed030, parent=0x7ed000) at /home/adys/src/chromic/razor-qt/razorqt-panel/plugin-mount/mountbutton.cpp:59
#3  0x00007fffeadc922f in MountButton::MountButton (this=0x7ed000, parent=0x7fffffffe370, panel=0x7fffffffe370) at /home/adys/src/chromic/razor-qt/razorqt-panel/plugin-mount/mountbutton.cpp:152
#4  0x00007fffeadc84ae in RazorMount::RazorMount (this=0x784b90, startInfo=0x7fffffffde80, parent=0x7fffffffe370) at /home/adys/src/chromic/razor-qt/razorqt-panel/plugin-mount/razormount.cpp:45
#5  0x00007fffeadc83d3 in init (startInfo=0x7fffffffde80, parent=0x7fffffffe370) at /home/adys/src/chromic/razor-qt/razorqt-panel/plugin-mount/razormount.cpp:38
#6  0x00000000004176db in RazorPanelPrivate::loadPlugin (this=0x6c1910, pluginInfo=..., configSection=...) at /home/adys/src/chromic/razor-qt/razorqt-panel/panel/razorpanel.cpp:337
#7  0x0000000000416fe0 in RazorPanelPrivate::loadPlugins (this=0x6c1910) at /home/adys/src/chromic/razor-qt/razorqt-panel/panel/razorpanel.cpp:288
#8  0x0000000000415f86 in RazorPanelPrivate::init (this=0x6c1910) at /home/adys/src/chromic/razor-qt/razorqt-panel/panel/razorpanel.cpp:189
#9  0x00000000004155ae in RazorPanel::RazorPanel (this=0x7fffffffe370, parent=0x0) at /home/adys/src/chromic/razor-qt/razorqt-panel/panel/razorpanel.cpp:116
#10 0x0000000000414cd9 in main (argc=1, argv=0x7fffffffe4b8) at /home/adys/src/chromic/razor-qt/razorqt-panel/panel/main.cpp:50
Owner

pvanek commented Apr 3, 2012

can you test it with this patch:

--- a/razorqt-panel/plugin-mount/mountbutton.cpp
+++ b/razorqt-panel/plugin-mount/mountbutton.cpp
@@ -55,7 +55,7 @@ Popup::Popup(RazorMountManager manager, QWidget parent):

 connect(mManager, SIGNAL(deviceAdded(RazorMountDevice*)),
             this, SLOT(addItem(RazorMountDevice*)));

+qDebug() << "Popup::Popup" << mManager->devices() << *(mManager->devices());
foreach(RazorMountDevice *device, *(mManager->devices()))
{
addItem(device);

Owner

jleclanche commented Apr 3, 2012

adys@azura ~/src/chromic/razor-qt/build % razor-panel
razor-panel(0x7fffc0adfa50) Debug: false
razor-panel(0x7fffc0adfa50) Warning: QxtGlobalShortcut failed to register: "Alt+F1"
razor-panel(0x7fffc0adfa50) Debug: false
razor-panel(0x7fffc0adfa50) Warning: QxtGlobalShortcut failed to register: "Ctrl+F1"
razor-panel(0x7fffc0adfa50) Warning: QLayout: Attempting to add QLayout "" to RazorQuickLaunch "QuickLaunch", which already has a layout
razor-panel(0x7fffc0adfa50) Warning: Another systray is running
razor-panel(0x7fffc0adfa50) Debug: RazorClock Recalc width 59 "12:01:01 AM
May 01"
zsh: segmentation fault razor-panel

Contributor

mckaygerhard commented May 11, 2012

problem its in the registrer systray .. i try reproduce. (with a lost of prints in razorqt pannel) but i dont nkow or i cant reproduce.

Owner

jleclanche commented Aug 13, 2012

Petr any update on this? getting it again on the laptop now.

Owner

jleclanche commented Aug 14, 2012

I figured it out. It segfaults if dbus is not running.

Contributor

mckaygerhard commented Aug 14, 2012

i reproduce this bug , simple there's another systray area, and then crash..

others panels, only crash the systray area and go..

i dont know in u'r case but i start avantwm, lxpanelx and razorpanel and first systray to start are lxpanelx, then systray from avantwm crash but avantwm start, then razorapanel start, but when need registrer systray area crash with previus menssage "Another systray is running " and seconds later close..

i thinks its similar to #381

Contributor

mckaygerhard commented Aug 14, 2012

yes ther's something with systray, i cant now added mount plugin .. segfault when i do that!, mount pluguin, and other dont load now, but clock appears..

Owner

pvanek commented Aug 29, 2012

cannot reproduce it. I start tint2 panel first with systray. Then razor-panel with sysytray. The razor's systray is not loaded but the panel works.

The "dbus is stopped" crash is confirmed. I'm fixing it.

@ghost ghost assigned pvanek Aug 29, 2012

@pvanek pvanek closed this in 11bf65e Aug 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment