From: Arnout E. <no...@bz...> - 2014-01-16 10:07:41
|
Sounds totally reasonable to me! On Thu, Jan 16, 2014 at 10:18 AM, Dima Kogan <no...@di...>wrote: > Hi. > > Earlier today I was debugging a segfault in notion (caused by me, it > turns out), and it appeared that notion makes it more difficult to debug > these than it should be. > > When a fatal signal such as SIGSEGV is received, it is handled by > fatal_signal_handler() in > > libmainloop/signal.c > > That function simply prints out a message, disables the handler, and > re-sends the signal. This does nothing useful (process is killed by the > same signal anyway), but does something harmful: the stack trace of the > original segfault is replaced by the stack trace of > fatal_signal_handler(). How would we feel about removing all the FATAL() > handlers, and let the process die normally? The DEADLY() and IGNORE() > handlers potentially do something useful, so I'm only talking about the > FATAL() ones. > > dima > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Notion-devel mailing list > Not...@li... > https://lists.sourceforge.net/lists/listinfo/notion-devel > |