bug-gnulib
[Top][All Lists]
Advanced

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

Re: abort() in regex.c


From: Bruno Haible
Subject: Re: abort() in regex.c
Date: Mon, 26 Mar 2012 11:21:46 +0200
User-agent: KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; )

Hi Vladimir,

> In GRUB everything runs in the same environment and so
> abort() can only be mapped to complete bootloader termination. It's
> unreasonable to do such an action in case of regexp error.

Have you seen this abort() happen?

abort() marks the end of an execution branch in case of
  - hardware error,
  - a program bug that is easy to determine.

abort() is not used in conditions that can be expected to happen in
production environments.

When you are in a situation where abort() is called, trying to continue
program execution (via "unknown regexp error", for example) only makes the
determination of the program bug harder.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]