Closed GoogleCodeExporter closed 9 years ago
r154803 reverts r154390 and disallows the clients to set their signal handlers.
This should help Chrome, although NaCl tests are broken again.
Original comment by ramosian.glider@gmail.com
on 16 Apr 2012 at 8:34
From the Chromium point of view ASan is a platform, and our SEGV handler is
essentially the default handler for this platform.
If we allow the clients to disable it at all, this may help NaCl, but we'll
have to remove all the Chromium code that disables it in the child processes,
so that we don't lose coverage.
At the moment such a change leads to NaCl being sad again, because it does not
consider ASan as a platform and does not want any signal handlers from it.
Therefore we need some changes on the NaCl side, so the question arises whether
we actually needed to change the Chrome part.
I see two possible solutions for the problem.
1. Let the clients disable our signal handler at their own risk.
Remove all the Chromium code that sets SIG_DFL for the child processes.
When the NaCl process is started, set the signal handler to SIG_DFL.
2. Keep being a platform.
Let the clients set their own signal handlers.
Choosing SIG_DFL sets the ASan handler back.
If the client (e.g. NaCl) really wants the system SIG_DFL, it must
pass some predefined value to sigaction()
(we can either define an additional SIG_ constant, or have some RTL
function with a special meaning, e.g.
signal(SIGSEGV,__asan_system_default_signal_handler) will set the handler to
SIG_DFL)
Original comment by ramosian.glider@gmail.com
on 16 Apr 2012 at 8:35
In fact just calling some ASan interface function
(__asan_reset_default_signal_handler) is even better than using a special value
to pass to signal/sigaction.
Original comment by ramosian.glider@gmail.com
on 16 Apr 2012 at 10:25
Original comment by ramosian.glider@gmail.com
on 29 Oct 2012 at 11:46
is this actionable?
Original comment by konstant...@gmail.com
on 15 Feb 2013 at 2:27
Please reopen if we still need to do something.
Original comment by konstant...@gmail.com
on 18 Feb 2013 at 6:55
Adding Project:AddressSanitizer as part of GitHub migration.
Original comment by ramosian.glider@gmail.com
on 30 Jul 2015 at 9:12
Original issue reported on code.google.com by
ramosian.glider@gmail.com
on 16 Apr 2012 at 8:31