Skip to content

Conversation

@Lunderberg
Copy link
Contributor

Prior to this commit, the FFI error propagation in Python assumed that any stack frame with a known file name also had a known line number. This commit updates the error propagation to instead check if a known line number is present.

Closes #15880.

Prior to this commit, the FFI error propagation in Python assumed that
any stack frame with a known file name also had a known line number.
This commit updates the error propagation to instead check if a known
line number is present.

Closes apache#15880.
@Lunderberg
Copy link
Contributor Author

@jinhongyii I have this PR marked as a draft, to prevent merging prior to your confirmation of its effect.

@Lunderberg Lunderberg force-pushed the ffi_check_if_line_number_is_known branch from 61bf726 to 68603cb Compare October 23, 2023 20:42
@junrushao
Copy link
Member

Hey do you think it's ready? I met the same issue and this one seems a good fix to me

@Lunderberg
Copy link
Contributor Author

@junrushao I think it is. Since you ran into the same issue and can verify that the fix resolves it, I'm marking it as ready for review. (I wasn't able to reproduce the original error, so I was waiting for confirmation from somebody who could.)

@Lunderberg Lunderberg marked this pull request as ready for review October 30, 2023 13:25
@Lunderberg Lunderberg changed the title [Draft][FFI][Python] Handle error propagation when line number is missing [FFI][Python] Handle error propagation when line number is missing Oct 30, 2023
Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot wait to get it merged!

@junrushao junrushao merged commit c6f2816 into apache:main Oct 30, 2023
@Lunderberg Lunderberg deleted the ffi_check_if_line_number_is_known branch October 30, 2023 18:52
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

Successfully merging this pull request may close these issues.

[Bug] [Unity] Fail to print out call trace under relax::Normalizer

2 participants