Skip to content

Investigate invalid syscall selector error #3072

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

Closed
1 task done
franciszekjob opened this issue Mar 10, 2025 · 4 comments
Closed
1 task done

Investigate invalid syscall selector error #3072

franciszekjob opened this issue Mar 10, 2025 · 4 comments
Assignees
Labels
bug Something isn't working new

Comments

@franciszekjob
Copy link
Contributor

franciszekjob commented Mar 10, 2025

Which component is your bug related to?

snforge

Foundry Version

0.38.3

What operating system are you using?

Linux

What system architecture are you using?

x86

What happened

(This issue was reported by one of out users on telegram, ref link: https://t.me/starknet_foundry_support/5652)

Image

the last uncommented line (let expected peak = ... ) is the one that makes the second test fail due to "Invalid syscall selector" error, but that same very similar line (almost the same) in the first test is working fine

test fails when poseidon_hash_bn254 function is called and the endpoint append_leaf_aocl of the contract in the same test.

Worth noting that append_leaf_aocl does uses the same poseidon_hash_bn254 internally (within the contract), but interacting with the contract and this endpoint alone causes no issues.

Code is here https://github.com/keep-starknet-strange/garaga/tree/msets/src/contracts/mutator_set (all test passes in this code)

Function: https://github.com/keep-starknet-strange/garaga/blob/main/src/src/hashes/poseidon_bn254.cairo#L16

(cairo 2.9.2 was used here)

Trace

No response

Is there an existing issue for this?

  • I have searched the existing issues and verified no issue exits for this problem.
@franciszekjob franciszekjob added the bug Something isn't working label Mar 10, 2025
@github-actions github-actions bot added the new label Mar 10, 2025
@cptartur cptartur moved this from New to Backlog in Starknet foundry Mar 11, 2025
@cptartur cptartur moved this from Backlog to TODO in Starknet foundry Mar 17, 2025
@kkawula kkawula assigned kkawula and unassigned franciszekjob Apr 2, 2025
@cptartur cptartur moved this from TODO to In Progress in Starknet foundry Apr 2, 2025
@bezze
Copy link

bezze commented Apr 25, 2025

Bump. I've managed to reproduce this exact same issue here https://github.com/fatlabsxyz/invalid_syscall_0xfd2.git . The new insight is that it might be related to arithmetic circuits.

@kkawula
Copy link
Member

kkawula commented Apr 28, 2025

Hi @bezze, thanks for your report. We have already fixed it, but it hasn't been released yet. It would be included in 0.43.0 for sure. ~ETA 3 weeks. cc @cptartur

@bezze
Copy link

bezze commented Apr 28, 2025

Great! Thank you!

@cptartur cptartur linked a pull request Apr 28, 2025 that will close this issue
@kkawula kkawula moved this from In Progress to Done in Starknet foundry Apr 30, 2025
@kkawula kkawula closed this as completed May 20, 2025
@kkawula
Copy link
Member

kkawula commented May 27, 2025

@bezze version 0.44.0 with the fix is out now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants