Skip to contentSkip to conversation

sigsegv on s390 only giving start address of page in segv handler

bug-libsigsegv Bruno Haible 1 participant 1 message Mar 15, 2011 1 message not in the archive s390

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · Christian Borntraeger

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?

For most applications, that would work, yes. In GNU clisp, the fault handler needs some changes, because it assumed to be able to detect the region within the page based on the address, and had some related assertions. But in the end, the mprotect() call emitted by the fault handler depends only on the page and not on the address within the page.

Bruno

Signature · 1 line
In memoriam Diego de Enzinas <http://en.wikipedia.org/wiki/Diego_de_Enzinas>