Bug Type: Debugger
- OS: Windows 10
- VS Code Version: 1.57.0
- C/C++ Extension Version: 1.5.0-Insiders
- GDB Version: 10.2 (via MSYS2)
- GCC Version 10.2.0 (via MSYS2)
The Problem
When I try to debug an executable, the debug console has the following error
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". Error creating process /usr/bin/C:\Checked_Out\PIC_Drivers\LIN_Master_Slave/C:Checked_OutPIC_DriversLIN_Master_Slave/test_ceedling/build/test/out/foo.out, (error 2).
Note that the path listed is a concatenation of paths (Msys2 GDB path, workspaceFolder, and the actual path to the executable).
The break point (set on print line in foo.c) is ignored.
To Reproduce
launch.json
"configurations": [
{
"name": "Debug Test",
"type": "cppdbg",
"request": "launch",
//"preLaunchTask": "Ceedling test",
"program": "${workspaceFolder}/test_ceedling/build/test/out/${fileBasenameNoExtension}.out",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"logging": {
"engineLogging": true
},
"MIMode": "gdb",
"miDebuggerPath": "C:/msys64/usr/bin/gdb.exe",
// "sourceFileMap": {
// "\c":"C:\"
// },
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
C:Checked_OutPIC_DriversLIN_Master_Slavetest_ceedlingtestdrivers_linfoo.c
Compiled via gcc -g -o .test_ceedlingbuildtestoutfoo.out .test_ceedlingtestdrivers_linfoo.c
int main(){
printf("Howdyn");
return 1;
}
Command Printed on Terminal window when starting debug
& 'c:UsersXXXXX.vscodeextensionsms-vscode.cpptools-1.5.0-insidersdebugAdaptersbinWindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-mjmxer35.qfv' '--stdout=Microsoft-MIEngine-Out-rwzy3jm4.ibe' '--stderr=Microsoft-MIEngine-Error-5sf3fcqh.013' '--pid=Microsoft-MIEngine-Pid-psyrrdnu.5fu' '--dbgExe=C:/msys64/usr/bin/gdb.exe' '--interpreter=mi'
Debug Console Output
1: (255) Wait for connection completion.
1: (694) ->=thread-group-added,id="i1"
1: (696) ->~"GNU gdb (GDB) 10.2n"
1: (696) ->~"Copyright (C) 2021 Free Software Foundation, Inc.n"
1: (696) ->~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>nThis is free software: you are free to change and redistribute it.nThere is NO WARRANTY, to the extent permitted by law."
1: (696) ->~"nType "show copying" and "show warranty" for details.n"
1: (696) ->~"This GDB was configured as "x86_64-pc-msys".n"
1: (697) ->~"Type "show configuration" for configuration details.n"
1: (697) ->~"For bug reporting instructions, please see:n"
1: (697) ->~"<https://www.gnu.org/software/gdb/bugs/>.n"
1: (698) ->~"Find the GDB manual and other documentation resources online at:n <http://www.gnu.org/software/gdb/documentation/>."
1: (698) ->~"nn"
1: (698) ->~"For help, type "help".n"
1: (698) ->~"Type "apropos word" to search for commands related to "word".n"
1: (710) ->(gdb)
1: (714) <-1001-gdb-set target-async on
1: (716) ->1001^done
1: (716) ->(gdb)
1: (716) ->&"n"
1: (716) ->^done
1: (716) ->(gdb)
1: (718) 1001: elapsed time 4
1: (731) <-1002-enable-pretty-printing
1: (734) ->1002^done
1: (734) ->(gdb)
1: (734) 1002: elapsed time 3
1: (735) ->&"n"
1: (735) ->^done
1: (735) ->(gdb)
1: (735) <-1003-interpreter-exec console "set pagination off"
1: (736) ->=cmd-param-changed,param="pagination",value="off"
1: (736) ->1003^done
1: (736) 1003: elapsed time 0
1: (736) <-1004-gdb-set auto-solib-add on
1: (736) ->(gdb)
1: (736) ->&"n"
1: (736) ->^done
1: (737) ->(gdb)
1: (738) ->1004^done
1: (738) 1004: elapsed time 1
1: (738) ->(gdb)
1: (738) ->&"n"
1: (738) ->^done
1: (738) ->(gdb)
1: (738) <-1005-gdb-set solib-search-path C:\Checked_Out\PIC_Drivers\LIN_Master_Slave/test_ceedling/build/test/out;
1: (740) ->1005^done
1: (740) 1005: elapsed time 2
1: (740) ->(gdb)
1: (740) <-1006-environment-cd C:\Checked_Out\PIC_Drivers\LIN_Master_Slave
1: (740) ->&"n"
1: (740) ->^done
1: (741) ->(gdb)
1: (742) ->1006^done
1: (742) 1006: elapsed time 1
1: (742) ->(gdb)
1: (743) ->&"n"
1: (743) ->^done
1: (743) ->(gdb)
1: (747) <-1007-interpreter-exec console "show configuration"
1: (748) ->~"This GDB was configured as follows:n configure --host="
1: (748) ->~"x86_64-pc-msys --target=x86_64-pc-msysn"
1: (748) ->~" --with-auto-load-dir=$debugdir:$datadir/auto-loadn --with-auto-load-safe-path="
1: (748) ->~"$debugdir:$datadir/auto-loadn"
1: (748) ->~" --with-expatn"
1: (749) ->~" --with-gdb-datadir=/usr/share/gdb (relocatable)n"
1: (749) ->~" --with-jit-reader-dir=/usr/lib/gdb (relocatable)n"
1: (749) ->~" --without-libunwind-ia64n"
1: (749) ->~" --with-lzman"
1: (749) ->~" --without-babeltracen"
1: (749) ->~" --without-intel-ptn"
1: (749) ->~" --with-mpfrn"
1: (749) ->~" --without-xxhashn"
1: (749) ->~" --with-python=/usr (relocatable)n"
1: (749) ->~" --with-python-libdir=/usr/lib (relocatable)n"
1: (750) ->~" --without-debuginfodn"
1: (750) ->~" --without-guilen"
1: (750) ->~" --disable-source-highlightn"
1: (750) ->~" --with-separate-debug-dir=/usr/lib/debug (relocatable)n"
1: (750) ->~" --with-system-gdbinit=/etc/gdbinitn"
1: (750) ->~"n("Relocatable" means the directory can be moved with the GDB installationntree, and GDB will still find it.)n"
1: (750) ->1007^done
1: (750) ->(gdb)
1: (750) 1007: elapsed time 3
1: (751) ->&"n"
1: (751) ->^done
1: (751) ->(gdb)
1: (752) <-1008-file-exec-and-symbols C:\Checked_Out\PIC_Drivers\LIN_Master_Slave/test_ceedling/build/test/out/foo.out
1: (770) ->1008^done
1: (770) ->(gdb)
1: (770) 1008: elapsed time 17
1: (770) ->&"n"
1: (770) <-1009-interpreter-exec console "show architecture"
1: (770) ->^done
1: (770) ->(gdb)
1: (773) ->~"The target architecture is set to "auto" (currently "i386:x86-64").n"
1: (773) ->1009^done
1: (773) 1009: elapsed time 2
1: (773) ->(gdb)
1: (773) ->&"n"
1: (773) ->^done
1: (773) ->(gdb)
1: (774) <-1010-exec-arguments 2>CON 1>CON <CON
1: (777) ->1010^done
1: (777) 1010: elapsed time 2
1: (777) <-1011-break-insert -f main
1: (777) ->(gdb)
1: (777) ->&"n"
1: (777) ->^done
1: (777) ->(gdb)
1: (783) ->1011^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100401088",func="main",file=".\test_ceedling\test\drivers_lin\foo.c",fullname="/c/Checked_Out/PIC_Drivers/LIN_Master_Slave/test_ceedling/test/drivers_lin/foo.c",line="2",thread-groups=["i1"],times="0",original-location="main"}
1: (783) ->(gdb)
1: (783) ->&"n"
1: (783) ->^done
1: (784) ->(gdb)
1: (791) 1011: elapsed time 14
1: (801) Send Event AD7EngineCreateEvent
1: (805) Send Event AD7ProgramCreateEvent
1: (838) ShellPid=3104
1: (870) DebuggerPid=67832
1: (913) <-1012-break-insert -f foo.c:3
1: (921) ->&"No source file named foo.c.n"
1: (921) ->1012^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="foo.c:3",times="0",original-location="foo.c:3"}
1: (921) 1012: elapsed time 7
1: (921) ->(gdb)
1: (921) ->&"n"
1: (921) ->^done
1: (921) ->(gdb)
1: (931) Send Event AD7BreakpointErrorEvent
1: (978) Send Event AD7LoadCompleteEvent
=thread-group-added,id="i1"
GNU gdb (GDB) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-msys".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
1: (985) <-1013-exec-run
1: (990) ->1013^error,msg="Error creating process /usr/bin/C:\\Checked_Out\\PIC_Drivers\\LIN_Master_Slave/C:\Checked_Out\PIC_Drivers\LIN_Master_Slave/test_ceedling/build/test/out/foo.out, (error 2)."
1: (990) 1013: elapsed time 5
1: (990) ->(gdb)
1: (990) ->&"n"
1: (990) ->^done
1: (990) ->(gdb)
1: (993) Send Event AD7MessageEvent
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". Error creating process /usr/bin/C:\Checked_Out\PIC_Drivers\LIN_Master_Slave/C:Checked_OutPIC_DriversLIN_Master_Slave/test_ceedling/build/test/out/foo.out, (error 2).
1: (1005) <--gdb-exit
1: (1006) ->^exit
1: (1015) Send Event AD7ProgramDestroyEvent
The program 'C:Checked_OutPIC_DriversLIN_Master_Slavetest_ceedlingbuildtestoutfoo.out' has exited with code 42 (0x0000002a).
1: (1021) Shell exited, stop debugging
#1
Slove
-
- Пользователь
-
- 26 сообщений
Новичок
Отправлено 03 Март 2018 — 12:30
Срочно требуется помощь!
./srcds_run: line 348: 7750 Segmentation fault $HL_CMD
./srcds_run: line 348: 23909 Segmentation fault $HL_CMD
Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem
Сервер начал постоянно падать и в конце каждого crash.log данная ошибка.
Как я понял у меня нет доступа к запускному файлу.
- Наверх
#2
Phatal92
Отправлено 03 Март 2018 — 12:56
Срочно требуется помощь!
./srcds_run: line 348: 7750 Segmentation fault $HL_CMD
./srcds_run: line 348: 23909 Segmentation fault $HL_CMDAdd «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem
Сервер начал постоянно падать и в конце каждого crash.log данная ошибка.
Как я понял у меня нет доступа к запускному файлу.
Кинь список плагинов
Сейчас посмотрел краш-лог, у меня ночью тоже был краш.
./srcds_run: line 360: 16285 Bus error $HL_CMD
Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem
Сообщение отредактировал Phatal92: 03 Март 2018 — 13:03
- Наверх
#3
djded
djded
-
- Пользователь
-
- 13 сообщений
Новичок
Отправлено 23 Октябрь 2018 — 21:15
У меня тоже такие краши, причём каждый день
./srcds_run: line 348: 5039 Segmentation fault $HL_CMD
Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem
Проблема хостинга что ли???
Сообщение отредактировал djded: 23 Октябрь 2018 — 21:14
- Наверх
#4
miracle
Отправлено 23 Октябрь 2018 — 21:30
У меня тоже такие краши, причём каждый день
./srcds_run: line 348: 5039 Segmentation fault $HL_CMD
Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem
Проблема хостинга что ли???
нет
- Наверх
#5
djded
djded
-
- Пользователь
-
- 13 сообщений
Новичок
Отправлено 24 Октябрь 2018 — 9:14
нет
А в чем же может быть проблема?
- Наверх
#6
Nekro
Отправлено 24 Октябрь 2018 — 9:38
А в чем же может быть проблема?
Выше же писали. Напишите в сполер и код список плагинов, расширений. Удалите все логи и дождитесь краша, так же скиньте логи ошибок.
- Наверх
#7
djded
djded
-
- Пользователь
-
- 13 сообщений
Новичок
Отправлено 24 Октябрь 2018 — 11:15
Плагинс лист
Расширения
Listing 6 plugins:
[01] SourceMod (1.9.0.6251) by AlliedModders LLC
[02] ProcessCmds (1.0.8) by GoDtm666 (www.MyArena.ru)
[03] SDK Tools (1.9.0.6251) by AlliedModders LLC
[04] CS Tools (1.9.0.6251) by AlliedModders LLC
[05] SDK Hooks (1.9.0.6251) by AlliedModders LLC
[06] SteamWorks Extension (1.2.2) by Kyle Sanderson
Ошибок в логах нету(они даже не пишутся) но 100% пишутся когда ошибки есть.
Лог краша без ошибок тоже, только последняя строка вот что пишет
./srcds_run: line 348: 5039 Segmentation fault $HL_CMD
Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem
- Наверх
#8
Nekro
Отправлено 24 Октябрь 2018 — 14:17
Плагинс лист
Расширения
Listing 6 plugins:
[01] SourceMod (1.9.0.6251) by AlliedModders LLC
[02] ProcessCmds (1.0.8) by GoDtm666 (www.MyArena.ru)
[03] SDK Tools (1.9.0.6251) by AlliedModders LLC
[04] CS Tools (1.9.0.6251) by AlliedModders LLC
[05] SDK Hooks (1.9.0.6251) by AlliedModders LLC
[06] SteamWorks Extension (1.2.2) by Kyle Sanderson
Ошибок в логах нету(они даже не пишутся) но 100% пишутся когда ошибки есть.
Лог краша без ошибок тоже, только последняя строка вот что пишет
./srcds_run: line 348: 5039 Segmentation fault $HL_CMD
Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem
Список плагинов которые по моему мнению можно убрать на время теста отпишу как буду с компа.
Сообщение отредактировал Nekro: 24 Октябрь 2018 — 14:18
- Наверх
#9
JustFanku
Отправлено 04 Ноябрь 2018 — 1:42
——- LAST 200 LINES FROM screen.log—————————————
===============================
START SERVER
Tue Jun 19 04:23:10 MSK 2018
===============================
Auto detecting CPU
Using default binary: ./srcds_linux
Using Breakpad minidump system. Version: 4014252 AppID: 232330
Setting breakpad minidump AppID = 232330
Using breakpad crash handler
server_srv.so loaded for «Counter-Strike: Source»
maxplayers set to 26
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: Permission denied
Modifying bin/steamclient_valve.so
Looking up breakpad interfaces from steamclient
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: Permission denied
Looking up breakpad interfaces from steamclient
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: Permission denied
Looking up breakpad interfaces from steamclient
Unknown command «r_decal_cullsize»
Unknown command «sm_hostages_god»
Unknown command «sm_hostages_health»
Unknown command «sm_hostages_showhealth»
Unknown command «sm_hostages_health_version»
‘sourcemod/playersvotes.cfg’ not present; not executing.
‘sourcemod/adminsentinel.cfg’ not present; not executing.
ConVarRef dev_loadtime_map_start doesn’t point to an existing ConVar
———————————————————
sv_pure value unchanged (current value is 0).
———————————————————
WARNING: Port 27005 was unavailable — bound to port 27010 instead
Network: IP 46.174.52.28, mode MP, dedicated Yes, ports 27278 SV / 27010 CL
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Could not find steamerrorreporter binary. Any minidumps will be uploaded in-process/home/buildbot/buildslave/steam_rel_client_linux/build/src/clientdll/applicationmanager.cpp (3126) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
Assert( Assertion Failed: CApplicationManager::GetMountVolume: invalid index ):/home/buildbot/buildslave/steam_rel_client_linux/build/src/clientdll/applicationmanager.cpp:3126
Uploading dump (in-process) [proxy »]
/tmp/dumps/crash_20180619042314_4.dmp
success = yes
response: Discarded=1
/home/buildbot/buildslave/steam_rel_client_linux/build/src/clientdll/applicationmanager.cpp (3126) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
/home/buildbot/buildslave/steam_rel_client_linux/build/src/clientdll/applicationmanager.cpp (3277) : Assertion Failed: m_vecInstallBaseFolders.Count() > 0
./srcds_run: line 348: 30934 Segmentation fault $HL_CMD
Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem
сервер не запускает что такое?
- Наверх
#10
___brain___
___brain___
-
- Пользователь
-
- 48 сообщений
Новичок
Отправлено 28 Апрель 2022 — 21:28
Срочно требуется помощь!
./srcds_run: line 348: 7750 Segmentation fault $HL_CMD
./srcds_run: line 348: 23909 Segmentation fault $HL_CMDAdd «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem
Сервер начал постоянно падать и в конце каждого crash.log данная ошибка.
Как я понял у меня нет доступа к запускному файлу.
Удали последние коды в stripper которые делал
- Наверх
#11
Kakoin
Отправлено 28 Апрель 2022 — 21:33
Удали последние коды в stripper которые делал
Для чего нужно поднимать старые темы? Это сообщение ему уже никак не может.
- Наверх
-
krizziss
- Нович0к
- Сообщения: 14
- Зарегистрирован: 21.01.2014
- Благодарил (а): 1 раз
- Поблагодарили: 3 раза
#1
Сообщение
06.02.2014, 22:33
./srcds_run: 362: ./srcds_run: ./srcds_i686: not found
Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem как избавиться? я просто скачал готовый сервер и залил на хост, через прогу дал доступ к фалом и запусти. вот что выдает
-
__A
- Капитан
- Сообщения: 392
- Зарегистрирован: 03.02.2009
- Благодарил (а): 38 раз
- Поблагодарили: 113 раз
#2
Сообщение
07.02.2014, 09:25
krizziss писал(а):Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem как избавиться?
apt-get install gdb
добавить в строку запуска:
./srcds_run -game cstrike -debug -maxplayers 32 …….
Можно было и переводчика спросить.
-
krizziss
- Нович0к
- Сообщения: 14
- Зарегистрирован: 21.01.2014
- Благодарил (а): 1 раз
- Поблагодарили: 3 раза
#3
Сообщение
07.02.2014, 16:15
BearDED писал(а):
krizziss писал(а):Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem как избавиться?
apt-get install gdb
добавить в строку запуска:
./srcds_run -game cstrike -debug -maxplayers 32 …….Можно было и переводчика спросить.
Спасибо)) а это что за ошибка?
Auto detecting CPU
Using SSE2 Optimised binary.
Source engine binary ‘./srcds_i686’ not executable, exiting
Добавлено спустя 1 час 56 минут 50 секунд:
krizziss писал(а):
BearDED писал(а):
krizziss писал(а):Add «-debug» to the ./srcds_run command line to generate a debug.log to help with solving this problem как избавиться?
apt-get install gdb
добавить в строку запуска:
./srcds_run -game cstrike -debug -maxplayers 32 …….Можно было и переводчика спросить.
спасибо)
./srcds_run -console -game cstrike -insecure -debug +maxplayers 30 +map de_dust2 +fps_max 0 -tickrate 66 -port 27016 +sv_lan 0
Auto detecting CPU
Using SSE2 Optimised binary.
Enabling debug mode
Server will auto-restart if there is a crash.
AppFramework : Unable to load module bin/engine_i686.so!
Unable to load interface VEngineCvar003 from bin/engine_i686.soFri Feb 7 16:11:09 MSK 2014: Server Quit
-
__A
- Капитан
- Сообщения: 392
- Зарегистрирован: 03.02.2009
- Благодарил (а): 38 раз
- Поблагодарили: 113 раз
#4
Сообщение
07.02.2014, 16:21
krizziss писал(а):./srcds_run -console -game cstrike -insecure -debug +maxplayers 30 +map de_dust2 +fps_max 0 -tickrate 66 -port 27016 +sv_lan 0
Auto detecting CPU
Using SSE2 Optimised binary.
Enabling debug mode
Server will auto-restart if there is a crash.
AppFramework : Unable to load module bin/engine_i686.so!
Unable to load interface VEngineCvar003 from bin/engine_i686.soFri Feb 7 16:11:09 MSK 2014: Server Quit
Не знаю, что -нибудь накосячил с сошками.
Думаю проблема в этом:
krizziss писал(а):я просто скачал готовый сервер
Точнее, то, что тебе подсунули.
-
krizziss
- Нович0к
- Сообщения: 14
- Зарегистрирован: 21.01.2014
- Благодарил (а): 1 раз
- Поблагодарили: 3 раза
#5
Сообщение
07.02.2014, 20:57
быть такого не может) я скачал свой сервер с хоста (на котором он сейчас стоит)
Добавлено спустя 4 часа 14 минут 30 секунд:
close) проблема решена) плохой сервер!