Hi, On 2020-10-15 01:32:46 -0700, Andres Freund wrote: > I have a fix for this, but I've just stared at s390 assembly code for > ~10h, never having done so before. So that'll have to wait for tomorrow. > > It's quite possible that that fix would also help on other > architectures...
Pushed now to 11-master. Author: Andres Freund <and...@anarazel.de> Branch: master [72559438f] 2020-10-15 14:29:53 -0700 Branch: REL_13_STABLE [ae3e75aba] 2020-10-15 14:30:40 -0700 Branch: REL_12_STABLE [c8a2bb0f1] 2020-10-15 14:31:32 -0700 Branch: REL_11_STABLE [f3dee5b9a] 2020-10-15 15:06:16 -0700 llvmjit: Also copy parameter / return value attributes from template functions. Previously we only copied the function attributes. That caused problems at least on s390x: Because we didn't copy the 'zeroext' attribute for ExecAggTransReparent()'s *IsNull parameters, expressions invoking it didn't ensure that the upper bytes of the registers were zeroed. In the - relatively rare - cases where not, ExecAggTransReparent() wrongly ended up in the newValueIsNull branch due to the register not being zero. Subsequently causing a crash. It's quite possible that this would cause problems on other platforms, and in other places than just ExecAggTransReparent() on s390x. Thanks to Christoph (and the Debian project) for providing me with access to a s390x machine, allowing me to debug this. Reported-By: Christoph Berg Author: Andres Freund Discussion: https://postgr.es/m/20201015083246.kie5726xerdt3...@alap3.anarazel.de Backpatch: 11-, where JIT was added I had a successful check-world run with maximum jittery on s390x. But I did hit the issue in different places than you did, so it'd be cool if you could re-enable JIT for s390x - I think you have a package tracking HEAD? Thanks again Christoph! Greetings, Andres Freund