-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
segmentation fault while using onnxruntime==1.21.0 #24144
Comments
here is the exception message that is issued. I am not seeing a segmentation fault on the main build: unknown file: error: C++ exception with description "Load model from D :/dev/data/SegmentationFault_gh_24144/hf_Qwen2 - 7B - Instruct_model.onnx failed:Load model D :/dev/data/SegmentationFault_gh_24144/hf_Qwen2 - 7B - Instruct_model.onnx failed" thrown in the test body. |
Hi @yuslepukhin, Thanks for looking into it. |
Hi @yuslepukhin , I'm using model from the following location: https://huggingface.co/Qwen/Qwen2-7B-Instruct/tree/main |
Please, share exactly what you did. Also, please, share any console messages, enable logging and share, specifically what makes you think there is a segmentation fault. Also, please, fill out the template as to the version of your Linux OS etc. |
@yuslepukhin I'm trying to create a script which can reproduce the issue at your end. I'll try to share with you soon. |
Steps to reproduce:
Please let me know if you need any information from my side in this regard. Thanks |
I have followed the procedure and got the model. Produced a debug build from the tip of main. |
Hi @yuslepukhin, Were you able to run the complete script without any segmentation fault? If yes, can you please check the onnxruntime version?
While running inference step, I was getting Seg Fault: |
The bug reproduces with 1.21.0, but is not there with the latest code. D:\dev\data\SegmentationFault_gh_24144$ pip list certifi 2025.1.31 |
@yuslepukhin It is great that you are able to reproduce the issue. I think we should add this as a testcase to avoid such a regression in the future. What do you say? Let me know if you want me to add it. If yes, can you please share some documentation or guide me on how to add it and verify the same. |
onnxruntime getting crashed with segmentation fault when using version 1.21.0. It is not crashing when using 1.20.1 release.
Steps to reproduce:
hf_Qwen2-7B-Instruct_model.onnx.gz
The text was updated successfully, but these errors were encountered: