ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] Q: [python3] posix_fadvise не работает в hasher`е?
Date: Thu, 14 Feb 2013 13:11:09 +0400
Message-ID: <20130214091109.GA19577@newmaster.mivlgu.local> (raw)
In-Reply-To: <511BB61F.2000904@solin.spb.ru>

[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]

On Wed, Feb 13, 2013 at 07:49:51PM +0400, Aleksey Avdeev wrote:
>   Собирая, на people, python3 (см.
> <http://git.altlinux.org/people/solo/packages/?p=python3.git;a=commit;h=645f68819c3b7c89b0683b9aa8f93c3e375eb287>)
> наткнулся на странное поведение теста posix_fadvise (см. man posix_fadvise):
> 
>   При выполнении теста в hasher`е, он возвращает ошибку (и при сборке, и
> при ручном запуске):
> 
> ======================================================================
> ERROR: test_posix_fadvise (test.test_posix.PosixTester)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/src/RPM/BUILD/python3-3.3.0/Lib/test/test_posix.py", line
> 234, in test_posix_fadvise
>     posix.posix_fadvise(fd, 0, 0, posix.POSIX_FADV_WILLNEED)
> OSError: [Errno 22] Invalid argument

А chroot при этом находится на tmpfs?  Тогда результат будет зависеть
от версии ядра - в некоторых версиях posix_fadvise() при использовании
с файлами на tmpfs возвращает ошибку EINVAL вместо того, чтобы молча
ничего не делать.

Сломали, похоже, в районе 3.1:

  http://comments.gmane.org/gmane.linux.suse.kernel/3182

Починили якобы в 3.6:

  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=3d3727cdb07ff17ddc3c551ef8d03d37b60a0372

(и тоже из-за обваливающихся тестов, правда, там Ruby лазил в /tmp,
где tmpfs можно найти со значительно большей вероятностью, чем в
каталоге сборки).

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

  parent reply	other threads:[~2013-02-14  9:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-13 15:49 Aleksey Avdeev
2013-02-13 15:57 ` Paul Wolneykien
2013-02-13 16:11   ` Aleksey Avdeev
2013-02-13 16:14     ` Paul Wolneykien
2013-02-13 16:55       ` Aleksey Avdeev
2013-02-14  9:11 ` Sergey Vlasov [this message]
2013-02-14 12:00   ` Aleksey Avdeev
2013-02-14 16:38     ` Dmitry V. Levin
2013-02-14 17:15       ` Aleksey Avdeev
2013-02-14 20:05         ` Dmitry V. Levin
2013-02-14 21:30           ` Aleksey Avdeev
2013-02-17  0:11             ` Aleksey Avdeev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130214091109.GA19577@newmaster.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git