-
Notifications
You must be signed in to change notification settings - Fork 78
SIGSEGV under high load #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, I notice in your example code that the function is annotated Did you also encounter the segfault at any time with the default setting of As mentioned in the release notes, the user guide section on parallel query, and the wiki page on parallel query,
and
I should probably make the Javadoc comments link to the user guide section to make those notes more likely to be seen. Out of curiosity, what considerations led to marking the function If the segfault is not reproducible with the default |
Current our setup is "PostgreSQL 9.6.17 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39), 64-bit". Last year setup was 9.6.11 or 9.6.12 (I don't remember exaclty). Unfortunately, I cann't switch to pl/java code to test function with Parallel.UNSAFE, so I could not establish whether it was a Parallel.UNSAFE issue. |
Hmm. Would you be able to attach the entire If PostgreSQL came from Red Hat packages, I can probably obtain the corresponding versions and debuginfo. It sounds as if PL/Java was locally built. Do you still have the |
Here is hserr files left: hs_err.log.zip |
Sorry, didn't find the libpljava-so-*.so file. |
I am doubtful that I can do much with this. There is only one frame in the stack trace, which is PostgreSQL's own The call site might not even be within PL/Java. That doesn't mean I question that PL/Java is involved, but there might have been a null value returned at some point that is now being passed to The lack of caller stack frames probably indicates that PostgreSQL was built without the |
Hi.
About a year ago we used pl/java in production (it was version 1.5.1-BETA2, or may be even 1.5.3-SNAPSHOT), but encountered periodic database restarts due to fatal errors in pl/java related code. We have migrated our code to pl/python (working slower and requires superuser, no fatal errors anymore). But this information may be useful for project development.
The most frequently used pl/java function is test sanitizing with com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer
The main part of pl/java function code is
The text was updated successfully, but these errors were encountered: