nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] [PATCH] restore terminal and print backtrace for segfaults


From: Brand Huntsman
Subject: [Nano-devel] [PATCH] restore terminal and print backtrace for segfaults and assertions
Date: Mon, 15 Jan 2018 00:59:26 -0700

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. The backtrace patch would give users an idea where nano crashed, for 
bug reports, but increased the binary by 24k. The backtrace code could be
placed behind a --with-backtrace configure option for users or --enable-debug 
for devs.

Attachment: restore-terminal-and-print-backtrace-for-segfaults-and-assertions.patch
Description: Text Data

Attachment: restore-terminal-for-segfaults-and-assertions.patch
Description: Text Data


reply via email to

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