Closed hendrikhofstadt closed 4 years ago
Tag @jackcmay
@hendrikhofstadt Can you tell me what commit you are at, I'd like to confirm that exact point of failure
@jackcmay 0bc9bcc8
@hendrikhofstadt The lines numbers in the stack trace don't match correctly at the commit. I expect that the panic is happening here: https://github.com/solana-labs/solana/blob/f3e83c080a8f58f6aa7417234798bac4a046345b/programs/bpf_loader/src/syscalls.rs#L818
@jackcmay yes, i had some minor changes that changed line numbers
Fixed in #11649
Problem
When allocating an account using a cross-program-invocation of
SystemInstruction::CreateAccount
the handler panics when trying to copy the newly created account's data to the original VM-owned account. This fails because then lengths of both do not match since at the start the program has a data of 0 len and the newly allocated size afterwards.