runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[ARM32] Assert failure (DENORMALIZE_CODE_OFFSET(NORMALIZE_CODE_OFFSET(callSite)) == callSite)

Open parjong opened this issue 10 years ago • 3 comments

CoreCLR from '2cb70487f01ac' commit shows the following assert failure when running 'Hello, World!!' example:

Assert failure(PID 1722 [0x000006ba], Thread: 1722 [0x06ba]): DENORMALIZE_CODE_OFFSET(NORMALIZE_CODE_OFFSET(callSite)) == callSite
    File: /home/parjong/projects/toolchains/coreclr/src/gcinfo/gcinfoencoder.cpp Line: 1220
    Image: /mnt/dotnet-latest/corerun

**** MessageBox invoked, title 'corerun - Assert Failure (PID 1722, Thread 1722/0x06ba)' ****
  DENORMALIZE_CODE_OFFSET(NORMALIZE_CODE_OFFSET(callSite)) == callSite

/home/parjong/projects/toolchains/coreclr/src/gcinfo/gcinfoencoder.cpp, Line: 1220

Abort - Kill program
Retry - Debug
Ignore - Keep running


Image:
/mnt/dotnet-latest/corerun

********

parjong avatar Apr 21 '16 00:04 parjong

Here is the test results with various commit.

  • 2cb70487f01acadc201fcb8db6b29d29e56b3b7e Failed
  • 4ca790ef4ac498341639726a5953976dd2c8099c Failed
  • 7c0cf5f137709b61e4ee0448a1d29869c2d60812 Failed
  • 7216f5fe20685962654143454c1caf383d581dee Failed
  • fbaa5ce5068cd28eda3fadaf5af82bb332a723aa Failed
  • 3f540a356f3e4d8f780010661e51dc620bee93f8 Failed
  • ce80d93ba30edceb56fef854a5e9c62bd84357d3 Failed
  • 24adf2bead2a19665c86a568af03259697ab7565 Passed
  • 1d6710a82a31460c1761f77898159bd1c6697b2e Passed
  • 21597ece522339ffdd127508c111a7748963d507 Passed
  • 0eff733cd407e0d5fbabedbf0d7dc19d357595c5 Passed
  • 8bfab0ac3a0d2ae48b39f28bde2b7f2a8ee718e4 Failed

8bfab0ac3a0d2ae48b39f28bde2b7f2a8ee718e4 seems to introduce this issue.

parjong avatar Apr 21 '16 02:04 parjong

Is the assertion DENORMALIZE_CODE_OFFSET(NORMALIZE_CODE_OFFSET(callSite)) == callSite valid at src/gcinfo/gcinfoencoder.cpp:1220?

In my understanding, the value of callSite seems to be valid offset -1. The comments at src/inc/gcinfotypes.h:272 also says that offsets are encoded with a - 1 adjustment.

If I get correctly, the assertion should be DENORMALIZE_CODE_OFFSET(NORMALIZE_CODE_OFFSET(callSite + 1)) == (callSite + 1))

parjong avatar Apr 21 '16 02:04 parjong

I can execute Hello, World example with 50cf7134f60b050c82eef0 commit

parjong avatar Apr 22 '16 03:04 parjong