CLion(c ++)。得到“错误127”当试图调试时 [英] CLion (c++). Got "error 127" when tried to debug

查看:1455
本文介绍了CLion(c ++)。得到“错误127”当试图调试时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Debian Linux上,当我想调试时,在clion(c ++)中收到以下消息:

 在启动程序退出时代码127. 

处理完成退出代码0

谷歌搜索没有帮我。我该如何解决CLion中的问题? Debian Linux。(GDB 7.8)

我尝试设置gdb的手动方式,但它没有帮助...仍然127



这是我的日志文件

  {code} 
2016-04-29 08:35: 41,237 [299130]信息 - #com.jetbrains.cidr.cpp - 构建:/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 - 调试器开始
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 - <〜Copyri ght(C)2014 Free Software Foundation,Inc. \\\

2016-04-29 08:35:41,429 [299322] DEBUG - brains.cidr.execution.debugger - <〜许可证GPLv3 +:GNU GPL版本3或更高版本< gnuorg / licenses / l> \\\
这是免费软件:您可以自由更改和重新发布它。\在法律允许的范围内,不提供任何担保。输入\show copying\\\\
and \show warranty\查看详情。\\\

2016-04-29 08:35:41,429 [299322] DEBUG - brains.cidr。 execution.debugger - <〜对于配置细节,此GDB被配置为\x86_64-unknown-linux-gnu\.\\\
Type \show configuration\。
2016-04 -29 08:35:41,429 [299322] DEBUG - brains.cidr.execution.debugger - <〜\\\
有关错误报告的说明,请参阅:\\\

2016-04-29 08:35 :41,430 [299323] DEBUG - brains.cidr.execution.debugger - <〜< http://www.gnu.org/software/gdb/bugs/> .\\\

2016- 04-29 08:35:41,430 [299323] DEBUG - brains.cidr.execution.debugger - <〜在线查找GDB手册和其他文档资源:\\\
< / software / gdb / documentation /> ;. \\\

2016-04-29 08:35:41,430 [299323] DEBUG - brains.cidr.execution.debugger - <〜如需帮助,请输入\help \。\\\

2016-04-29 08:35:41,430 [299323]调试 - 大脑。 cidr.execution.debugger - <〜键入\apropos word \搜索与\word \。\\\
相关的命令
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 - 设置打印元素0
2016-04-29 08:35:41,431 [299324] DEBUG - brains.cidr.execution.debugger - < ^完成
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-设置打印重复0
2016-04-29 08:35:41,433 [299326] DEBUG - brains.cidr.execution.debugger - < ^完成
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_printer s')
sys.path.insert(1,'/usr/share/clion-2016.1.1/bin/gdb/share/gdb/stl_printers/libstdcxx/v6')$ lib
from libstdcxx.v6 .printers import register_libstdcxx_printers
end
2016-04-29 08:35:41,434 [299327] DEBUG - brains.cidr.execution.debugger - &python\\\

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 - 大脑。 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 = 保持,使能= Y,ADDR = 0x00000000004037ba FUNC = 主要(),FILE =/根/ ClionProjects / Program_全/ main.cpp中 全名= /根/ ClionProjects / Program_full / main.cpp中,行= 61,线程组= [ I1],倍= 0,原始位置=/ 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 = 主要(),FILE = /根/ ClionProjects / Program_full / main.cpp中,全名= /根/ ClionProjects / Program_full / main.cpp中,行= 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 - > - INFE rior-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 / 22> / 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 =在启动程序中用代码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 =在启动程序中退出代码127.
2016-04-29 08:35:41,790 [299683] DEBUG - brains.cidr.execution.debugger -
com.intellij.execution.ExecutionException:在启动过程中,代码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 $ 7。运行(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 $ 2 $ 1.run(QueueProcessor.java:110)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor .java:238)
at com.intellij.util.concurrency.QueueProcessor $ 2.consume(QueueProcessor.java:107)
at com.intellij.util.concurrency.QueueProcessor $ 2.consume(QueueProcessor.java :104)
at com.intellij.util.concurrency.QueueProcessor $ 3 $ 1.run(QueueProcessor.java:215)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238 )
at com.intellij.util.concurrency.QueueProcessor $ 3.run(QueueProcessor.java:212)
at com.intellij.openapi.application.impl.ApplicationImpl $ 8.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)
在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)$ b $在java.lang.Thread.run(Thread.java:745)
引起通过:com.jetbrains.cidr.execution.debugger.backend.gdb.GDBCommandException:在启动程序退出代码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 $ 7.run(GDBDriver.java:506 )
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver $ 39.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更多
2016-04-29 08:35:41,794 [299687] DEBUG - brains.cidr.execution.debugger - > -interpreter-exec控制台signal 6
2016-04 -29 08:35:41,795 [299688] DEBUG - brains.cidr.execution.debugger - <&程序没有运行。@ $
2016-04-29 08:35:41,796 [299689] DEBUG - brains.cidr.execution.debugger - < ^错误,msg =程序未运行。
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控制台signal 6
2016-04-29 08:35:41,797 [299690] WARN - brains.cidr.execution.debugger - < ^错误,msg =程序没有运行。
2016-04-29 08:35:41,806 [299699] INFO - brains.cidr.execution.debugger - 调试器退出,代码为0
2016-04-29 08:35:41,806 [299699] DEBUG - brains.cidr.execution.debugger - < [终止]
{code}


解决方案

所以,这里有一个解决方案:

shch root -s / bin / bash
(如果它给出错误在/etc/pam.d/chsh中使用身份验证 - (注释auth足够的pam_rootok.so)行,然后重试),最后重新启动!它帮助我

In clion (c++) on Debian Linux when I want to debug I get this message:

During startup program exited with code 127.

Process finished with exit code 0

Googling didn't help me. How can I fix that in CLion? Debian Linux.(GDB 7.8)

I tried to set a way to gdb manually but it didn't help… still 127

Here is my log file

{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$7.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$2$1.run(QueueProcessor.java:110)
    at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
    at com.intellij.util.concurrency.QueueProcessor$2.consume(QueueProcessor.java:107)
    at com.intellij.util.concurrency.QueueProcessor$2.consume(QueueProcessor.java:104)
    at com.intellij.util.concurrency.QueueProcessor$3$1.run(QueueProcessor.java:215)
    at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
    at com.intellij.util.concurrency.QueueProcessor$3.run(QueueProcessor.java:212)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.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$7.run(GDBDriver.java:506)
    at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver$39.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}

解决方案

So, here is a solution:

shch root -s /bin/bash (If it gives an error with authentication - (comment auth sufficient pam_rootok.so) line in /etc/pam.d/chsh and try again) and finally reboot! It helped me

这篇关于CLion(c ++)。得到“错误127”当试图调试时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆