JDK-8316866 : assert(loop_count < K) failed: infinite loop in PhaseIterGVN::transform
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2023-09-21
  • Updated: 2023-09-25
  • Resolved: 2023-09-25
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug-xiezf_2023_09_20_15_15-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)

A DESCRIPTION OF THE PROBLEM :
I ran a regression testcase using JDK8u321, I found the JVM crashed under the option -Xcomp  -XX:LoopUnrollLimit=10000

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/data/jdk8u/hotspot/src/share/vm/opto/phaseX.cpp:1151), pid=62120, tid=0x00007f90a3161700
#  assert(loop_count < K) failed: infinite loop in PhaseIterGVN::transform
#
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java  -Xcomp  -XX:LoopUnrollLimit=10000 TestDoubleBoxing

ACTUAL -
15354  MergeMem        === _  1  15355  1  15359  [[ 15351  15350  15350 ]]  { - N15359:java/lang/Double:exact+16 * }  Memory: @BotPTR *+bot, idx=Bot; !orig=368,314,171,[170],[258],[214] !jvms: TestDoubleBoxing::remi_sum @ bci:18
 15350  MergeMem        === _  1  7  15354  15354  [[ 15351  20734 ]]  { N15354:rawptr:BotPTR N15354:java/lang/Double:exact+16 * }  Memory: @BotPTR *+bot, idx=Bot; !orig=353,301,[149],[214] !jvms: TestDoubleBoxing::remi_sum @ bci:18
 15351  MergeMem        === _  1  15350  1  15354  [[ 15347  15346  15346 ]]  { - N15354:java/lang/Double:exact+16 * }  Memory: @BotPTR *+bot, idx=Bot; !orig=354,171,[170],[258],[214] !jvms: TestDoubleBoxing::remi_sum @ bci:18
 15346  MergeMem        === _  1  7  15351  15351  [[ 15347  20733 ]]  { N15351:rawptr:BotPTR N15351:java/lang/Double:exact+16 * }  Memory: @BotPTR *+bot, idx=Bot; !orig=313,301,[149],[214] !jvms: TestDoubleBoxing::remi_sum @ bci:18
 15347  MergeMem        === _  1  15346  1  15351  [[ 15343  15342  15342 ]]  { - N15351:java/lang/Double:exact+16 * }  Memory: @BotPTR *+bot, idx=Bot; !orig=314,171,[170],[258],[214] !jvms: TestDoubleBoxing::remi_sum @ bci:18
 3      Start   ===  3  0  [[ 3  5  6  7  8  9 ]]  #{0:control, 1:abIO, 2:memory, 3:rawptr:BotPTR, 4:return_address}
 15342  MergeMem        === _  1  7  15347  15347  [[ 15343  20732  215 ]]  { N15347:rawptr:BotPTR N15347:java/lang/Double:exact+16 * }  Memory: @BotPTR *+bot, idx=Bot; !orig=301,[149],[214] !jvms: TestDoubleBoxing::remi_sum @ bci:18
 7      Parm    ===  3  [[ 1390  41  177  41  301  215  313  353  390  429  433  437  504  563  567  571  576  579  583  587  713  805  809  813  818  821  825  829  955  1088  1092  1096  1101  1104  1108  1112  1117  1120  1124  1128  1133  1136  1140  1144  1570  1574  1578  1583  1586  1590  1594  1599  1602  1606  1610  1615  1618  1622  1626  1631  1634  1638  1642  1647  1650  1654  1658  1663  1666  1670  1674  1679  1682  1686  1690  2176  2484  2488  2492  2497  2500  2504  2508  2513  2516  2520  2524  2529  2532  2536  2540  2545  2548  2552  2556  2561  2564  2568  2572  2577  2580  2584  2588  2593  2596  2600  2604  3090  3558  3562  3566  3571  3574  3578  3582  3587  3590  3594  3598  3603  3606  3610  3614  3619  3622  3626  3630  3635  3638  3642  3646  3651  3654  3658  3662  3667  3670  3674  3678  3683  3686  3690  3694  3699  3702  3706  3710  3715  3718  3722  3726  3731  3734  3738  3742  3747  3750  3754  3758  3763  3766  3770  3774  3779  3782  3786  3790  3795  3798  3802  3806  4772  5368  5372  5376  5381  5384  5388  5392  5397  5400  5404  5408  5413  5416  5420  5424  5429  5432  5436  5440  5445  5448  5452  5456  5461  5464  5468  5472  5477  5480  5484  5488  5493  5496  5500  5504  5509  5512  5516  5520  5525  5528  5532  5536  5541  5544  5548  5552  5557  5560  5564  5568  5573  5576  5580  5584  5589  5592  5596  5600  5605  5608  5612  5616  6582  7498  7502  7506  7511  7514  7518  7522  7527  7530  7534  7538  7543  7546  7550  7554  7559  7562  7566  7570  7575  7578  7582  7586  7591  7594  7598  7602  7607  7610  7614  7618  7623  7626  7630  7634  7639  7642  7646  7650  7655  7658  7662  7666  7671  7674  7678  7682  7687  7690  7694  7698  7703  7706  7710  7714  7719  7722  7726  7730  7735  7738  7742  7746  7751  7754  7758  7762  7767  7770  7774  7778  7783  7786  7790  7794  7799  7802  7806  7810  7815  7818  7822  7826  7831  7834  7838  7842  7847  7850  7854  7858  7863  7866  7870  7874  7879  7882  7886  7890  7895  7898  7902  7906  7911  7914  7918  7922  7927  7930  7934  7938  7943  7946  7950  7954  7959  7962  7966  7970  7975  7978  7982  7986  7991  7994  7998  8002  9928  11100  11104  11108  11113  11116  11120  11124  11129  11132  11136  11140  11145  11148  11152  11156  11161  11164  11168  11172  11177  11180  11184  11188  11193  11196  11200  11204  11209  11212  11216  11220  11225  11228  11232  11236  11241  11244  11248  11252  11257  11260  11264  11268  11273  11276  11280  11284  11289  11292  11296  11300  11305  11308  11312  11316  11321  11324  11328  11332  11337  11340  11344  11348  11353  11356  11360  11364  11369  11372  11376  11380  11385  11388  11392  11396  11401  11404  11408  11412  11417  11420  11424  11428  11433  11436  11440  11444  11449  11452  11456  11460  11465  11468  11472  11476  11481  11484  11488  11492  11497  11500  11504  11508  11513  11516  11520  11524  11529  11532  11536  11540  11545  11548  11552  11556  11561  11564  11568  11572  11577  11580  11584  11588  11593  11596  11600  11604  13530  15342  15346  15350  15355  15358  15362  15366  15371  15374  15378  15382  15387  15390  15394  15398  15403  15406  15410  15414  15419  15422  15426  15430  15435  15438  15442  15446  15451  15454  15458  15462  15467  15470  15474  15478  15483  15486  15490  15494  15499  15502  15506  15510  15515  15518  15522  15526  15531  15534  15538  15542  15547  15550  15554  15558  15563  15566  15570  15574  15579  15582  15586  15590  15595  15598  15602  15606  15611  15614  15618  15622  15627  15630  15634  15638  15643  15646  15650  15654  15659  15662  15666  15670  15675  15678  15682  15686  15691  15694  15698  15702  15707  15710  15714  15718  15723  15726  15730  15734  15739  15742  15746  15750  15755  15758  15762  15766  15771  15774  15778  15782  15787  15790  15794  15798  15803  15806  15810  15814  15819  15822  15826  15830  15835  15838  15842  15846  15851  15854  15858  15862  15867  15870  15874  15878  15883  15886  15890  15894  15899  15902  15906  15910  15915  15918  15922  15926  15931  15934  15938  15942  15947  15950  15954  15958  15963  15966  15970  15974  15979  15982  15986  15990  15995  15998  16002  16006  16011  16014  16018  16022  16027  16030  16034  16038  16043  16046  16050  16054  16059  16062  16066  16070  16075  16078  16082  16086  16091  16094  16098  16102  16107  16110  16114  16118  16123  16126  16130  16134  16139  16142  16146  16150  16155  16158  16162  16166  16171  16174  16178  16182  16187  16190  16194  16198  16203  16206  16210  16214  16219  16222  16226  16230  16235  16238  16242  16246  16251  16254  16258  16262  16267  16270  16274  16278  16283  16286  16290  16294  16299  16302  16306  16310  16315  16318  16322  16326  16331  16334  16338  16342  16347  16350  16354  16358  20204  22528  22532  22536  22541  22544  22548  22552  22557  22560  22564  22568  22573  22576  22580  22584  22589  22592  22596  22600  22605  22608  22612  22616  22621  22624  22628  22632  22637  22640  22644  22648  22653  22656  22660  22664  22669  22672  22676  22680  22685  22688  22692  22696  22701  22704  22708  22712  22717  22720  22724  22728  22733  22736  22740  22744  22749  22752  22756  22760  22765  22768  22772  22776  22781  22784  22788  22792  22797  22800  22804  22808  22813  22816  22820  22824  22829  22832  22836  22840  22845  22848  22852  22856  22861  22864  22868  22872  22877  22880  22884  22888  22893  22896  22900  22904  22909  22912  22916  22920  22925  22928  22932  22936  22941  22944  22948  22952  22957  22960  22964  22968  22973  22976  22980  22984  22989  22992  22996  23000  23005  23008  23012  23016  23021  23024  23028  23032  23037  23040  23044  23048  23053  23056  23060  23064  23069  23072  23076  23080  23085  23088  23092  23096  23101  23104  23108  23112  23117  23120  23124  23128  23133  23136  23140  23144  23149  23152  23156  23160  23165  23168  23172  23176  23181  23184  23188  23192  23197  23200  23204  23208  23213  23216  23220  23224  23229  23232  23236  23240  23245  23248  23252  23256  23261  23264  23268  23272  23277  23280  23284  23288  23293  23296  23300  23304  23309  23312  23316  23320  23325  23328  23332  23336  23341  23344  23348  23352  23357  23360  23364  23368  23373  23376  23380  23384  23389  23392  23396  23400  23405  23408  23412  23416  23421  23424  23428  23432  23437  23440  23444  23448  23453  23456  23460  23464  23469  23472  23476  23480  23485  23488  23492  23496  23501  23504  23508  23512  23517  23520  23524  23528  23533  23536  23540  23544  27390 ]] Memory  Memory: @BotPTR *+bot, idx=Bot; !orig=[50] !jvms: TestDoubleBoxing::remi_sum @ bci:-1
 215    MergeMem        === _  1  7  15342  1  [[ 286 ]]  { N15342:rawptr:BotPTR - }  Memory: @BotPTR *+bot, idx=Bot; !orig=[262] !jvms: TestDoubleBoxing::remi_sum @ bci:28
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/phaseX.cpp:1151
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/data/jdk8u/hotspot/src/share/vm/opto/phaseX.cpp:1151), pid=62120, tid=0x00007f90a3161700
#  assert(loop_count < K) failed: infinite loop in PhaseIterGVN::transform
#
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/repository/bugs/TestDoubleBoxing_09_21_14_55_28/hs_err_pid62120.log
#
# Compiler replay data is saved as:
# /home/repository/bugs/TestDoubleBoxing_09_21_14_55_28/replay_pid62120.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 140259188152064

---------- BEGIN SOURCE ----------

---------- END SOURCE ----------

FREQUENCY : always



Comments
Duplicate of JDK-8260650. I narrowed it down with build-search.
25-09-2023

Issue is reproduced. Crash is observed on JDK 8 and JDK 11 fastdebug build. OS: Windows 10 JDK 8u381 Fastdebug: Fail JDK 11.0.20 Fastdebug : Fail JDK 17.0.8: Pass JDK 21: Pass ILW = Crash, reproducible on debug build, no known workaround yet = MLM = P4 Moving it to dev team for further analysis.
25-09-2023