ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Voinov <voins@altlinux.ru>
To: devel@lists.altlinux.org
Subject: [devel] buildreq and ghc
Date: Thu, 16 Aug 2007 20:48:00 +0400
Message-ID: <m3vebfa0jj.fsf@altlinux.ru> (raw)

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


Всем привет.

Задался я тут странной целью: обновить в Sisyphus darcs до свеженькой
версии (1.0.9). Всё бы замечательно, но никак не удаётся мне обновить
BuildRequires. Выглядит всё приблизительно так: в некоторый
произвольный момент времени (каждый раз разный) сборка под buildreq
останавливается во время запуска ghc (точнее остановки). Убрав всё
лишнее получаем следующую картинку:


$ strace -kqfF -e trace=file -o log -- rpmbuild -bc --target=i586 darcs.spec
...
checking for ghc... ghc
checking where GHC keeps its libraries...  <остановились>


$ ps fwww -p 5263,5264,5275,5374,5745
  PID TTY      STAT   TIME COMMAND
 5263 pts/2    S+     0:01 strace -kqfF -o log -- rpmbuild -bc --target=i586 darcs.spec
 5264 pts/2    TN+    0:00  \_ rpmbuild -bc --target=i586 darcs.spec
 5275 pts/2    TN+    0:00      \_ /bin/sh -e /home/voins/tmp/rpm-tmp.78893
 5374 pts/2    TN+    0:00          \_ /bin/sh ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext --with-sendmail=/usr/sbin/sendmail
 5745 pts/2    ZN+    0:00              \_ [ghc-6.4.2] <defunct>


$ tail log
5745  times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 429668963
5745  close(2)                          = 0
5745  exit_group(0)                     = ?
5746  <... select resumed> )            = ? ERESTARTNOHAND (To be restarted)
5374  <... read resumed> "", 128)       = 0
5374  close(3)                          = 0
5374  rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
5374  rt_sigaction(SIGINT, {0x8071700, [], 0}, {SIG_IGN}, 8) = 0
5374  rt_sigaction(SIGINT, {SIG_IGN}, {0x8071700, [], 0}, 8) = 0
5374  waitpid(-1,


И кажется мне, когда я гляжу на всё на это, что здесь спрятался
какой-то race-condition, но вот понять в где он именно и как его
обойти моя мозга мне почему-то не даёт. Без strace сборка отрабатывает
замечательно и полностью и на i586, и на x86-64.


На всякий случай:

rpm-utils-0.9.6-alt1
strace-4.5.16-alt1
bash-3.1.17-alt2
ghc-6.4.2-alt2

-- 
Best Regards!
Alexey Voinov

voins@voins.program.ru
voins@altlinux.ru

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

             reply	other threads:[~2007-08-16 16:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-16 16:48 Alexey Voinov [this message]
2007-08-16 17:18 ` Dmitry V. Levin
2007-08-16 19:27   ` Alexey Voinov
2007-08-16 21:47     ` Dmitry V. Levin
2007-08-17  4:57       ` Alexey Voinov

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=m3vebfa0jj.fsf@altlinux.ru \
    --to=voins@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