[ 
https://issues.apache.org/jira/browse/CALCITE-5227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17601821#comment-17601821
 ] 

Daniel Glöckner commented on CALCITE-5227:
------------------------------------------

[~julianhyde] judging from the logs of the PR build the issue reproduces
https://ci.appveyor.com/project/ApacheSoftwareFoundation/calcite/builds/44717078/job/n1nn2l8bb11j8fxf
{code}
[00:20:23] #
[00:20:23] # A fatal error has been detected by the Java Runtime Environment:
[00:20:23] #
[00:20:23] #  Internal Error (metaspaceArena.cpp:93), pid=4572, tid=6656
[00:20:23] #  guarantee(requested_word_size <= chunklevel::MAX_CHUNK_WORD_SIZE) 
failed: Requested size too large (3023253) - max allowed size per allocation is 
524288.
[00:20:23] #
[00:20:23] # JRE version: OpenJDK Runtime Environment (16.0.1+9) (build 
16.0.1+9-24)
[00:20:23] # Java VM: OpenJDK 64-Bit Server VM (16.0.1+9-24, mixed mode, 
sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
[00:20:23] # Core dump will be written. Default location: C:\projects\calcite 
+\core\hs_err_pid4572.mdmp
[00:20:23] #
[00:20:23] # An error report file with more information is saved as:
[00:20:23] # C:\projects\calcite +\core\hs_err_pid4572.log
[00:20:23] #
[00:20:23] # If you would like to submit a bug report, please visit:
[00:20:23] #   https://bugreport.java.com/bugreport/crash.jsp
[00:20:23] #
[00:20:32] 
{code}

> Janino upgrade breaks SELECTs with many projects causing JVM crashes
> --------------------------------------------------------------------
>
>                 Key: CALCITE-5227
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5227
>             Project: Calcite
>          Issue Type: Bug
>    Affects Versions: 1.30.0
>            Reporter: Daniel Glöckner
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 1.32.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In our case we have SELECTs with > 1000 project fields. You might say this is 
> a bit crazy but this is how our data model looks like ;)
> We recently upgraded to Calcite 1.30 and noticed JVM crashes for such 
> SELECTs. 
> After thorough analysis we found that the byte code produced by newer Janino 
> versions is 350 times larger compared to the byte code produced by javac. 
> I created a unit test to reproduce the issue in Calcite code base: 
> https://github.com/apache/calcite/commit/f4d4815dff5537c56b34b36794c71d7a9829eec6
> The Janino issue is tracked here: 
> https://github.com/janino-compiler/janino/issues/174



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to