Re: Bug#732937: dpkg: fails somewhat regularly on kfreebsd-amd64

2014-01-18 Thread Michael Vogt
On Sun, Jan 12, 2014 at 08:05:06PM +, Steven Chamberlain wrote:
 Control: tags -1 found apt/0.9.14.2
 
 Indeed upgrading only libapt-pkg4.12 is enough to trigger this.
[..]

I bisected this and it it appears that c3045b is the one that
introduced the problem. 

Looking closer it appears that I can not do
  ioctl(d-slave, TIOCSCTTY, 0)
more than ones on freebsd without a new openpty() to get a new master
pty (i.e. I can not use the slave fd again). I will do more digging
into this issue. 


Cheers,
 Michael


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140118231653.GB10489@bod



Re: Bug#732937: dpkg: fails somewhat regularly on kfreebsd-amd64

2014-01-17 Thread Michael Vogt
Hello,

On Thu, Jan 16, 2014 at 12:15:18PM +, Steven Chamberlain wrote:
 On 16/01/14 12:11, Robert Millan wrote:
  If you just want a sid system to debug apt, it's probably quicker to install
  wheezy and dist-upgrade.
 
 This bug should be reproducible in stable just by upgrading
 libapt-pkg4.12 and dependencies as needed.  So I think Aurelien's Qemu
 wheezy images would be the quickest way.

Thank you and Robert and Cyril for your help and suggestions.

I have a kfreebsd stable install in qemu now and can reproduce the bug
with my git apt tree. It looks like the pty handling in pkgDpkgPM
broke and the stdout of the dpkg inside the pty is closed/unavailable
too early for some reason.

I see:
  error writing to 'standard output': No such file or directory
on the dpkg status-fd when running with
  apt-get install 2vcard -o Debug::pkgDPkgProgressReporting=true 

I haven't found the root cause of the issue yet unfortunately. 

As a workaround you can use the -o Dpkg::Use-Pty=False option, e.g.:
# apt-get -o Dpkg::Use-Pty=False dist-upgrade

Cheers,
 Michael


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140117203316.GQ3662@bod



Re: Bug#732937: dpkg: fails somewhat regularly on kfreebsd-amd64

2014-01-15 Thread Michael Vogt
On Sun, Jan 12, 2014 at 08:05:06PM +, Steven Chamberlain wrote:
 Control: tags -1 found apt/0.9.14.2
 
 Indeed upgrading only libapt-pkg4.12 is enough to trigger this.
[..]

Thanks a bunch for your bugreport and sorry for my slow reply. Its
likely that this is fallout from some fairly big changes in the
handling of dpkg.

What is the best way for me to reproduce this? I don't have a kfreebsd
system right now - is installing one from a current installer image in
kvm the quickest way (I assume so)?

Cheers,
 Michael

 


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140116064226.GU3852@bod