Bug 595560

Summary: Error (as superuser) when closing YaST software manager
Product: [openSUSE] openSUSE 11.3 Reporter: Rastislav Krupansky <rastislav.krupansky>
Component: YaST2Assignee: Forgotten User h13THG8RK1 <forgotten_h13THG8RK1>
Status: RESOLVED NORESPONSE QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: badshah400, carroll.ian, ebenash, forgotten_h13THG8RK1, forgotten_z3IVrsTEuu, Mark.Farquhar, mc
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/YaST2/signal
su -c "/sbin/save_y2logs y2logs.tgz"
screenshot of autoyast
Test case reproducing the problem (in python)

Description Rastislav Krupansky 2010-04-10 19:01:00 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100401 SUSE/3.6.3-1.5 Firefox/3.6.3

Factory LiveCD Gnome, build 0552.
Here you are error output when closing YaST software manager:

defined(%hash) is deprecated at /usr/share/YaST2/modules/URLRecode.pm line 39 (#1)
    (D deprecated) defined() is not usually useful on hashes because it
    checks for an undefined scalar value.  If you want to see if the hash
    is empty, just use if (%hash) { # not empty } for example.
    
	(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/share/YaST2/modules/URLRecode.pm line 53 (#1)
	(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/share/YaST2/modules/URLRecode.pm line 67 (#1)
	(Maybe you should just omit the defined()?)

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 2 Forgotten User z3IVrsTEuu 2010-04-14 11:21:15 UTC
This does not only happen on closing Yast Software Management, but also when starting it, while or after repositories are refreshed. This does not happen if all software repositories have been deleted beforehand, but it will block re-adding repositories: To reproduce it this way, delete all repos in the Software Repositories module. Then add a repo again. After the repository is shown in the list, click the OK button to exit the Software Repositories module. This leads to the error message.
Comment 3 Michael Calmer 2010-04-16 09:14:26 UTC
*** Bug 596845 has been marked as a duplicate of this bug. ***
Comment 4 Ladislav Slezák 2010-04-19 13:24:40 UTC
A duplicate of bnc#596920.

*** This bug has been marked as a duplicate of bug 596920 ***
Comment 5 ashish bende 2010-10-11 14:02:28 UTC
Got following as error:

 YaST got signal 11 at YCP file PackagesUI.ycp:273
/sbin/yast2: line 399: 9151 Segmentation fault $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS 

after installation while writing suse config script commence in Install/Remove software(Software Manager) application
Comment 6 ashish bende 2010-10-11 14:10:01 UTC
Got following as error:

 YaST got signal 11 at YCP file PackagesUI.ycp:273
/sbin/yast2: line 399: 9151 Segmentation fault $ybindir/y2base $module "$@"
"$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS 

after installation while writing suse config script commence in Install/Remove
software(Software Manager) application
Comment 7 Ian Carroll 2010-10-21 19:01:17 UTC
Created attachment 396366 [details]
/var/log/YaST2/signal
Comment 8 Ian Carroll 2010-10-21 19:01:56 UTC
similar error here, just attached the log.

error msg:

YaST got signal 11 at YCP file PackagesUI.ycp:273
/sbin/yast2: line 399: 31577 Segmentation fault      $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS
Comment 9 Jiri Srain 2010-10-27 05:52:24 UTC
The backtrace points to the GTK back-end. Ricardo, do you think you could have a look?
Comment 10 Forgotten User h13THG8RK1 2010-10-27 10:33:50 UTC
Hi Ian. Please attach the yast2 logs in its entirely.

You can reproduce a nice tarball of them by issuing:
  su -c "/sbin/save_y2logs y2logs.tgz"

It's weird it crashed while on libglobalmenu-plugin. But it doesn't seem GTK related because it's not GTK specific. :-) I mean, Mark from bug 596845 is using the Qt plugin. yast2 being a multithreading application, it's more likely the same thread that is reporting those error message is also the culprit of the crash. I hope I have more to say when I have a look at the logs.
Comment 11 Forgotten User h13THG8RK1 2010-10-27 10:45:04 UTC
By the way, I have not been up to speed to free soft news, does anyone want to summarize to me what this globalmenu thing is?

I can see over http://code.google.com/p/gnome2-globalmenu/ , that it's supposed to be a mac-style menu-bar (in case the name wasn't intuitive enough :-)). But does anyone have any clue how it works? And has opensuse adopted it?
Comment 12 Ian Carroll 2010-10-27 15:30:59 UTC
Created attachment 397331 [details]
 su -c "/sbin/save_y2logs y2logs.tgz"

Ricardo, here's the full log.
Comment 13 Forgotten User h13THG8RK1 2010-10-27 16:33:32 UTC
Thanks Ian!

Do a last favor for me though. :)

1. check if the users tool crashes:
  su -c "/usr/lib/YaST2/bin/y2base users gtk"

2. check if the autoyast2 tool crashes:
  su -c "zypper install autoyast2"
  su -c "/usr/lib/YaST2/bin/y2base autoyast2 gtk"

3. check if the software manager crashes, when using the qt plugin:
  su -c "/usr/lib/YaST2/bin/y2base users qt"

You don't need to use the tools; just start them and then close them. And tell me if any crashed or not.

Thanks!
Comment 14 Forgotten User h13THG8RK1 2010-10-27 16:35:10 UTC
Hey Atri,

Do you know anything about a libglobalmenu-plugin?

It looks like it is responsible for the software manager crashing, when using Factory...
Comment 15 Ian Carroll 2010-10-27 17:18:34 UTC
> 1. check if the users tool crashes:
>   su -c "/usr/lib/YaST2/bin/y2base users gtk"

Opens, closes, no probs.

> 
> 2. check if the autoyast2 tool crashes:
>   su -c "zypper install autoyast2"
>   su -c "/usr/lib/YaST2/bin/y2base autoyast2 gtk"

Install successful, but is your second command right? I get:
<quote>
carroll@lotka:~> su -c "/usr/lib/YaST2/bin/y2base autoyast2 gtk"
Password: 
No such client module autoyast2
The search path follows. It does not include the current directory.
  /y2update/clients
  /root/.yast2/clients
  /usr/share/YaST2/clients
</quote>

 
> 3. check if the software manager crashes, when using the qt plugin:
>   su -c "/usr/lib/YaST2/bin/y2base users qt"

Opens, closes, no probs.
Comment 16 Ian Carroll 2010-10-27 17:25:29 UTC
more on request 2: I saw autoyast in the list of available modules, so i tried

su -c "/usr/lib/YaST2/bin/y2base autoyast gtk"

which opened a dialog, and it closed with no error.
Comment 17 Forgotten User h13THG8RK1 2010-10-27 17:48:30 UTC
Thanks Ian!

The reason why I asked you to run autoyast is because it also uses a menu-bar. However, that menu-bar is initialized differently than the software manager one -- which should give us a clue into what the problem could be.

By the way, you do see a menu-bar when using autoyast, right? (If you're using a display resolution of 800x600, or smaller, then buttons would be used in place of the menu-bar...)
Comment 18 Ian Carroll 2010-10-27 18:31:23 UTC
Created attachment 397394 [details]
screenshot of autoyast

gnome global menu applet is visible in top panel
Comment 19 Forgotten User h13THG8RK1 2010-10-28 17:11:35 UTC
Thanks guys. I will be installing 11.4 M2 in a machine, and address the issue in a couple of days.

By the way, that global menu thingie looks very useful for my netbook. ;-) I won't be able to use it in conjunction with focus-follows-mouse though. ahaha
Comment 20 Forgotten User h13THG8RK1 2010-10-28 22:52:14 UTC
What opensuse build are you guys using exactly? I installed Factory 0826 Gnome LiveCD [1], and I see no global menubar applet there -- already applied all upgrades... What's the package name?

[1] http://download.opensuse.org/factory/iso/
Comment 21 Forgotten User h13THG8RK1 2010-10-31 13:58:09 UTC
This bug report comports a blend of different bugs.

Volker and Rastislav:

  The bug you report seems to have been fixed as of bug 596920.

ashish:

  You need to get me some logs for me to work with.
  Please run:
  su -c "/sbin/save_y2logs y2logs.tgz"

Ian:

  I can't find no trace of global-menu in 11.3 or Factory repositories.
  Did you install global-menu manually? If so, tell me how.
Comment 22 Ian Carroll 2010-10-31 15:30:52 UTC
Ricardo,

I saw the package on the google code site you found, asked about it on the forum, and a savvy user/developer put it on the build service.

package name: gnome-applet-globalmenu

http://software.opensuse.org/search?q=globalmenu&baseproject=openSUSE:11.3&lang=en&exclude_debug=true

Should I just uninstall it to resolve the problem?

Thanks
-Ian
Comment 23 Forgotten User h13THG8RK1 2010-10-31 18:57:52 UTC
Created attachment 397910 [details]
Test case reproducing the problem (in python)

Added a bug report to gnome2-globalmenu:

http://code.google.com/p/gnome2-globalmenu/issues/detail?id=639

If you want to receive notifications on that bug report, I think you can do so by pressing the star icon (next to the title, on the left).
Comment 24 Forgotten User h13THG8RK1 2010-10-31 19:04:40 UTC
Ian, the bug you report is an issue of the gnome2-globalmenu applet. But fortunately we can work-around it. Please try the yast2-gtk RPM from:

https://build.opensuse.org/package/show?package=yast2-gtk&project=YaST%3AHead

Notice that it wasn't crashing for me. It just wasn't showing any menubar entries. That's what I fixed: don't know if it will fix your crash or not.

If it still crashes, try re-installing the gnome2-globalmenu package, using the link you gave me. Maybe a new version was posted there since you installed.
Comment 25 Ian Carroll 2010-11-01 18:56:48 UTC
I installed the rpm you linked out too, but YaST still crashed after trying to upgrade a package. I uninstalled the globalmenu applet. No more crash. Hopefully, they'll fix their bug, I liked that menu bar. Thanks.
Comment 26 Forgotten User h13THG8RK1 2010-11-01 19:43:36 UTC
Do you mean it crashes when you press the "Upgrade" button, or the "Apply" one?

You could try to run it through gdb (the debugger):
    gdb --args /usr/lib/YaST2/bin/y2base sw_single gtk
    run
    (try to crash it)
    backtrace

That may give us some information to work with -- either us, or the global-menu guys.
Comment 27 Forgotten User h13THG8RK1 2010-11-09 14:40:48 UTC
Guys, you need to be more responsive. ;-)

Re-iterating:

ashish, run save_y2logs -- see comment 21.

Ian, run gdb -- see comment 26.
Comment 28 Ian Carroll 2010-11-09 20:50:32 UTC
Ricardo, i already canned it (see comment 25). I'm not a developer (nor beta tester), just a blissfully ignorant user - and happy to stay that way.