nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] restore terminal and print backtrace for segfau


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] restore terminal and print backtrace for segfaults and assertions
Date: Mon, 15 Jan 2018 12:09:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0


Op 15-01-18 om 08:59 schreef Brand Huntsman:
These patches add a segfault handler and custom assertion handler that restore
the terminal before exiting. The first patch also displays a backtrace.

The backtrace-less patch only increased the nano binary by 32 bytes and would
 be nice to have in case nano ever segfaults in normal use or when testing.

But this also does an endwin(), which means that it wipes all of nano and
its content from the screen and restores the terminal to what it looked
like before nano started.  I don't think I would like that.  I want to see
the content of the screen at the point that nano crashed.

Benno



reply via email to

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