-
Notifications
You must be signed in to change notification settings - Fork 135
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
Question about Multilingual Support #458
Comments
I have simplified my Rust code as follows:
Compilation command: Slicing command: The error message is as follows:
|
Hi,
I think the issue is in the difference between LLVM generated by rustc and clang. Although DG was not written with a specific compiler in mind, it was tested basically only on LLVM generated from C code with clang (C because DG does not support C++ exceptions). It seems that rust generates the debugging information somehow differently than clang. The crash from the other report could be that DG does not check for the nullptr (or this check is an assertion and your build is release) for some value that is alway present in the Clang-generated code, but not in rustc-generated code. |
Hello,
I would like to inquire about the current support for other languages in dg. I am trying to convert Rust code to .bc using rustc and then perform program slicing with dg, but I am encountering issues with the slicing criteria. Below is a simple Rust program I am using:
Compilation command:
rustc --emit=llvm-bc -C debuginfo=2 main.rs
Command to invoke dg:
./llvm-slicer -c __assert_fail /home/firepunch/slice-ex/main.bc
I have tried various slicing criteria such as -c val, -c 3:a, -c __assert_fail, and -c ret, but all return similar error messages:
I would like to know if the issue lies with my slicing criteria, differences between rustc and clang, or something else? Thank you!
The text was updated successfully, but these errors were encountered: