Re: Segmentation Fault Issue in PostgreSQL 13.4

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

 



have encountered similar issues in my own code when developing C extension. Root cause is very likely  a bug in the cause_segfault() C function.
You should compile your C code in debug mode and use debugger to check what invalid memory access you have in your code.
See https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD#Identifying_the_backend_to_connect_to

Le sam. 22 juin 2024 à 09:05, Veerendra Pulapa <veerendra.pulapa@xxxxxxxxxx> a écrit :
Hello Folks,

I’m encountering a segmentation fault issue in PostgreSQL 13.4 when executing a specific function (cause_segfault()). The server process terminates with a signal 11 (Segmentation fault), but the database service continues running without a full shutdown.

Details:

      •     PostgreSQL Version: 13.4
      •     Environment: RHEL 8
      •     Steps to Reproduce:
      1.    Create function: CREATE FUNCTION cause_segfault() RETURNS void AS 'cause_segfault', 'cause_segfault' LANGUAGE C STRICT;
      2.    Execute function: SELECT cause_segfault();

Observations:

      •     Logs indicate the segmentation fault (LOG: server process (PID XXX) was terminated by signal 11: Segmentation fault).

Request for Assistance:

      •     Has anyone encountered similar issues with PostgreSQL 13.4?
      •     Are there known bugs or fixes related to segmentation faults in recent PostgreSQL versions?
      •     Any advice on troubleshooting or resolving this issue would be greatly appreciated.

Thank you for your assistance.

______________________________________________________________________________________
This email may contain confidential, privileged or copyright material and is solely for the use of the intended recipient(s). If you are not the rightful recipient of this email, please delete this email immediately and inform the recipient. 


[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux