This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0/2] Demangler crash handler


* Mark Kettenis:

> No.  It's this skind of duct-tape that will make sure that bugs in the
> demangler won't get fixed.  Apart from removing the incentive to fix
> the bugs, these SIGSEGV signal handlers make actually fixing the bugs
> harder as you won't have core dumps.

I find this approach extremely odd as well.

> Besides, any signal handler that does more than just setting a flag is
> probably broken.  Did you verify that you only call async-signal-safe
> functions in the signal handler code path?

At least it doesn't make things much worse because the program is
already in a funny state when the signal is generated.

It would be more reliable to run the demangler in a separate process.

What's so difficult about fixing the demangler?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]