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 `isInt<32>(RealOffset)' failed #123

Open
marcrasi opened this issue Nov 20, 2020 · 0 comments
Open

Assertion `isInt<32>(RealOffset)' failed #123

marcrasi opened this issue Nov 20, 2020 · 0 comments

Comments

@marcrasi
Copy link
Contributor

marcrasi commented Nov 20, 2020

This used to be https://bugs.swift.org/browse/TF-747, but I'm moving the issue here and adding more details.

It's flaky and hard to reproduce, but here are the kinds of things you need to try:

If you trigger it, the kernel will crash and this will print out on the terminal:

/swift-base/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:307: void llvm::RuntimeDyldELF::resolveX86_64Relocation(const llvm::SectionEntry &, uint64_t, uint64_t, uint32_t, int64_t, uint64_t): Assertion `isInt<32>(RealOffset)' failed.

Our guess at the reason and how to fix:

If you load up too many shared libraries in jupyter then most of the address space gets used and the memory manager starts giving you pieces of memory that are too far apart for the relocation, causing this error. The only real fix we can think of is migrating LLDB to use orcjit, which Saleem thinks is O(months) of work.

PythonKit + TensorFlow is "too much" for the purposes of this problem, so notebooks using both are going to be flaky.

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