克里昂 (c++)。尝试调试时得到 "error 127"
CLion (c++). Got "error 127" when tried to debug
在 Debian 上的 clion (c++) Linux 中,当我想要调试时,我收到此消息:
During startup program exited with code 127.
Process finished with exit code 0
谷歌搜索没有帮助我。我怎样才能在 CLion 中解决这个问题? Debian Linux.(GDB 7.8)
我试图手动设置 gdb 的方式,但没有帮助……仍然是 127
这是我的日志文件
{code}
2016-04-29 08:35:41,237 [ 299130] INFO - #com.jetbrains.cidr.cpp - Building: /usr/share/clion-2016.1.1/bin/cmake/bin/cmake --build /root/.CLion2016.1/system/cmake/generated/Program_full-95f08d2c/95f08d2c/Debug --target all -- -j 8
2016-04-29 08:35:41,377 [ 299270] INFO - brains.cidr.execution.debugger - Debugger started
2016-04-29 08:35:41,428 [ 299321] DEBUG - brains.cidr.execution.debugger - </usr/share/clion-2016.1.1/bin/gdb/bin/gdb -interpreter=mi
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <=thread-group-added,id="i1"
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"GNU gdb (GDB) 7.8\n"
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"Copyright (C) 2014 Free Software Foundation, Inc.\n"
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"License GPLv3+: GNU GPL version 3 or later <gnuorg/licenses/l>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"This GDB was configured as \"x86_64-unknown-linux-gnu\".\nType \"show configuration\" for configuration details."
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"\nFor bug reporting instructions, please see:\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <~"<http://www.gnu.org/software/gdb/bugs/>.\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <~"Find the GDB manual and other documentation resources online at:\n</software/gdb/documentation/>.\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <~"For help, type \"help\".\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <~"Type \"apropos word\" to search for commands related to \"word\".\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - >-gdb-set print elements 0
2016-04-29 08:35:41,431 [ 299324] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,432 [ 299325] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,432 [ 299325] DEBUG - brains.cidr.execution.debugger - >-gdb-set print repeats 0
2016-04-29 08:35:41,433 [ 299326] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,433 [ 299326] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,433 [ 299326] DEBUG - brains.cidr.execution.debugger - >python
import sys
sys.path.insert(0, '/usr/share/clion-2016.1.1/bin/gdb/share/gdb/stl_printers')
sys.path.insert(1, '/usr/share/clion-2016.1.1/bin/gdb/share/gdb/stl_printers/libstdcxx/v6')
from libstdcxx.v6.printers import register_libstdcxx_printers
end
2016-04-29 08:35:41,434 [ 299327] DEBUG - brains.cidr.execution.debugger - <&"python\n"
2016-04-29 08:35:41,434 [ 299327] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,435 [ 299328] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,435 [ 299328] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,435 [ 299328] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,435 [ 299328] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,456 [ 299349] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,457 [ 299350] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,457 [ 299350] DEBUG - brains.cidr.execution.debugger - >-enable-pretty-printing
2016-04-29 08:35:41,458 [ 299351] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,458 [ 299351] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,458 [ 299351] DEBUG - brains.cidr.execution.debugger - >-file-exec-and-symbols "/root/.CLion2016.1/system/cmake/generated/Program_full-95f08d2c/95f08d2c/Debug/Program_full"
2016-04-29 08:35:41,606 [ 299499] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,607 [ 299500] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,607 [ 299500] DEBUG - brains.cidr.execution.debugger - >-break-insert -f "/root/ClionProjects/Program_full/main.cpp:61"
2016-04-29 08:35:41,608 [ 299501] DEBUG - brains.cidr.execution.debugger - <^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004037ba",func="main()",file="/root/ClionProjects/Program_full/main.cpp",fullname="/root/ClionProjects/Program_full/main.cpp",line="61",thread-groups=["i1"],times="0",original-location="/root/ClionProjects/Program_full/main.cpp:61"}
2016-04-29 08:35:41,609 [ 299502] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,609 [ 299502] DEBUG - brains.cidr.execution.debugger - >-break-insert -f "/root/ClionProjects/Program_full/main.cpp:65"
2016-04-29 08:35:41,610 [ 299503] DEBUG - brains.cidr.execution.debugger - <^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004037c2",func="main()",file="/root/ClionProjects/Program_full/main.cpp",fullname="/root/ClionProjects/Program_full/main.cpp",line="65",thread-groups=["i1"],times="0",original-location="/root/ClionProjects/Program_full/main.cpp:65"}
2016-04-29 08:35:41,611 [ 299504] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,613 [ 299506] DEBUG - brains.cidr.execution.debugger - >-inferior-tty-set /dev/pts/1
2016-04-29 08:35:41,617 [ 299510] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,618 [ 299511] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,620 [ 299513] DEBUG - brains.cidr.execution.debugger - >-exec-arguments 1> "/dev/pts/2" 2> "/dev/pts/3"
2016-04-29 08:35:41,624 [ 299517] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,644 [ 299537] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,664 [ 299557] DEBUG - brains.cidr.execution.debugger - >-exec-run
2016-04-29 08:35:41,666 [ 299559] DEBUG - brains.cidr.execution.debugger - <=thread-group-started,id="i1",pid="5773"
2016-04-29 08:35:41,686 [ 299579] DEBUG - brains.cidr.execution.debugger - <=thread-created,id="1",group-id="i1"
2016-04-29 08:35:41,707 [ 299600] DEBUG - brains.cidr.execution.debugger - <=thread-exited,id="1",group-id="i1"
2016-04-29 08:35:41,727 [ 299620] DEBUG - brains.cidr.execution.debugger - <=thread-group-exited,id="i1"
2016-04-29 08:35:41,748 [ 299641] DEBUG - brains.cidr.execution.debugger - <^error,msg="During startup program exited with code 127."
2016-04-29 08:35:41,769 [ 299662] WARN - brains.cidr.execution.debugger - >-exec-run
2016-04-29 08:35:41,769 [ 299662] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,769 [ 299662] WARN - brains.cidr.execution.debugger - <^error,msg="During startup program exited with code 127."
2016-04-29 08:35:41,790 [ 299683] DEBUG - brains.cidr.execution.debugger -
com.intellij.execution.ExecutionException: During startup program exited with code 127.
at com.jetbrains.cidr.execution.ExecutionResult.get(ExecutionResult.java:51)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.executeCommand(GDBDriver.java:2438)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.executeCommand(GDBDriver.java:2432)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.launch(GDBDriver.java:433)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.doLaunchTarget(CidrDebugProcess.java:453)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.run(CidrDebugProcess.java:443)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:719)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:709)
at com.intellij.util.concurrency.QueueProcessor.run(QueueProcessor.java:110)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.concurrency.QueueProcessor.consume(QueueProcessor.java:107)
at com.intellij.util.concurrency.QueueProcessor.consume(QueueProcessor.java:104)
at com.intellij.util.concurrency.QueueProcessor.run(QueueProcessor.java:215)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.concurrency.QueueProcessor.run(QueueProcessor.java:212)
at com.intellij.openapi.application.impl.ApplicationImpl.run(ApplicationImpl.java:369)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.jetbrains.cidr.execution.debugger.backend.gdb.GDBCommandException: During startup program exited with code 127.
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.b(GDBDriver.java:2111)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.a(GDBDriver.java:2103)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.sendRequestAndWait(GDBDriver.java:2024)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.sendRequestAndWait(GDBDriver.java:2016)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.doLaunch(GDBDriver.java:519)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.run(GDBDriver.java:506)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.run(GDBDriver.java:2466)
at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(QueueProcessor.java:298)
at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(QueueProcessor.java:295)
... 13 more
2016-04-29 08:35:41,794 [ 299687] DEBUG - brains.cidr.execution.debugger - >-interpreter-exec console "signal 6"
2016-04-29 08:35:41,795 [ 299688] DEBUG - brains.cidr.execution.debugger - <&"The program is not being run.\n"
2016-04-29 08:35:41,796 [ 299689] DEBUG - brains.cidr.execution.debugger - <^error,msg="The program is not being run."
2016-04-29 08:35:41,796 [ 299689] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,797 [ 299690] WARN - brains.cidr.execution.debugger - >-interpreter-exec console "signal 6"
2016-04-29 08:35:41,797 [ 299690] WARN - brains.cidr.execution.debugger - <^error,msg="The program is not being run."
2016-04-29 08:35:41,806 [ 299699] INFO - brains.cidr.execution.debugger - Debugger exited with code 0
2016-04-29 08:35:41,806 [ 299699] DEBUG - brains.cidr.execution.debugger - <[terminated]
{code}
我有同样的问题。
CLion 有时没有告诉我缺少某些共享库。
我必须将环境变量 LD_LIBRARY_PATH 添加到我想要的配置中 运行。
希望对您有所帮助
所以,这是一个解决方案:
shch root -s /bin/bash
(如果它在身份验证时出现错误 - /etc/pam.d/chsh 中的 (comment auth sufficient pam_rootok.so) 行并重试),最后重新启动!它帮助了我
另一个可能的答案是 valgrind 的路径是错误的。
在首选项 > 构建、执行... > Valgrind 中。仔细检查 Valgrind 可执行文件实际上指向可执行文件而不仅仅是方向。
我在 OSX 上的默认设置是指向导致错误的方向。
在 Debian 上的 clion (c++) Linux 中,当我想要调试时,我收到此消息:
During startup program exited with code 127.
Process finished with exit code 0
谷歌搜索没有帮助我。我怎样才能在 CLion 中解决这个问题? Debian Linux.(GDB 7.8)
我试图手动设置 gdb 的方式,但没有帮助……仍然是 127
这是我的日志文件
{code}
2016-04-29 08:35:41,237 [ 299130] INFO - #com.jetbrains.cidr.cpp - Building: /usr/share/clion-2016.1.1/bin/cmake/bin/cmake --build /root/.CLion2016.1/system/cmake/generated/Program_full-95f08d2c/95f08d2c/Debug --target all -- -j 8
2016-04-29 08:35:41,377 [ 299270] INFO - brains.cidr.execution.debugger - Debugger started
2016-04-29 08:35:41,428 [ 299321] DEBUG - brains.cidr.execution.debugger - </usr/share/clion-2016.1.1/bin/gdb/bin/gdb -interpreter=mi
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <=thread-group-added,id="i1"
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"GNU gdb (GDB) 7.8\n"
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"Copyright (C) 2014 Free Software Foundation, Inc.\n"
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"License GPLv3+: GNU GPL version 3 or later <gnuorg/licenses/l>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"This GDB was configured as \"x86_64-unknown-linux-gnu\".\nType \"show configuration\" for configuration details."
2016-04-29 08:35:41,429 [ 299322] DEBUG - brains.cidr.execution.debugger - <~"\nFor bug reporting instructions, please see:\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <~"<http://www.gnu.org/software/gdb/bugs/>.\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <~"Find the GDB manual and other documentation resources online at:\n</software/gdb/documentation/>.\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <~"For help, type \"help\".\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <~"Type \"apropos word\" to search for commands related to \"word\".\n"
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,430 [ 299323] DEBUG - brains.cidr.execution.debugger - >-gdb-set print elements 0
2016-04-29 08:35:41,431 [ 299324] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,432 [ 299325] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,432 [ 299325] DEBUG - brains.cidr.execution.debugger - >-gdb-set print repeats 0
2016-04-29 08:35:41,433 [ 299326] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,433 [ 299326] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,433 [ 299326] DEBUG - brains.cidr.execution.debugger - >python
import sys
sys.path.insert(0, '/usr/share/clion-2016.1.1/bin/gdb/share/gdb/stl_printers')
sys.path.insert(1, '/usr/share/clion-2016.1.1/bin/gdb/share/gdb/stl_printers/libstdcxx/v6')
from libstdcxx.v6.printers import register_libstdcxx_printers
end
2016-04-29 08:35:41,434 [ 299327] DEBUG - brains.cidr.execution.debugger - <&"python\n"
2016-04-29 08:35:41,434 [ 299327] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,435 [ 299328] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,435 [ 299328] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,435 [ 299328] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,435 [ 299328] DEBUG - brains.cidr.execution.debugger - <~">"
2016-04-29 08:35:41,456 [ 299349] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,457 [ 299350] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,457 [ 299350] DEBUG - brains.cidr.execution.debugger - >-enable-pretty-printing
2016-04-29 08:35:41,458 [ 299351] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,458 [ 299351] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,458 [ 299351] DEBUG - brains.cidr.execution.debugger - >-file-exec-and-symbols "/root/.CLion2016.1/system/cmake/generated/Program_full-95f08d2c/95f08d2c/Debug/Program_full"
2016-04-29 08:35:41,606 [ 299499] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,607 [ 299500] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,607 [ 299500] DEBUG - brains.cidr.execution.debugger - >-break-insert -f "/root/ClionProjects/Program_full/main.cpp:61"
2016-04-29 08:35:41,608 [ 299501] DEBUG - brains.cidr.execution.debugger - <^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004037ba",func="main()",file="/root/ClionProjects/Program_full/main.cpp",fullname="/root/ClionProjects/Program_full/main.cpp",line="61",thread-groups=["i1"],times="0",original-location="/root/ClionProjects/Program_full/main.cpp:61"}
2016-04-29 08:35:41,609 [ 299502] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,609 [ 299502] DEBUG - brains.cidr.execution.debugger - >-break-insert -f "/root/ClionProjects/Program_full/main.cpp:65"
2016-04-29 08:35:41,610 [ 299503] DEBUG - brains.cidr.execution.debugger - <^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004037c2",func="main()",file="/root/ClionProjects/Program_full/main.cpp",fullname="/root/ClionProjects/Program_full/main.cpp",line="65",thread-groups=["i1"],times="0",original-location="/root/ClionProjects/Program_full/main.cpp:65"}
2016-04-29 08:35:41,611 [ 299504] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,613 [ 299506] DEBUG - brains.cidr.execution.debugger - >-inferior-tty-set /dev/pts/1
2016-04-29 08:35:41,617 [ 299510] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,618 [ 299511] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,620 [ 299513] DEBUG - brains.cidr.execution.debugger - >-exec-arguments 1> "/dev/pts/2" 2> "/dev/pts/3"
2016-04-29 08:35:41,624 [ 299517] DEBUG - brains.cidr.execution.debugger - <^done
2016-04-29 08:35:41,644 [ 299537] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,664 [ 299557] DEBUG - brains.cidr.execution.debugger - >-exec-run
2016-04-29 08:35:41,666 [ 299559] DEBUG - brains.cidr.execution.debugger - <=thread-group-started,id="i1",pid="5773"
2016-04-29 08:35:41,686 [ 299579] DEBUG - brains.cidr.execution.debugger - <=thread-created,id="1",group-id="i1"
2016-04-29 08:35:41,707 [ 299600] DEBUG - brains.cidr.execution.debugger - <=thread-exited,id="1",group-id="i1"
2016-04-29 08:35:41,727 [ 299620] DEBUG - brains.cidr.execution.debugger - <=thread-group-exited,id="i1"
2016-04-29 08:35:41,748 [ 299641] DEBUG - brains.cidr.execution.debugger - <^error,msg="During startup program exited with code 127."
2016-04-29 08:35:41,769 [ 299662] WARN - brains.cidr.execution.debugger - >-exec-run
2016-04-29 08:35:41,769 [ 299662] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,769 [ 299662] WARN - brains.cidr.execution.debugger - <^error,msg="During startup program exited with code 127."
2016-04-29 08:35:41,790 [ 299683] DEBUG - brains.cidr.execution.debugger -
com.intellij.execution.ExecutionException: During startup program exited with code 127.
at com.jetbrains.cidr.execution.ExecutionResult.get(ExecutionResult.java:51)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.executeCommand(GDBDriver.java:2438)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.executeCommand(GDBDriver.java:2432)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.launch(GDBDriver.java:433)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.doLaunchTarget(CidrDebugProcess.java:453)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.run(CidrDebugProcess.java:443)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:719)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:709)
at com.intellij.util.concurrency.QueueProcessor.run(QueueProcessor.java:110)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.concurrency.QueueProcessor.consume(QueueProcessor.java:107)
at com.intellij.util.concurrency.QueueProcessor.consume(QueueProcessor.java:104)
at com.intellij.util.concurrency.QueueProcessor.run(QueueProcessor.java:215)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.concurrency.QueueProcessor.run(QueueProcessor.java:212)
at com.intellij.openapi.application.impl.ApplicationImpl.run(ApplicationImpl.java:369)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.jetbrains.cidr.execution.debugger.backend.gdb.GDBCommandException: During startup program exited with code 127.
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.b(GDBDriver.java:2111)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.a(GDBDriver.java:2103)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.sendRequestAndWait(GDBDriver.java:2024)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.sendRequestAndWait(GDBDriver.java:2016)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.doLaunch(GDBDriver.java:519)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.run(GDBDriver.java:506)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.run(GDBDriver.java:2466)
at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(QueueProcessor.java:298)
at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(QueueProcessor.java:295)
... 13 more
2016-04-29 08:35:41,794 [ 299687] DEBUG - brains.cidr.execution.debugger - >-interpreter-exec console "signal 6"
2016-04-29 08:35:41,795 [ 299688] DEBUG - brains.cidr.execution.debugger - <&"The program is not being run.\n"
2016-04-29 08:35:41,796 [ 299689] DEBUG - brains.cidr.execution.debugger - <^error,msg="The program is not being run."
2016-04-29 08:35:41,796 [ 299689] DEBUG - brains.cidr.execution.debugger - <(gdb)
2016-04-29 08:35:41,797 [ 299690] WARN - brains.cidr.execution.debugger - >-interpreter-exec console "signal 6"
2016-04-29 08:35:41,797 [ 299690] WARN - brains.cidr.execution.debugger - <^error,msg="The program is not being run."
2016-04-29 08:35:41,806 [ 299699] INFO - brains.cidr.execution.debugger - Debugger exited with code 0
2016-04-29 08:35:41,806 [ 299699] DEBUG - brains.cidr.execution.debugger - <[terminated]
{code}
我有同样的问题。 CLion 有时没有告诉我缺少某些共享库。
我必须将环境变量 LD_LIBRARY_PATH 添加到我想要的配置中 运行。
希望对您有所帮助
所以,这是一个解决方案:
shch root -s /bin/bash (如果它在身份验证时出现错误 - /etc/pam.d/chsh 中的 (comment auth sufficient pam_rootok.so) 行并重试),最后重新启动!它帮助了我
另一个可能的答案是 valgrind 的路径是错误的。
在首选项 > 构建、执行... > Valgrind 中。仔细检查 Valgrind 可执行文件实际上指向可执行文件而不仅仅是方向。
我在 OSX 上的默认设置是指向导致错误的方向。