[Bug 613820] New: Yast2 Wagon module segfaults
http://bugzilla.novell.com/show_bug.cgi?id=613820 http://bugzilla.novell.com/show_bug.cgi?id=613820#c0 Summary: Yast2 Wagon module segfaults Classification: openSUSE Product: openSUSE 11.3 Version: Milestone 7 Platform: x86 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Greg.Freemyer@gmail.com QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.0) Gecko/20100115 SUSE/3.6.0-2.1 Firefox/3.6 I have a laptop at 11.3 milestone 3 that I decided to upgrade to milestone 7 via wagon. The first thing it did was upgrade the yast components to milestone 7 I believe, so this is a milestone 7 bug, not milestone 3. I was able to get past the dialog box where it asks for registration info. (For openSUSE, this dialog should really be eliminated.) Anyway shortly after that dialog was displayed, I got a segfault: # yast2 wagon 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()?) Can't locate loadable object for module LibStorage in @INC (@INC contains: /y2update/modules /root/.yast2/modules /usr/share/YaST2/modules /usr/lib/perl5/site_perl/5.12.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.12.0 /usr/lib/perl5/vendor_perl/5.12.0/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.0 /usr/lib/perl5/5.12.0/i586-linux-thread-multi /usr/lib/perl5/5.12.0 .) at /usr/share/YaST2/modules/LibStorage.pm line 11 Compilation failed in require. BEGIN failed--compilation aborted (#2) Uncaught exception from user code: Can't locate loadable object for module LibStorage in @INC (@INC contains: /y2update/modules /root/.yast2/modules /usr/share/YaST2/modules /usr/lib/perl5/site_perl/5.12.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.12.0 /usr/lib/perl5/vendor_perl/5.12.0/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.0 /usr/lib/perl5/5.12.0/i586-linux-thread-multi /usr/lib/perl5/5.12.0 .) at /usr/share/YaST2/modules/LibStorage.pm line 11 Compilation failed in require. BEGIN failed--compilation aborted. at -e line 0 YaST got signal 11 at YCP file installation/misc.ycp:33 /sbin/yast2: line 468: 20831 Segmentation fault $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS I have not used zypper up to finish the upgrade, nor re-attempted yast wagon. Reproducible: Didn't try Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c1
Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c2
--- Comment #2 from Greg Freemyer
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c3
Greg Freemyer
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c4
Jozef Uhliarik
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c5
Lukas Ocilka
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c6
--- Comment #6 from Greg Freemyer
I am not sure if it was good idea start update of OS with upgrade the yast components to milestone 7 and next to start yast2-wagon for updating OS.
Lukas you are expert for using yast2-wagon. The bugs describe troubles with using yast2-wagon for updating OS. I think that problem is broken YaST by updating his components before starting yast2-wagon but maybe it is correct way how to use it.
Please check it.
I vote for closing bugs (INVALID) because updating system was broken by user (updating YaST to milestone 7)
You misunderstood how the upgrade of yast components occurred. I was at 11.3 M3 when I entered "yast2 wagon" at the cli. At that point my yast components were upgraded automatically. I assume wagon itself has logic to upgrade itself to the latest available release prior to beginning the full system upgrade. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c7
--- Comment #7 from Greg Freemyer
URLRecode module is Ladislav's
Wagon has been designed and tested for migration from SLE to its Service Pack. It hasn't been designed or tested for openSUSE online migration.
I was told by Duncan Mac-Vicar Prett
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c8
--- Comment #8 from Greg Freemyer
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c9
Ladislav Slezak
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c10
--- Comment #10 from Greg Freemyer
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c11
Ladislav Slezak
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c12
Stanislav Visnovsky
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c13
Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c14
--- Comment #14 from Greg Freemyer
I guess the problem is caused wrong (unversioned) perl dependency. I have fixed that in yast2-perl-bindings-2.19.0 in 11.3, but in 11.2 it's not fixed.
The workaround should be manually updating yast2-perl-bindings to version >= 2.19.0.
Martin, any idea?
(I'm not worried about a workaround. I'm testing Wagon in hopes it will work for 11.2 => 11.3 by the community. I think its a great tool when it works and should be the "user friendly upgrade tool" pushed in the announcement. For me, I can always zypper dup and get upgraded.) ==> testing your fix For the machine that started at 11.2 + YOU, I want to revert back to 11.2 and retry the upgrade via wagon with your fix in. After I put the repos back to 11.2, what zypper command do I need to run to revert back to a vanilla 11.2 environment. After that, is your dependency fix already in the factory repo, or is there another repo I can use to test wagon? Or do I need to wait a while for your fix to hit factory? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c15
Martin Vidner
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c16
--- Comment #16 from Greg Freemyer
So far I haven't been able to reproduce the bug. I used the RC2 DVD repository for the update, not Factory, and entered it only during wagon's run, not beforehand. I noticed that wagon did not update itself during the initial patch, probably because it is missing from the RC2 DVD.
I was exactly following the steps at http://en.opensuse.org/Wagon for 11.2 => 11.3 upgrade. Obviously I used the factory repos. Martin, if your attempt to upgrade from 11.2 to 11.3 via Wagon and the RC2 DVD did not cause several hundred packages to upgrade during the "Renew Upgrade Stack" phase, then I am not surprised you did not duplicate the bug. I'm fairly confident it is that "Renew Upgrade Stack" process that introduces the mis-versioned upgrade stack. Since factory may already have the new dependency, testing with the RC2 milestone repo would be the most reliable way to reproduce the issue. And then repeating the test with the real factory repo would be a good way to test it is resolved. That is once the fix gets fully into factory. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c17
--- Comment #17 from Greg Freemyer
After I put the repos back to 11.2, what zypper command do I need to run to revert back to a vanilla 11.2 environment.
I tried reverting by just doing a zypper dup and resetting the repos. I had a glitch in the middle that left my zypper components dead. I've just done a full reinstall of 11.2 from scratch. Let me know when your ready for me to try the new package and which repo its in. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c18
--- Comment #18 from Greg Freemyer
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c19
Martin Vidner
Fix in 11.3 should be enough as the missing dependency should [be fixed by] the 'upgrade stack' step.
No, in that step the solver decides to update perl (for a reason unclear to me), yast2-wagon, but NOT yast2-perl-bindings (because of the missing dependency in the old y-p-b package). It is hard to make a proper fix because of the nature of the bindings package which is optionally loaded by yast2-core I am testing a workaround which is having yast2-wagon conflict with the old bindings package to force its update. Greg, add this repo: http://download.opensuse.org/repositories/home:/mvidner:/branches:/YaST:/Hea... With that fix, I now hit the libstorage problem from comment 0, which comes from yast2-storage missing a versioned perl dependency. *sigh* -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c20
--- Comment #20 from Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c21
--- Comment #21 from Stephan Kulow
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c22
Martin Vidner
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c23
--- Comment #23 from Greg Freemyer
(In reply to comment #12)
Fix in 11.3 should be enough as the missing dependency should [be fixed by] the 'upgrade stack' step.
No, in that step the solver decides to update perl (for a reason unclear to me), yast2-wagon, but NOT yast2-perl-bindings (because of the missing dependency in the old y-p-b package).
It is hard to make a proper fix because of the nature of the bindings package which is optionally loaded by yast2-core
I am testing a workaround which is having yast2-wagon conflict with the old bindings package to force its update. Greg, add this repo: http://download.opensuse.org/repositories/home:/mvidner:/branches:/YaST:/Hea...
With that fix, I now hit the libstorage problem from comment 0, which comes from yast2-storage missing a versioned perl dependency. *sigh*
Sounds like you're reproducing it with no problem, but I just attempted to test your fix by adding: RC2-OSS repo RC2-non-oss repo The above repo All at the same priority (99) and I still have: Error loading language plugin /usr/lib64/YaST2/plugin/libpy2lang_perl.so: libperl.so: cannot open shared object file: No such file or directory Error while creating client module wagon If I try again, do I need to change the priority of your repo to 95 or something? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c
Lukas Ocilka
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c24
Martin Vidner
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c25
--- Comment #25 from Greg Freemyer
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c26
--- Comment #26 from Greg Freemyer
It is not easy to test :-(
1) As of now there is still nothing in the above repo because the build service is busy (probably with GM). Within an hour the package should be in this repo: http://www.suse.de/~mvidner/wagon
2) The package will not be considered because of a vendor change. I had a dependency problem with snmp which put me into the package dialog where I was able to manually change the yast2-wagon selection to the fixed package. This will not be necessary if the package is built in the official repo (Factory or 11.3 or update).
Martin, I just re-read the last line of your comment. Are you saying that if the fix goes into the 11.3 "update" repo only and a 11.2 upgrader adds the 11.3 OSS, NON-OSS, and UPDATE repos prior to running Wagon it should work? I tend not to run the "zypper dup" / "wagon" upgrades with the update repo active, so that methodology never crossed my mind until right now. (especially since it can't be tested during the factory timeframe.) If that is the way this works out, we will need to ensure that is reflected on: http://en.opensuse.org/Wagon And any other release notes etc. I still very much would have preferred this get into the OSS repo, especially since running Wagon with just the 11.3 OSS repo as it currently stands breaks the full yast stack. Fortunately the fix is to drop down to CLI and do a "zypper dup" to complete the upgrade, so there is a reasonable workaround. Greg -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=613820
http://bugzilla.novell.com/show_bug.cgi?id=613820#c27
--- Comment #27 from Greg Freemyer
https://bugzilla.novell.com/show_bug.cgi?id=613820
https://bugzilla.novell.com/show_bug.cgi?id=613820#c28
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=613820
https://bugzilla.novell.com/show_bug.cgi?id=613820#c29
--- Comment #29 from Josef Reidinger
participants (1)
-
bugzilla_noreply@novell.com