Hi!

On Fri, 2019-06-14 at 12:17:27 +0200, Rhonda D'Vine wrote:
> severity 930072 important
> thanks

> On 6/12/19 10:35 PM, Peter Pentchev wrote:
> > On Thu, Jun 06, 2019 at 04:04:39PM +0200, Guillem Jover wrote:
> >> Package: dctrl-tools
> >> Version: 2.24-3
> >> Severity: serious

> >> The join-dctrl command segfaults with the attached files.
> >>
> >>   ,---
> >>   $ join-dctrl Packages-A Packages-B
> >>   Segmentation fault (core dumped)

> > From what I think I see, I believe that this is less wrong behavior
> > and more lack of error detection and proper error messages.
> > The manual page states that some field joining options must be
> > specified - some combination of -j, -1, and -2. A command like:
> 
>  I have to agree with Peter here.  While I don't disagree with that it
> is a bug that needs to get addressed, it doesn't fall under the category
> of release-critical because the manpage states that a join field must be
> specified.

Right, sorry, I think I tried with -1, -2 but the segfaults threw me
away. So, it also states that -1 and -2 can be used instead of -j, and
each of these segfault when used standalone, or just do not work
(depending on the order!) at all when used together:

  ,---
  $ join-dctrl -1Package Packages-A Packages-B
  Segmentation fault (core dumped)
  $ $ join-dctrl -2Package Packages-A Packages-B
  Segmentation fault (core dumped)
  $ join-dctrl -1Package -2Package Packages-A Packages-B
  join-dctrl: the join field of the second file has already been specified.
  $ join-dctrl -2Package -1Package Packages-A Packages-B
  Package: aaa
  Version: 1.0
  Package: aaa
  Version: 1.1
  `---

So, it only works when -2 goes before -1. It all feels at least
extremely user unfriendly, and a bit serious to me TBH. :) But I'm not
a regular user of this command, just thought I needed it for some task,
but that ended up not being the case. :) But I think I'd probably given
up anyway and write something using libdpkg-perl, given the hurdles.

Thanks,
Guillem

Reply via email to