Bug 196229

Summary: genIS_PLAINcache segfaults
Product: [openSUSE] SUSE Linux 10.1 Reporter: Martin Pley <martin>
Component: YaST2Assignee: Ludwig Nussel <lnussel>
Status: RESOLVED WONTFIX QA Contact: Stanislav Visnovsky <visnov>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Martin Pley 2006-08-01 11:30:25 UTC
martin2:~ # /usr/bin/genIS_PLAINcache -f -r /var/spool/y2pmbuild/9.2-i386/
Segmentation fault

martin2:~ # gdb /usr/bin/genIS_PLAINcache
GNU gdb 6.4
(gdb) run -f -r /var/spool/y2pmbuild/9.2-i386/
Starting program: /usr/bin/genIS_PLAINcache -f -r /var/spool/y2pmbuild/9.2-i386/
[Thread debugging using libthread_db enabled]
[New Thread -1217538384 (LWP 23601)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217538384 (LWP 23601)]
0xb7d5df4f in std::_Rb_tree_decrement () from /usr/lib/libstdc++.so.6
(gdb) backtrace
#0  0xb7d5df4f in std::_Rb_tree_decrement () from /usr/lib/libstdc++.so.6
#1  0x08054461 in std::_Rb_tree<std::string, std::string, std::_Identity<std::string>, std::less<std::string>, std::allocator<std::string> >::insert_unique ()
#2  0x08060569 in __static_initialization_and_destruction_0 ()
#3  0x081bcc85 in __do_global_ctors_aux ()
#4  0x0804e899 in _init ()
#5  0x081bcbe9 in __libc_csu_init ()
#6  0xb7bcf821 in __libc_start_main () from /lib/libc.so.6
#7  0x0804fe71 in _start ()
(gdb) The program is running.  Exit anyway? (y or n) y

martin2:~ # rpm -qi y2pmsh
Name        : y2pmsh                       Relocations: /usr
Version     : 2.13.3                            Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release     : 6                             Build Date: Tue May  2 10:55:57 2006
Install Date: Wed Jun 28 12:32:14 2006      Build Host: dale.suse.de
Group       : Development/Tools/Other       Source RPM: y2pmsh-2.13.3-6.src.rpm
Size        : 4457635                          License: GPL
Signature   : DSA/SHA1, Tue May  2 11:00:18 2006, Key ID a84edae89c800aca
Comment 1 Ludwig Nussel 2006-08-01 11:37:51 UTC
Yeah, it doesn't like some rpms for some reason. I don't remember what the problem was though. genIS_PLAINcache is from the old and obsolete package manager, noone is going to fix it anymore. Try rebuilding the offending packages packages as workaround.
Comment 2 Martin Pley 2006-08-01 11:53:37 UTC
No,
1. It crashes even, when this directory is totally empty.
2. The basic problem is, that my y2pmbuild crashes, when I use a 9.2 installation source. So i cannot build packages for 9.2 with y2pmbuild anymore.
Comment 3 Martin Pley 2006-08-02 14:43:27 UTC
If you don't want to fix it anymore, is it possible just to remove the handling of "plain" repositories in y2pmbuild? You could print a warning instead.
It's around line 110 in y2pmbuild in "regenrepository" function. You would just have to remove genIS_PLAINcache in the first if-switch.