From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: guix-pull prints stack trace Date: Sat, 10 Sep 2016 12:33:46 +0200 Message-ID: <87h99oqc1h.fsf@T420.taylan> References: <877fakibfh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bifbc-0005T9-72 for guix-devel@gnu.org; Sat, 10 Sep 2016 06:33:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bifba-0001YF-2Z for guix-devel@gnu.org; Sat, 10 Sep 2016 06:33:51 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:32928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bifbZ-0001YB-P7 for guix-devel@gnu.org; Sat, 10 Sep 2016 06:33:50 -0400 Received: by mail-wm0-x241.google.com with SMTP id b187so6126274wme.0 for ; Sat, 10 Sep 2016 03:33:49 -0700 (PDT) In-Reply-To: <877fakibfh.fsf@gmail.com> (Alex Vong's message of "Sat, 10 Sep 2016 13:14:10 +0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Vong Cc: guix-devel@gnu.org Alex Vong writes: > Hello, > > It seems the commit c41d97b causes guix-pull to print stack trace. > > Here is the stack trace: > =========================================================================== > In ice-9/psyntax.scm: > 989: 19 [scan ((define-module (gnu packages tex) #:use-module ...)) () ...] > 279: 18 [scan ((#(syntax-object let # ...) (#) (# #) ...)) () ...] > In ice-9/eval.scm: > 411: 17 [eval # ()] > In ice-9/boot-9.scm: > 2951: 16 [define-module* (gnu packages tex) #:filename ...] > 2926: 15 [resolve-imports ((# # license:) (#) (#) (#) ...)] > 2864: 14 [resolve-interface (gnu packages pdf) #:select ...] > 2789: 13 [# # ...] > 3065: 12 [try-module-autoload (gnu packages pdf) #f] > 2401: 11 [save-module-excursion #] > 3085: 10 [#] > In unknown file: > ?: 9 [primitive-load-path "gnu/packages/pdf" ...] > In ice-9/eval.scm: > 505: 8 [# (define-module # # ...)] > In ice-9/psyntax.scm: > 1106: 7 [expand-top-sequence ((define-module # # # ...)) () ((top)) ...] > 989: 6 [scan ((define-module (gnu packages pdf) #:use-module ...)) () ...] > 279: 5 [scan ((#(syntax-object let # ...) (#) (# #) ...)) () ...] > In ice-9/eval.scm: > 411: 4 [eval # ()] > In ice-9/boot-9.scm: > 2951: 3 [define-module* (gnu packages pdf) #:filename ...] > 2926: 2 [resolve-imports ((# # license:) (#) (#) (#) ...)] > 2867: 1 [resolve-interface (gnu packages javascript) #:select ...] > In unknown file: > ?: 0 [scm-error misc-error #f ...] > > ERROR: In procedure scm-error: > ERROR: no code for module (gnu packages javascript) > builder for `/gnu/store/58ji3i7a0dl2sgf39m16l90alnyyvc9j-guix-latest.drv' failed with exit code 1 > guix pull: error: build failed: build of `/gnu/store/58ji3i7a0dl2sgf39m16l90alnyyvc9j-guix-latest.drv' failed > =========================================================================== > > Looking at the patch, I think the problem is in > `#:use-module (gnu packages javascript)'. The bug I introduced to guix pull (while speeding it up) that has a tiny chance of causing a thread race related error has never been fixed. Maybe it's related to that. As of e714797 I can't reproduce the error; guix pull runs fine to completion. Possibly a commit after c41d97b "fixed" the issue again by changing the order of autoloads or some such. But it could also be related to the number of cores on my machine, how much you moved around your pointer device recently, or the phase of the moon. :-\ If you still hit the error, or anyone else does, I'll get to work on it ASAP. Otherwise, I'm quite out of the loop but IIRC there was some talk of an entirely different guix pull mechanism, that uses git pull or so? If so and if this bug continues to trigger extremely rarely, then I'm not sure if it would be worth the effort to make bigger changes to the current 'guix pull' mechanism. Taylan P.S.: Feel free to contact me on Freenode (nick 'taylan') if you want to bypass email for quicker communication.