Skip to content
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

Assertion violation about computed heap block address in GC_next_block #660

Open
ivmai opened this issue Sep 4, 2024 · 1 comment
Open

Comments

@ivmai
Copy link
Owner

ivmai commented Sep 4, 2024

Source: master (57ccbcc)
Build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/625772331
Host: Ubuntu/ppc64le
Config: CFLAGS_EXTRA="-O3 -D _FORTIFY_SOURCE=2 -D DONT_PROTECT_PTRFREE -D FORCE_MPROTECT_BEFORE_MADVISE -D GC_UNMAPPED_REGIONS_SOFT_LIMIT=120" CONF_OPTIONS="--enable-gc-assertions --enable-cplusplus --enable-static"

Output (disclaimtest):

Assertion failure: headers.c:378

Asserion violation happens at:
c29365b#diff-95225c42602c1f888b9599f55503cded07e197d7f37596ac84fe622ce85e8373R378

                if (allow_free || !HBLK_IS_FREE(hhdr)) {
                    GC_ASSERT(HBLK_ADDR(bi, j) == ADDR(hhdr -> hb_block));
                    return hhdr -> hb_block;

Relates to #627 (commit c29365b)

@ivmai
Copy link
Owner Author

ivmai commented Oct 3, 2024

Source: master (7c3ba8a)
Build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/626753216
Host: ppc64le
Compiler: clang
Config: CFLAGS_EXTRA="-O3 -D _FORTIFY_SOURCE=2 -D DONT_PROTECT_PTRFREE -D FORCE_MPROTECT_BEFORE_MADVISE -D GC_UNMAPPED_REGIONS_SOFT_LIMIT=120" CONF_OPTIONS="--enable-gc-assertions --enable-cplusplus --enable-static" GCTEST_WITH_MPROTECT_VDB=true
Output (gctest):

Supported VDBs: manual soft mprotect
Switched to incremental mode
Emulating dirty bits with mprotect/signals
Assertion failure: headers.c:396
assertion failure
Assertion failure: headers.c:396
assertion failure
Assertion failure: headers.c:396
assertion failure
Assertion failure: headers.c:396
assertion failure
GC Warning: GC incremental mode is turned off to prevent hitting VM maps limit
GC Warning: GC incremental mode is turned off to prevent hitting VM maps limit
Child process failed, pid= 9915, status= 0x86
Test failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant