Opened 4 years ago

Closed 3 years ago

#216 closed defect (wontfix)

createrepo 0.4.9 on large repository gets msg GLib-WARNING **: GError set over the top of a previous GError or uninitialized mem

Reported by: Shmuel (Seymour J.) Metz Owned by:
Priority: minor Milestone:
Component: *none Version:
Severity: medium Keywords: createrepo, GError
Cc:

Description

The command sh -c "createrepo -d k:/vendors/openSUSE/repos/oss" gets multiple error messages

(process:3796): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Parsing other.xml error: PCDATA invalid Char value 8
Thu 10-24-19 22:15:31{127}[h:\] sh -c "createrepo --version"
0.4.9

k:/vendors/openSUSE/repos/oss is a download of openSUSE LEAP 15.1 files from the oss repository.

Change History (6)

comment:1 Changed 4 years ago by Silvan Scherrer

please update to the latest version first. 0.4.9 is very old. current is 0.10.4-3

comment:2 Changed 4 years ago by Shmuel (Seymour J.) Metz

What is the url for the latest createrepo rpm? I tried 0.9.9 and got

Wed 10-30-19 21:04:40{0}[h:\] sh -c "createrepo -d k:/vendors/opensuse/repos/oss"
Spawning worker 0 with 35212 pkgs
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/@unixroot/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inn
er
    self.run()
  File "/@unixroot/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/@unixroot/usr/lib/python2.7/subprocess.py", line 1443, in _readerthread

    data = _eintr_retry_call(file.read)
  File "/@unixroot/usr/lib/python2.7/subprocess.py", line 485, in _eintr_retry_c
all
    return func(*args)
MemoryError



Wed 10-30-19 23:11:46{1}[h:\] sh -c "createrepo --version"
createrepo 0.9.9

comment:3 Changed 4 years ago by Silvan Scherrer

"yum update createrepo", as like always with our ports.

comment:4 Changed 4 years ago by Shmuel (Seymour J.) Metz

Silly me - I trusted the --version output. When I looked at the installed package name I saw that it was current.

I believe that ANPM calls yum under the covers.

Should I create a new ticket for the memory error in the current version?

comment:5 Changed 4 years ago by Silvan Scherrer

it seems we run out of memory in python while reading all packages. I doubt there is much we can do about that.

comment:6 Changed 3 years ago by Silvan Scherrer

Resolution: wontfix
Status: newclosed

python based createrepo is outdated and will not be supported anymore. we ported the c version instead. so this ticket is obsolete now.

Note: See TracTickets for help on using tickets.