debug stuck with segfault 关注
I'm using clion:
CLion 2020.2
Build #CL-202.6397.106, built on July 28, 2020
Subscription is active until September 26, 2020
Runtime version: 11.0.7+10-b944.20 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-42-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1987M
Cores: 8
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: com.corochann.plugin.clion.singlefileexecutionplugin
Current Desktop: ubuntu:GNOME
I've been trying to debug a C program I've written.
when I Run, process finish successfully.
When I use memcheck with valgrind no leak or illegal writes are detected.
But when I debug, the debugger is stuck at random line of reading from a file and putting in a int. The reason is, I assume, is that I've written an expression with overflowing index of an array. I expect that intellij will alert me, and not that the debugger will segfault at a random line.
请先登录再写评论。
Hello!
Please provide a project with which the issue can be reproduced to clion-support at jetbrains.com.
Also enable debugger logging as described here, reproduce the issue and send the resulting idea.log file (`Help | Show Log in ...`) too. Do not forget to disable debug logging after that. Note that logs might contain private user's information (like file paths and names).
How can I send this code privately?
You can send it by email to clion-support at jetbrains.com. Or you can create a private issue (with visibility to CLion team) in our tracker https://youtrack.jetbrains.com/issues/CPP, here is the instruction - https://www.jetbrains.com/help/youtrack/standalone/Set-Visibility-of-Issue-or-Comment.html#set-visibility-new-procedure. In both cases the materials will be available for our team.