Replies: 5 comments
-
When you ask such a low-level question, first please commit your code. Then it would be much nicer for TAs and instructors to give proper feedback. |
Beta Was this translation helpful? Give feedback.
-
Sorry, now I pushed my commit. |
Beta Was this translation helpful? Give feedback.
-
Please check function type which is used for an argument of declare_function. |
Beta Was this translation helpful? Give feedback.
-
TA @RiceBiscuits gives a very nice comment. Let me add more general comments for other students also. You guys may wonder why we have segmentation faults with a safe language, OCaml. LLVM infrastructure is written in C++ and we use an OCaml binding, which is a wrapper of the C++ code. So if you OCaml code incorrectly manipulate the underlying C++ code in a wrong way, you will get segmentation faults. In our homework, common cases may be breaking the correctness of the target C program such as type mismatch, wrong number of arguments, etc, that may cause incorrect object type casting, array index out of bound in C++. |
Beta Was this translation helpful? Give feedback.
-
@RiceBiscuits Thank you very much. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I got segmantatio fault when I try ./sanitizer example1.ll
While trying to insert dbz_sanitizer, what I did was following
I checked it by print function that build_call is the actual reason for the Segmentation fault.
I tried multiple variants of the above, but couldn't solve it. Can you give me any hints?
+) I also tried to run it in sudo
Beta Was this translation helpful? Give feedback.
All reactions