bug-libsigsegv
[Top][All Lists]
Advanced

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

Re: [bug-libsigsegv] Re: sigsegv on s390 only giving start address of pa


From: Christian Borntraeger
Subject: Re: [bug-libsigsegv] Re: sigsegv on s390 only giving start address of page in segv handler
Date: Tue, 15 Mar 2011 12:04:15 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Icedove/3.1.4

Am 15.03.2011 10:50, schrieb Bruno Haible:
> Martin Schwidefsky wrote:
>> Even with the access-exception-fetch/store-indication facility you'll find
>> on the latest machine it is not possible to distinguish read from write
>> faults in all cases ... On older machines the TEID does not carry an
>> indication if the page translation exception has been for a read or a
>> write.
> 
> Oh well then. Thank you for having considered the question.
> 
> libsigsegv will now offer the page-aligned fault address approximation to
> userland, together with a C macro that warns the programmer that it is
> page-aligned.

Can you give some insights about the other use cases? Userspace page faults can
be handled just fine with the page address (I have done that for the s390x
port of valgrind). Would a "works most of the time but might return the page
address in 10% of the cases" be ok for your other use cases? (e.g. just
for pretty printing this is certainly ok)

Christian



reply via email to

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