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.
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.
Get Outlook for iOS
______________________________________________________________________________________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.