Answer the question
In order to leave comments, you need to log in
Error reading by null pointer. Is it possible to skew?
Hello.
There is a Linux application written in C compiled with GCC. Extremely rarely, when once a week, when once a month, the application terminates with a null pointer read error (dmesg: error 4).
There is absolutely no desire to look for this error with valgrind. Because, firstly, it takes a long time, and secondly, as you know, under valgrind, the performance of programs decreases sharply. You can search for bugs until the second coming.
Question. Is there any way to allow reading by null pointer? For example, using compilation flags or something else?
Can dmesg messages be made more informative? To at least get the name of the function in which the error occurs? So far I have this description:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question