[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#757396: autopkgtest: crashes on spamassassin 3.4.0-2 with --built-tree, but not with --apt-source



tag 757396 unreproducible moreinfo
thanks

Hello Antonio,

Antonio Terceiro [2014-08-07 15:30 -0300]:
> Let me show how I can currently reproduce this bug.

I have some trouble with reproducing this. It works for me with both a
directory and a file type schroot. I also checked out current debci,
created a new schroot with "sudo bin/debci setup", and ran exactly
this command:

> $ adt-run --user debci spamassassin-3.4.0/ --- schroot debci-unstable-amd64

I only get the "python: command not found" proper failures, not the
exception in copydown_shareddir(). So I suppose this is not specific
to a schroot configuration but perhaps specific to a file system or a
race condition. I also have this case (multiple tests with schroot and
a tree, although it uses --unbuilt-tree instead of --built-tree) in
the test suite:

  http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/tree/tests/adt-run#n1433

Would you mind running this (from apt-get source autopkgtest or a git
checkout):

  ADT_TEST_SCHROOT=debci-unstable-amd64 tests/adt-run SchrootRunner.test_tree_norestrictions_nobuild_success

You can try with different schroots; this needs to be able to run the
schroot with the same user, thus you might need to run the entire
thing in "sudo -u debci -i" or so. Does that succeed or fail
(hopefully with the same exception)?

>   File "/usr/share/autopkgtest/python/VirtSubproc.py", line 417, in copyupdown
>     copydown_shareddir(sd[0], sd[1], dirsp, downtmp_host)
>   File "/usr/share/autopkgtest/python/VirtSubproc.py", line 374, in copydown_shareddir
>     shutil.copytree(host, host_tmp, symlinks=True)
> FileExistsError: [Errno 17] File exists: '/var/lib/schroot/mount/debci-unstable-amd64-06662192-e8ac-4c1a-aaf7-e36c434659c6/tmp/adt-run.FL2v8q/tree'

The command immediately before the copytree() is
shutil.rmtree(host_tmp, ignore_errors=True). I suppose there are
actually some errors in removing the previous tree, so
ignore_errors=True is probably not such a good idea here after all.
Could you try to edit /usr/share/autopkgtest/python/VirtSubproc.py
in-place to drop the ignore_errors=True from the rmtree() call and
give me the error message then? It's apparently running into some file
which it could create but not delete (permissions? EBUSY?)

Thanks!

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20140813/e589e374/attachment.sig>


Reply to: