Closed kgardas closed 2 years ago
On 4 July 2014 16:42, kgardas notifications@github.com wrote:
Please note that actual crash on Solaris is on stack frame 7 due to signal handling of SIGSEGV. So in both cases sf_sql_free_stmt looks buggy. Seeing this I would call it a bug which may be used for a nice DoS attack.
My Jena provider is:
$ java -jar ../webapps/xwiki/WEB-INF/lib/virt_jena2.jar OpenLink Virtuoso(TM) Provider for Jena(TM) Version 2.10.1 [Build 1.10]
and as a JDBC driver I've tested those two:
$ java -jar ../webapps/xwiki/WEB-INF/lib/virtjdbc4.jar OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.x [Build 3.66] $ java -jar ../webapps/xwiki/WEB-INF/lib/virtuoso-backup/virtjdbc4_1.jar OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.1 [Build 3.70]
Otherwise I'm running JDK 1.7 here together with Jena 2.11.1
Googling for the same issue I've found following thread http://boards.openlinksw.com/phpBB3/viewtopic.php?f=12&t=2244 where symptoms looks very similar to mines. i.e. ~10k statements etc.
Hi Karel,
Please could you send a sample of your application code that's causing this?
It's pretty obvious where the error's coming from within Virtuoso, but I need to check if the client is exhibiting aberrant behaviour to provoke it.
Thanks,
Tim Haynes Product Development Consultant OpenLink Software http://www.openlinksw.com/ http://twitter.com/openlink
Hi Tim, of course, but is source code enough or do you need some simplified example to run? If code, then please have a look at https://github.com/kgardas/semxwiki/blob/master/semanticXWiki/src/main/java/com/objectsecurity/jena/Context.java -- this is a semantic XWiki extension. As you can see in the code this is basically a wrapper around Jena to support XWiki macros which are in xwiki package. The issue is caused by my semantic xwiki benchmark tool which basically speaking upload N pages with M properties (this results in N*M triplets to be loaded into tripletstore). Seeing numbers I think it's really about 10k limit for some statements as described in the cited forum link. If you'd like to form a duplicating issue example, then basically you need to make an example which will obtain Context and then invoke setProperty for certain resource on it and also query for props on this resource (getPropertyTableForResource). By several thousands of those methods invocation you shall get to the issue. Of course, you will need to have Virtuoso running and also JENA_BACKEND env. var set to `virtuoso' Let me know if I may help you anyhow with this, I would love to see this beast running with Virtuoso! Thanks! Karel
Hi Tim, is there anything how can I help you with issue duplication and fix? I'm asking since I've tried to use Virtuoso using its SPARQL/HTTP interface, but this fails too. Already reported here: #215 Perhaps this fix to Jena adapter is not that complex? Thanks! Karel
Issue with "Jena crashes Virtuoso server: SR491: Too many open statements" was fixed in last versions of Jena provider and Virtuoso JDBC driver.
Please try to use the latest jena2 and Virtuoso JDBC drivers from the develop/7 branch which contain a number of fixes that should resolve the statements leak issue.
Hi Can you confirm if this problem is still an issue for you particularly with the latest Virtuoso 7.2 release ?
Hi, sorry for delay, will test early next week. Thanks for your patience. Karel
Hello. was this issue finally resolved? Could you please provide your latest findings if any?
Hi, sorry, the related project is already over and I do not have any reason not to believe @smalinin claim the issue is fixed.
Hello, got Version 7.1.1-dev.3211-pthreads as of Jul 4 2014 here, which is exactly cb01f54019795bca13119ab58a768d131883d480 When I compile with on Debian 7.5 and use it with Jena/Virtuoso provider, my Java code after some time throws following exception:
and the server crashes with following backtrace:
That's on Debian 7.5. On Solaris 11.1 I'm able to get the same crash too which looks then:
Please note that actual crash on Solaris is on stack frame 7 due to signal handling of SIGSEGV. So in both cases sf_sql_free_stmt looks buggy. Seeing this I would call it a bug which may be used for a nice DoS attack.
My Jena provider is:
and as a JDBC driver I've tested those two:
All java jars used here are downloaded from openlinksw.com site or obtained from virtuoso-opensource tree where they are precompiled. I don't compile this piece of code here.
Otherwise I'm running JDK 1.7 here together with Jena 2.11.1
Googling for the same issue I've found following thread http://boards.openlinksw.com/phpBB3/viewtopic.php?f=12&t=2244 where symptoms looks very similar to mines. i.e. ~10k statements etc. Thanks! Karel