Skip to content

Missing space in error message about stack usage #146

Open
@niooss-ledger

Description

@niooss-ledger

Hello,

When trying to build some Solana program, I got this error:

Error: Function _ZN14spl_token_20229extension21confidential_transfer12verify_proof30verify_transfer_with_fee_proof17h685e567a79796daaE Stack offset of 4392 exceeded max offset of 4096 by 296 bytes, please minimize large stack variables. Estimated function frame size: 4472 bytes. Exceeding the maximum stack offset may cause undefined behavior during execution.

Error: A function call in method _ZN14spl_token_20229extension21confidential_transfer12verify_proof30verify_transfer_with_fee_proof17h685e567a79796daaE overwrites values in the frame. Please, decrease stack usage or remove parameters from the call.The function call may cause undefined behavior during execution.

A space is missing between call. and The function. In the latest commit from the current default branch (solana-rustc/19.1-2024-12-03), this string is generated from:

dbgs() << "Error: A function call in method "
<< MF.getFunction().getName()
<< " overwrites values in the frame. Please, decrease stack usage "
<< "or remove parameters from the call."
<< "The function call may cause undefined behavior "
"during execution.\n\n";

Would it be possible to add a space after call. line 161?

(By the way, I found this issue while following the tutorial on owner checks, which is using spl-token-2022 3.0.4 in Cargo.lock. The error reported by the compiler was already fixed in a later version of Token-2022, as mentioned on solana-program/token-2022#216 (comment).)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions