bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] infinite symlink directory loop causes segfault with --cre


From: Eric Blake
Subject: Re: [Bug-tar] infinite symlink directory loop causes segfault with --create --dereference
Date: Tue, 15 Jul 2014 15:21:01 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 07/15/2014 03:15 PM, Pavel Raiskup wrote:

> Out of curiosity, Paul, could you point me to some (preferably GNU)
> project trapping segfaults in a portable way?

GNU libsigsegv is designed as a library that you can use in your own
projects for just this purpose. At least GNU m4 and GNU awk use
libsigsegv to give the user a nicer exit on stack overflow (since in
programs that are designed to interpret user input and where the user
input can cause recursion, trapping segv is the only sane thing to do to
give a nicer user error message, because predicting in advance whether
all possible user inputs will fit in a limited stack would be equivalent
to solving the Halting Problem).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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