Package: reprepro
Version: 4.13.1-1+b2
Severity: normal

I have a repository with two distributions and a pull defined between
them; I'll call them "source" and "dest" for the sake of argument.
This repository has a few components, including a "ports" component
for software we've ported from other sources (backports, repackaging,
bugfixes applied to upstream packages, etc).  I have an overrides
file, attached to both distributions, to ensure that all of the third
party software is placed in the correct component, so it overrides the
Section value.

If I apply this override to udebs, it works fine when bringing the
packages in via processincoming or includedeb, but if I then run the
"pull", it dies with an "Out of Memory!" crash.  It is certainly
nowhere near out of memory when it does so.

After some debugging, it appears that the problem is in the
interaction of ubinaries_doreoverride() and
override_addreplacefields().  ubinaries_doreoverride() passes NULL in
for the otherreplaces argument.  override_addreplacefields() is
supposed to update this with the override, but since this is a Section
override during a pull, it gets skipped.  That leaves otherreplaces
as NULL, which is then returned, causing ubinaries_doreoverride() to
mistakenly think that there was a memroy allocation error.

For my particular use case I can work around this, as I only ever
allow uploading to the "source" distribution, and then later pull to
the "dest" distribution, so I can just remove udeb override from the
"dest" and the override on "source" will handle sorting out the
components.  But I can imagine workflows in which both could be
uploaded to, and you would want to apply overrides for new uploads
without encountering this issue on pulls.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.12-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reprepro depends on:
ii  libarchive13   3.1.2-8
ii  libbz2-1.0     1.0.6-5
ii  libc6          2.18-4
ii  libdb5.3       5.3.28-3
ii  libgpg-error0  1.12-0.2
ii  libgpgme11     1.4.3-0.1
ii  zlib1g         1:1.2.8.dfsg-1

Versions of packages reprepro recommends:
ii  apt  0.9.15.5+b1

Versions of packages reprepro suggests:
ii  gnupg-agent      2.0.22-3
ii  inoticoming      0.2.3-1
pn  lzip             <none>
ii  xz-utils [lzma]  5.1.1alpha+20120614-2

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to