https://bugzilla.novell.com/show_bug.cgi?id=859759 https://bugzilla.novell.com/show_bug.cgi?id=859759#c0 Summary: Memory corruption warning when error occurs parsing primary.xml Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: archie@dellroad.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:26.0) Gecko/20100101 Firefox/26.0 Something went wrong while running createrepo. I'm not worried about this first problem. But the first problem caused createrepo to corrupt memory and make GLib mad: [exec] Regenerating repository meta-data... [exec] No such file or directory [exec] (process:7703): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. [exec] This indicates a bug in someone's code. You must ensure an error is NULL before it's set. [exec] The overwriting error message was: Parsing primary.xml error: Premature end of data in tag package line 1463 [exec] [exec] [exec] (process:7703): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. [exec] This indicates a bug in someone's code. You must ensure an error is NULL before it's set. [exec] The overwriting error message was: Parsing primary.xml error: Premature end of data in tag metadata line 2 [exec] [exec] Traceback (most recent call last): [exec] File "/usr/share/createrepo/genpkgmetadata.py", line 279, in <module> [exec] main(sys.argv[1:]) [exec] File "/usr/share/createrepo/genpkgmetadata.py", line 257, in main [exec] mdgen.doRepoMetadata() [exec] File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 1000, in doRepoMetadata [exec] rp.getPrimary(complete_path, csum) [exec] File "/usr/lib/python2.7/site-packages/sqlitecachec.py", line 42, in getPrimary [exec] self.repoid)) [exec] TypeError: Parsing primary.xml error: Premature end of data in tag checksum line 1467 [exec] Reproducible: Always Steps to Reproduce: Not sure how this happened... Actual Results: [exec] Regenerating repository meta-data... [exec] No such file or directory [exec] (process:7703): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. [exec] This indicates a bug in someone's code. You must ensure an error is NULL before it's set. [exec] The overwriting error message was: Parsing primary.xml error: Premature end of data in tag package line 1463 [exec] [exec] [exec] (process:7703): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. [exec] This indicates a bug in someone's code. You must ensure an error is NULL before it's set. [exec] The overwriting error message was: Parsing primary.xml error: Premature end of data in tag metadata line 2 [exec] [exec] Traceback (most recent call last): [exec] File "/usr/share/createrepo/genpkgmetadata.py", line 279, in <module> [exec] main(sys.argv[1:]) [exec] File "/usr/share/createrepo/genpkgmetadata.py", line 257, in main [exec] mdgen.doRepoMetadata() [exec] File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 1000, in doRepoMetadata [exec] rp.getPrimary(complete_path, csum) [exec] File "/usr/lib/python2.7/site-packages/sqlitecachec.py", line 42, in getPrimary [exec] self.repoid)) [exec] TypeError: Parsing primary.xml error: Premature end of data in tag checksum line 1467 [exec] Expected Results: [exec] Regenerating repository meta-data... [exec] No such file or directory [exec] Parsing primary.xml error: Premature end of data in tag metadata line 2 [exec] $ rpm -qi createrepo Name : createrepo Version : 0.9.9 Release : 2.1.2 Architecture: i586 Install Date: Sun 24 Feb 2013 03:45:27 PM CST Group : System/Packages Size : 292028 License : GPL-2.0+ Signature : RSA/SHA256, Sun 15 Jul 2012 03:27:00 PM CDT, Key ID b88b2fd43dbdc284 Source RPM : createrepo-0.9.9-2.1.2.src.rpm Build Date : Sun 15 Jul 2012 03:26:39 PM CDT Build Host : build27 Relocations : (not relocatable) Packager : http://bugs.opensuse.org Vendor : openSUSE URL : http://linux.duke.edu/metadata/ Summary : Creates a Common Metadata Repository Description : This utility generates a common metadata repository from a directory of RPM packages. Distribution: openSUSE 12.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.