Bug 299543 - sw_single crash: signal 11 at YCP file /usr/share/YaST2/clients/sw_single.ycp:187
Summary: sw_single crash: signal 11 at YCP file /usr/share/YaST2/clients/sw_single.ycp...
Status: RESOLVED DUPLICATE of bug 299680
: 303851 304166 (view as bug list)
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Beta 1
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Duncan Mac-Vicar
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-11 05:55 UTC by Peter Buschbacher
Modified: 2007-09-03 14:36 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
hwinfo (vmware) (291.37 KB, text/plain)
2007-08-11 05:57 UTC, Peter Buschbacher
Details
/var/log/Yast2 (743.59 KB, application/x-compressed-tar)
2007-08-11 06:00 UTC, Peter Buschbacher
Details
screenshot of the xmessage (103.24 KB, image/png)
2007-08-11 06:15 UTC, Peter Buschbacher
Details
backtrack as requested in comment #8 (6.36 KB, text/plain)
2007-08-24 20:49 UTC, Peter Buschbacher
Details
guru-RPM-MD-Example (2.86 KB, application/x-gzip)
2007-08-24 21:02 UTC, Peter Buschbacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Buschbacher 2007-08-11 05:55:30 UTC
After doing at least some of the refreshing stuff I get a X-message:

Yast got signal 11 at YCP file /usr/share/YaST2/clients/sw_single.ycp:187

the end of grep '<[2345]>' /var/log/YaST2/y2log :

2007-08-11 03:50:26 <3> linux-b18d(4467) [liby2] genericfrontend.cc(signal_handler):59 got signal 11 at YCP file /usr/share/YaST2/clients/sw_single.ycp:187

I got this error two times in two tries after 'rm /var/cache/zypp/zypp.db'(workaround for Bug 297627), 'zypper ref' and adding packman and guru in yast2 inst_source.
Comment 1 Peter Buschbacher 2007-08-11 05:57:21 UTC
Created attachment 156902 [details]
hwinfo (vmware)
Comment 2 Peter Buschbacher 2007-08-11 06:00:36 UTC
Created attachment 156903 [details]
/var/log/Yast2
Comment 3 Peter Buschbacher 2007-08-11 06:15:27 UTC
Created attachment 156904 [details]
screenshot of the xmessage
Comment 4 Peter Buschbacher 2007-08-11 06:23:46 UTC
Might be libzypp-related because I get an 'Speicherzugriffsfehler' there too, like in the xmessage-box, if I try to install a package. 'Speicherzugriffsfehler' means 'segmentation fault'

sorry for much text, but I'm new here and can't sort out whatyou need exactly.

Peter Buschbacher 

linux-b18d:/home/test # zypper ref
Refreshing 'packman'
* Building repository 'packman' cache
Refreshing 'http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-source-extra/'
* Building repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/in* Building repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/in* Building repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/in* Building repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/in* Building repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-source-extra/' cache
Refreshing 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/'
* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-s* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-s* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-s* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-s* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/' cache
Refreshing 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/inst-source-debug/'
* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/* Building repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/inst-source-debug/' cache
Refreshing 'guru'
* Building repository 'guru' cache
All repositories have been refreshed.
linux-b18d:/home/test # zypper lr
# | Enabled | Refresh | Type   | Name                                                                              | URI                                                    
--+---------+---------+--------+-----------------------------------------------------------------------------------+----------------------------------------------------------------------------------
1 | Yes     | Yes     | rpm-md | packman                                                                           | http://ftp.gwdg.de/pub/linux/misc/packman/suse/10.3/   
2 | Yes     | Yes     | yast2  | http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-source-extra/   | http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-source-extra/
3 | Yes     | Yes     | yast2  | http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/             | http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/
4 | Yes     | Yes     | yast2  | http://download.opensuse.org/distribution/SL-OSS-factory-debug/inst-source-debug/ | http://download.opensuse.org/distribution/SL-OSS-factory-debug/inst-source-debug/
5 | No      | Yes     | yast2  | 20070810-223207                                                                   | cd:///?devices=/dev/sr0                                
6 | Yes     | Yes     | rpm-md | guru                                                                              | http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.3/RPMS/
linux-b18d:/home/test # zypper in libxine-1
* Reading repository 'packman' cache
- Reading repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/ins\ Reading repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/ins| Reading repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/ins* Reading repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-source-extra/' cache
/ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so- Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so\ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so| Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so/ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so- Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so\ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so| Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so/ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so- Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so\ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so| Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so/ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so- Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so\ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so| Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so/ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so- Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so\ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-so* Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/' cache
| Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/i/ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/i- Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/i\ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/i| Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/i/ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/i* Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory-debug/inst-source-debug/' cache
* Reading repository 'guru' cache
Speicherzugriffsfehler
linux-b18d:/home/test #  
Comment 5 Peter Buschbacher 2007-08-11 17:06:36 UTC
removing guru repository does help in Yast2 and in zypper. So it seems to be a problem of error-handling in libzypp.
So I CCed kkaempf@novell.com, hope that's right for libzypp issues.

Peter Buschbacher
Comment 6 Peter Buschbacher 2007-08-11 17:23:40 UTC
Added Pascal Bleser to CC. If it has to do with some inconsistency in the guru-repository it might be possible to save the state of it somewhere for testing purposes, Pascal?
Comment 7 Pascal Bleser 2007-08-11 18:28:29 UTC
I'm updating my repository several times a day so... please try to reproduce and if it still happens, just rsync the metadata ASAP.
You don't need me for that ;)

Just copy the yast2 and RPM-MD metadata from my repository (preferably from the mirror that was used).

Didn't hear any complaints about my repository being broken and given how many people use it, I'm sure I would already have received lots of emails ;)
Comment 8 Ladislav Slezák 2007-08-13 11:07:13 UTC
Please, attach gdb backtrace (run 'gdb /usr/lib/YaST2/bin/y2base', enter 'run sw_single qt', when it crashed enter command 'bt' and attach the output).
Comment 9 Ladislav Slezák 2007-08-13 11:08:42 UTC
The problem happens in yast and in zypper, so I guess the problem is in libzypp.
Comment 11 Peter Buschbacher 2007-08-13 21:57:10 UTC
Hello Ladislav
I'm sorry I can't provide the information ordered in comment #8 before friday.
I won't have online access with a linux machine until then - and now I am jus online as guest.

http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.3/RPMS/
does not contain any packages just some metadata in /repodata.
It was as far as I know never announced to be there, i just found it accidentially and stumbled over the behaviour discussed in this thread.

One main problem to me is that yast2 crashes without giving the user some sort of interaction. There is no controlled way to handle(this?) case of invalid(?) metadata in a repo as well in the backend as in the front-end. 
If the crash on wrong online input is a potential security issue - which I can't judge because I don't have the Knowledge - it might be more than 'Major'. Just if you think its urgent someone else must try to reproduce it.
Comment 12 Stanislav Visnovsky 2007-08-14 07:44:57 UTC
There is no graceful handling, because this is a real crash that needs to be fixed.
Comment 13 Jan Kupec 2007-08-14 14:00:13 UTC
Although reported for a plaindir repo, bug 299680 might be related to this one.
Comment 14 Peter Buschbacher 2007-08-24 20:49:32 UTC
Created attachment 159807 [details]
backtrack as requested in comment #8

Finally I had the time to sadly reproduce it with beta2, updated the beta1(which was a fresh-install) with the kde-one-cd via update-option of the installation-system on the cd.

Now - at least running sw_single in gdb as requested in comment #8 - I got no x-message. After the program received SIGSEGV I watched the busy mouse-arrow for some minutes and then entered 'bt'.
Comment 15 Peter Buschbacher 2007-08-24 21:02:15 UTC
Created attachment 159809 [details]
guru-RPM-MD-Example

Attached the Metadata for the case the repository will be filled before this bug is solved.

Only happens with the RPM-Metadata. As you can see here, for the Yast-Source, zypper behaves as expected.

Peter Buschbacher


linux-b18d:/home/test # zypper ar http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.3/ guru-yast
* Adding repository 'guru-yast'
Repository 'guru-yast' successfully added:
Enabled: Yes
Autorefresh: Yes
URL: http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.3/
linux-b18d:/home/test # zypper rr guru
* Cleaning repository 'guru' cache
* Removing repository 'guru'
Repository guru has been removed.
linux-b18d:/home/test # zypper in libxine-1
Refreshing 'guru-yast'
* Building repository 'guru-yast' cache
* Reading repository 'packman' cache
* Reading repository 'FACTORY - Main Repository (NON-OSS)' cache
* Reading repository 'openSUSE-10.3-OSS-KDE 10.3' cache
* Reading repository 'FACTORY - Main Repository (OSS)' cache
* Reading repository 'FACTORY - Main Repository (DEBUG)' cache
* Reading repository 'guru-yast' cache
* Reading repository 'openSUSE-10.3-OSS-KDE 10.3' cache
* Reading installed packages [100%]

1 Problems:
Problem: Requirememt libxine-1 cannot be fulfilled.

Problem: Requirememt libxine-1 cannot be fulfilled.
 There are no installable providers of libxine-1

number, (r)etry or (c)ancel> c
linux-b18d:/home/test # zypper in libxine1
* Reading repository 'packman' cache
* Reading repository 'FACTORY - Main Repository (NON-OSS)' cache
* Reading repository 'openSUSE-10.3-OSS-KDE 10.3' cache
* Reading repository 'FACTORY - Main Repository (OSS)' cache
* Reading repository 'FACTORY - Main Repository (DEBUG)' cache
* Reading repository 'guru-yast' cache
* Reading repository 'openSUSE-10.3-OSS-KDE 10.3' cache
* Reading installed packages [100%]


The following NEW packages are going to be installed:
  libxine1 ImageMagick flac libMagick10 libWand10 libcaca speex

The following package is going to be REMOVED:
  xine-lib

Overall download size: 14,3 M. After the operation, additional 35,7 M will be used.
Continue? [y/n]:
Comment 16 Cristian Rodriguez 2007-08-24 21:09:04 UTC
see also Bug 301669 
Comment 17 Peter Buschbacher 2007-08-25 00:06:39 UTC
*** Bug 303851 has been marked as a duplicate of this bug. ***
Comment 18 Peter Buschbacher 2007-08-25 00:43:15 UTC
*** Bug 304166 has been marked as a duplicate of this bug. ***
Comment 19 Peter Buschbacher 2007-08-30 23:54:31 UTC
Still exists with libzypp 3.18.4 and zypper 0.8.16.
Comment 20 Jan Kupec 2007-08-31 10:50:25 UTC
Please, retest with libzypp 3.21.0 and zypper 0.8.18 once they get to factory (or with Beta 3). This problem should be fixed there. If so, please close this bug as duplicate of bug 299680. Thanx!
Comment 21 Peter Buschbacher 2007-09-03 14:35:42 UTC
Works with libzypp-3.22.0-2 and zypper-0.8.18-3 from factory today.
Comment 22 Peter Buschbacher 2007-09-03 14:36:56 UTC

*** This bug has been marked as a duplicate of bug 299680 ***