all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw@netris.org>
Cc: 19779-done@debbugs.gnu.org
Subject: bug#19779: dmd: service definition errors cause kernel panic
Date: Wed, 25 Nov 2015 12:02:09 +0100	[thread overview]
Message-ID: <87lh9mjqa6.fsf@gnu.org> (raw)
In-Reply-To: <87lhkckerl.fsf@netris.org> (Mark H. Weaver's message of "Thu, 05 Feb 2015 02:18:22 -0500")

Mark H Weaver <mhw@netris.org> skribis:

> When I first wrote 'wicd-service', I mispelled
> 'make-forkexec-constructor'.  This caused a kernel panic whenever the
> service was included in my OS config.  I don't know whether dmd printed
> a helpful error message, but if so, it was followed immediately by a
> kernel call trace that caused earlier messages to scroll off the screen.
> The result is that it was quite difficult to find the source of the
> error.
>
> In case of such errors, it would be good if dmd would print an error
> message with the most useful information at the bottom (in case it does
> not all fit on the display) and then to avoid exiting so that the
> message could be read and understood.

Commit b9c7ed7 wraps service loading in ‘call-with-error-handling’,
which spawns a REPL when something goes wrong.  Better than a kernel
panic!

Ludo’.

      reply	other threads:[~2015-11-25 11:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05  7:18 bug#19779: dmd: service definition errors cause kernel panic Mark H Weaver
2015-11-25 11:02 ` Ludovic Courtès [this message]

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=87lh9mjqa6.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=19779-done@debbugs.gnu.org \
    --cc=mhw@netris.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.