Re: server crash on raspberry pi for large queries
От | David Rowley |
---|---|
Тема | Re: server crash on raspberry pi for large queries |
Дата | |
Msg-id | CAApHDvoSLgz_WLK8XKNbkLAQqk-BRva0+CdR26Rp=7vXnVAycw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: server crash on raspberry pi for large queries (Matthew Clark <mclark@drmatthewclark.com>) |
Список | pgsql-bugs |
On Wed, 21 Aug 2024 at 07:18, Matthew Clark <mclark@drmatthewclark.com> wrote: > I can try to make a test case, essentially a large table, then "select count(*)" from table. The select works for smallertables. It would be good to figure out which instruction is being executed that's causing this. Would you be able to attach with gdb and trigger the crash? [1]. I think gdb should print out the problem instruction. Looking at master, I see we call LLVMGetHostCPUFeatures() to figure this stuff out. I've not yet looked to see if that's changed since PG15. If we knew the instruction that's being executed here then we might be able to figure out if it's down to cpuid advertising something that the CPU supports that isn't fully supported (maybe unlikely?) or if it's LLVM that's accidentally emitting code that does not work on the CPU. Does it also trigger if you enable jit but do: "set jit_optimize_above_cost = -1;", maybe the problem instruction is only emitted at higher optimisation levels. Thomas mentioned to me that he has seen issues in this area before, albeit with x86 on a Celeron [2] when LLVM emitted an unsupported AVX. David [1] https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD [2] https://www.postgresql.org/message-id/CAEepm%3D1oLBeRjGw9RS6n%3Du0fE4t0WZMMawcfJopkmTmxRoefGw%40mail.gmail.com
В списке pgsql-bugs по дате отправления: