Bug 331826

Summary: Broken pattern files on SLEPOS 10
Product: [openSUSE] openSUSE 10.3 Reporter: Lukas Ocilka <locilka>
Component: libzyppAssignee: Petr Ostadal <postadal>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Major    
Priority: P5 - None CC: postadal
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST log

Description Lukas Ocilka 2007-10-08 14:58:07 UTC
Created attachment 176824 [details]
YaST log

I've been testing SLEPOS 10 repository on 10.3 and after adding the repository, I've got Segmentation fault :(

Fixing this is vitally important for SLEPOS (but I can live without it -> Major)

URL: ftp://cml.suse.cz/netboot/find/SLES-10-SLEPOS-10-Beta2-Build005-CD1/
Note:  cml.suse.cz == 10.20.3.1

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b2584a645c0 (LWP 22925)]
0x00002b25856b4895 in zypp::TranslatedText::setText () from /usr/lib64/libzypp.so.324
(gdb) bt
#0  0x00002b25856b4895 in zypp::TranslatedText::setText () from /usr/lib64/libzypp.so.324
#1  0x00002b2585428a24 in zypp::parser::susetags::PatternFileReader::consume () from /usr/lib64/libzypp.so.324
#2  0x00002b258547e8b4 in zypp::parser::TagParser::parse () from /usr/lib64/libzypp.so.324
#3  0x00002b258542c960 in zypp::parser::susetags::RepoParser::Impl::parse () from /usr/lib64/libzypp.so.324
#4  0x00002b25856e1159 in zypp::RepoManager::buildCache () from /usr/lib64/libzypp.so.324
#5  0x00002b258bab6032 in PkgModuleFunctions::SourceRefreshNow () from /usr/lib64/YaST2/plugin/libpy2Pkg.so.2
#6  0x00002b258ba72c44 in Y2PkgFunction::evaluateCall () from /usr/lib64/YaST2/plugin/libpy2Pkg.so.2
#7  0x00002b2581d52c1b in YEFunction::evaluate () from /usr/lib64/libycp.so.3
#8  0x00002b2581d630b1 in YSExpression::evaluate () from /usr/lib64/libycp.so.3
#9  0x00002b2581d7d28a in YBlock::evaluate () from /usr/lib64/libycp.so.3
#10 0x00002b2581d62fa1 in YSBlock::evaluate () from /usr/lib64/libycp.so.3
#11 0x00002b2581d63c6e in YSIf::evaluate () from /usr/lib64/libycp.so.3
#12 0x00002b2581d7d28a in YBlock::evaluate () from /usr/lib64/libycp.so.3
#13 0x00002b2581d42799 in YCPCodeRep::evaluate () from /usr/lib64/libycp.so.3
#14 0x00002b2581db4611 in ?? () from /usr/lib64/libycp.so.3
#15 0x00002b2581d53c64 in YEBuiltin::evaluate () from /usr/lib64/libycp.so.3
#16 0x00002b2581d630b1 in YSExpression::evaluate () from /usr/lib64/libycp.so.3
#17 0x00002b2581d7d28a in YBlock::evaluate () from /usr/lib64/libycp.so.3
#18 0x00002b2581d59f42 in Y2YCPFunction::evaluateCall () from /usr/lib64/libycp.so.3
#19 0x00002b2581d52c1b in YEFunction::evaluate () from /usr/lib64/libycp.so.3
#20 0x00002b2581d63397 in YSAssign::evaluate () from /usr/lib64/libycp.so.3
#21 0x00002b2581d7d28a in YBlock::evaluate () from /usr/lib64/libycp.so.3
#22 0x00002b2581d62fa1 in YSBlock::evaluate () from /usr/lib64/libycp.so.3
#23 0x00002b2581d63c6e in YSIf::evaluate () from /usr/lib64/libycp.so.3
#24 0x00002b2581d7d28a in YBlock::evaluate () from /usr/lib64/libycp.so.3
#25 0x00002b2581d66c93 in YSRepeat::evaluate () from /usr/lib64/libycp.so.3
#26 0x00002b2581d7d28a in YBlock::evaluate () from /usr/lib64/libycp.so.3
#27 0x00002b2581d59f42 in Y2YCPFunction::evaluateCall () from /usr/lib64/libycp.so.3
#28 0x00002b2581d52c1b in YEFunction::evaluate () from /usr/lib64/libycp.so.3
#29 0x00002b2581d42799 in YCPCodeRep::evaluate () from /usr/lib64/libycp.so.3
#30 0x00002b2581dc7887 in ?? () from /usr/lib64/libycp.so.3
#31 0x00002b2581d53c93 in YEBuiltin::evaluate () from /usr/lib64/libycp.so.3
#32 0x00002b2581d63397 in YSAssign::evaluate () from /usr/lib64/libycp.so.3
#33 0x00002b2581d7d28a in YBlock::evaluate () from /usr/lib64/libycp.so.3
#34 0x00002b2581d59f42 in Y2YCPFunction::evaluateCall () from /usr/lib64/libycp.so.3
#35 0x00002b2581d52c1b in YEFunction::evaluate () from /usr/lib64/libycp.so.3
#36 0x00002b2581d63397 in YSAssign::evaluate () from /usr/lib64/libycp.so.3
Comment 1 Lukas Ocilka 2007-10-08 14:59:44 UTC
The very last line in log is:
Start parsing /var/cache/zypp/raw/SUSE-Linux-Enterprise-POS_10/suse/setup/descr/SLEPOS-1.0-1.i586.pat[g___]
Comment 2 Michael Andres 2007-11-06 14:56:54 UTC
Broken pattern file: Not starting with 

  =Ver: 5.0
  =Pat: SLEPOS 1.0 1 i586
  ...

SEGV is meanwhile fixed, nevertheless the pattern files are broken.


*** This bug has been marked as a duplicate of bug 328546 ***
Comment 3 Michael Andres 2007-11-06 15:02:22 UTC
Well, we probably have to fix the pattern files...
Comment 4 Lukas Ocilka 2007-11-06 17:08:53 UTC
Yes, patterns need fixing.
Comment 5 Petr Ostadal 2007-11-07 10:43:31 UTC
Thnx Lukas for investigating, I will fix the patterns according to http://en.opensuse.org/Libzypp/Metadata/YaST/pattern documentation.
Comment 6 Petr Ostadal 2007-11-07 11:53:10 UTC
fixed in r345