In my project i am building shared library (.so) and linking it to my application. When i try to launch debug, i get following:
=thread-group-added,id="i1"
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://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"
Stopped due to shared library event (no libraries added or removed)
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
[Inferior 1 (process 14069) exited with code 0177]
The program '/home/rytis/Desktop/DeepLearningSampleRemake/build/TestYolo4Video/TestYolo4Video' has exited with code 177 (0x000000b1).
My configuration:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/TestYolo4Video/TestYolo4Video",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
This happens only when i am trying to debug with shared library (linked to my application). (Works if i am debugging only application)
I build my project with -g to generate debug info (using cmake).
My environment:
Ubuntu 16.04 x64
Visual Code: 1.27.2 (also tried version till 1.23, same problem)
GCC 5.4.0 or GCC 6.4.0 (same problem)
I have seen a lot of questions related to this kind of problem ("Stopped due to shared library event (no libraries added or removed)"), but still didn't find a cure for it..
breaking in gdb on .so load events is controlled by the following command (0 to disable, 1 to enable)
set stop-on-solib-events 0
type the command in debugger command window , and it should disable library events. You can check the current behavior with
show stop-on-solib-events
in the command window.
Check your ~/.gdbinit file. Check commands within. Also check if your distribution vendor Ubuntu enabled by any means when building gdb a global init file, and what commands they put in it, if they did. Ubunto doesnt have very sane defaults
I think it is actually the thing that i don't know how to add shared library to my configuration file:
My configuration:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/TestYolo4Video/TestYolo4Video",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
The file is in folder near the launch file, but it is not very clear how i need to attach it for debugging...
You would need to specify additionalSOLibSearchPath in your launch.json. The documentation is referenced here.
@pieandcakes I am experiencing the same issue as the OP but in VS 2017 Professional (15.8.4). I am building and running in WSL through Visual Studio. I have set my Shared Library Search Path to the directory containing my libraries. My program builds and runs as expected when I run it from the command line, but I cannot debug in VS. Just like the OP, I can debug my application when I do not use my shared libraries, but as soon as I attempt to use them, I get the error from the OP. Namely:
Stopped due to shared library event (no libraries added or removed)
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
[Inferior 1 (process 14084) exited with code 0177]
Is there an additional setting I am missing in VS to enable debugging when I use my shared libraries?
Let me know if you need any additional information about my configuration.
For anyone else experiencing this issue, a solution that worked for me was to copy the shared libraries to the path /usr/lib/x86_64-linux-gnu. This must be where the debugger is looking for them to link them. I added a post-build event to grab them from their respective project bin directories and copy them to that location.
The basic problem seems to be that it can't load a required shared library. And the reason appears to be that the env variables aren't being properly set to do that. In the end, I was able to make it work as desired by loading some extra variables in the debugger path. This is totally not what it is meant for, obviously:
{
"name": "C++ WSL Launch",
"type": "cppdbg",
"request": "launch",
"program": "/tmp/TSOBuild/test/rpc_hits",
"args": ["--events=10", "--skip_end_run", "./run_0000002779.mathusla"],
"stopAtEntry": false,
"cwd": "/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline",
"environment": [
{"name": "ROOTSYS", "value": "/home/gwatts/root/root"},
{"name": "LD_LIBRARY_PATH", "value": "/home/gwatts/root/root/lib"},
{"name": "WSLENV", "value": "ROOTSYS:LD_LIBRARY_PATH"}
],
"additionalSOLibSearchPath": "/home/gwatts/root/root/lib",
"externalConsole": true,
"windows": {
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
"pipeTransport": {
"pipeCwd": "",
"pipeProgram": "c:\\windows\\sysnative\\bash.exe",
"pipeArgs": ["-c"],
"debuggerPath": "export LD_LIBRARY_PATH=/home/gwatts/root/root/lib; /usr/bin/gdb"
},
"sourceFileMap": {
"/mnt/i": "I:\\"
}
},
The additonalSOLibSearchPath and the envinroment don't work. You can see this by doing "set" as a command in debuggerPath if you like. That reveals none of the variables are being sent over the pipe to WSL.
@gordonwatts Are you saying that the "environment" field isnt' being set nor is the "additionalSOLibSearchPath" but when you add the hack in "pipeTransport"'s "debuggerPath" it works?
For those paths, we usually send them to gdb through their corresponding mi commands and I'm wondering if the implementation of it is not working within gdb?
@pieandcakes - thanks for the response.
Yes, that is what I'm saying. I'm using WSL, both on an insiders release and on a regular windows release. In each case the WSL system is Ubuntu, at bionic. gdb's version:
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Is this not expected? I'm happy to run further debugging commands if you wish, or dump my environment further.
As far as not working: if I do not define the LD_LIBRARY_PATH as above, then the program does not start. Further, there are other env vars that my program depends on that I added to the config as above and that didn't seem to work at all either, until I did the hack. In short, I now have several export commands. :-)
@gordonwatts Do you have a small repro project that I can download and debug into or enable "logging": { "engineLogging": true } and send me the output? This should show all the gdb messages we send and receive and I'd be interested in seeing if we can determine why that shared library is not being loaded.
The additionalSOLibSearchPath is calling set solib-search-path underneath to set the path, which according to the gdb documentation should give it a location on where to load the shared library.
Sorry to take so long to reply @pieandcakes. Unfortunately, the repro isn't public, but for no good reason. This is just research at CERN, so... I've gotten the output from enable logging.
I am far from a gdb expert, but I think solib-search-path just alters the search path for so's that gdb is loading, not that the system is trying to load.
The launch.json contents:
{
"name": "C++ WSL rpc_hits launch",
"type": "cppdbg",
"request": "launch",
"program": "/tmp/TSOBuild/test/rpc_hits",
"args": ["--events=1000", "--skip_end_run", "./run_0000002779.mathusla"],
"stopAtEntry": false,
"cwd": "/tmp/TSOBuild",
"environment": [
{"name": "ROOTSYS", "value": "/home/gwatts/root/root"},
{"name": "LD_LIBRARY_PATH", "value": "/home/gwatts/root/root/lib"},
{"name": "WSLENV", "value": "ROOTSYS:LD_LIBRARY_PATH"}
],
"additionalSOLibSearchPath": "/home/gwatts/root/root/lib",
"externalConsole": true,
"windows": {
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
"pipeTransport": {
"pipeCwd": "",
"pipeProgram": "c:\\windows\\sysnative\\bash.exe",
"pipeArgs": ["-c"],
"debuggerPath": "/usr/bin/gdb"
},
"sourceFileMap": {
"/mnt/i": "I:\\"
},
"logging": {
"engineLogging": true
}
},
And the debugger log output:
1: (153) LaunchOptions<PipeLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
1: (163) LaunchOptions ExePath='/tmp/TSOBuild/test/rpc_hits'
1: (163) LaunchOptions WorkingDirectory='/tmp/TSOBuild'
1: (163) LaunchOptions AdditionalSOLibSearchPath='/home/gwatts/root/root/lib'
1: (163) LaunchOptions ExeArguments='--events=1000 --skip_end_run ./run_0000002779.mathusla'
1: (164) LaunchOptions MIMode='gdb'
1: (164) LaunchOptions PipePath='c:\windows\sysnative\bash.exe'
1: (164) LaunchOptions PipeArguments='-c "/usr/bin/gdb --interpreter=mi"'
1: (164) LaunchOptions PipeCommandArguments='-c'
1: (164) LaunchOptions PipeCwd=''
1: (165) LaunchOptions>
1: (165) LaunchOptions <SetupCommands>
1: (165) LaunchOptions <Command IgnoreFailures='true' Description='Enable pretty-printing for gdb'>-enable-pretty-printing</Command>
1: (165) LaunchOptions </SetupCommands>
1: (165) LaunchOptions</PipeLaunchOptions>
1: (224) Starting: "c:\windows\sysnative\bash.exe" -c "/usr/bin/gdb --interpreter=mi"
1: (822) ->=thread-group-added,id="i1"
1: (823) ->~"GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git\n"
1: (823) ->~"Copyright (C) 2018 Free Software Foundation, Inc.\n"
1: (824) ->~"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. Type \"show copying\"\nand \"show warranty\" for details.\n"
1: (824) ->~"This GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details."
1: (824) ->~"\nFor bug reporting instructions, please see:\n"
1: (824) ->~"<http://www.gnu.org/software/gdb/bugs/>.\n"
1: (824) ->~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
1: (824) ->~"For help, type \"help\".\n"
1: (825) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
1: (825) ->(gdb)
1: (833) <-1001-gdb-set target-async on
1: (833) ->1001^done
1: (833) ->(gdb)
1: (833) 1001: elapsed time 1
1: (845) <-1002-enable-pretty-printing
1: (845) ->1002^done
1: (845) ->(gdb)
1: (845) 1002: elapsed time 1
1: (846) <-1003-interpreter-exec console "set pagination off"
1: (847) ->=cmd-param-changed,param="pagination",value="off"
1: (847) ->1003^done
1: (847) ->(gdb)
1: (847) 1003: elapsed time 0
1: (847) <-1004-gdb-set auto-solib-add on
1: (847) ->1004^done
1: (847) ->(gdb)
1: (847) 1004: elapsed time 0
1: (849) <-1005-gdb-set solib-search-path /tmp/TSOBuild/test:/home/gwatts/root/root/lib:
1: (849) ->1005^done
1: (849) ->(gdb)
1: (849) 1005: elapsed time 0
1: (850) <-1006-gdb-set stop-on-solib-events 1
1: (850) ->1006^done
1: (850) ->(gdb)
1: (850) 1006: elapsed time 0
1: (850) <-1007-environment-cd /tmp/TSOBuild
1: (852) ->1007^done
1: (852) ->(gdb)
1: (852) 1007: elapsed time 1
1: (852) <-1008-file-exec-and-symbols /tmp/TSOBuild/test/rpc_hits
1: (999) ->1008^done
1: (999) ->(gdb)
1: (999) 1008: elapsed time 146
1: (1003) <-1009-interpreter-exec console "show architecture"
1: (1004) ->~"The target architecture is set automatically (currently i386:x86-64)\n"
1: (1004) ->1009^done
1: (1004) ->(gdb)
1: (1004) 1009: elapsed time 1
1: (1006) <-1010-exec-arguments --events=1000 --skip_end_run ./run_0000002779.mathusla
1: (1006) ->1010^done
1: (1006) ->(gdb)
1: (1006) 1010: elapsed time 0
1: (1007) <-1011-break-insert -f main
1: (1008) ->1011^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000000103bd",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="24",thread-groups=["i1"],times="0",original-location="main"}
1: (1008) ->(gdb)
1: (1015) 1011: elapsed time 8
1: (1076) <-1012-break-insert -f rpc_hits.cpp:25
1: (1077) ->1012^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000000103cc",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="25",thread-groups=["i1"],times="0",original-location="rpc_hits.cpp:25"}
1: (1077) ->(gdb)
1: (1078) 1012: elapsed time 1
1: (1095) <-1013-symbol-list-lines /mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp
1: (1097) ->1013^done,lines=[{pc="0x000000000001014c",line="39"},{pc="0x0000000000010161",line="39"},{pc="0x0000000000010170",line="41"},{pc="0x000000000001018e",line="44"},{pc="0x00000000000101e3",line="47"},{pc="0x0000000000010236",line="48"},{pc="0x000000000001028f",line="49"},{pc="0x00000000000102c3",line="50"},{pc="0x0000000000010347",line="47"},{pc="0x0000000000010358",line="41"},{pc="0x0000000000010364",line="53"},{pc="0x0000000000010379",line="41"},{pc="0x0000000000010390",line="53"},{pc="0x00000000000103a0",line="24"},{pc="0x00000000000103bd",line="24"},{pc="0x00000000000103cc",line="25"},{pc="0x000000000001041d",line="26"},{pc="0x000000000001045c",line="28"},{pc="0x0000000000010466",line="29"},{pc="0x0000000000010470",line="30"},{pc="0x000000000001047a",line="32"},{pc="0x0000000000010489",line="33"},{pc="0x00000000000104a2",line="34"},{pc="0x00000000000104b6",line="35"},{pc="0x00000000000104df",line="36"},{pc="0x00000000000105ce",line="34"},{pc="0x00000000000105dd",line="33"},{pc="0x00000000000105f1",line="39"},{pc="0x0000000000010639",line="57"},{pc="0x000000000001066c",line="58"},{pc="0x000000000001067e",line="59"},{pc="0x00000000000106c7",line="65"},{pc="0x0000000000010709",line="66"},{pc="0x0000000000010737",line="67"},{pc="0x0000000000010765",line="69"},{pc="0x00000000000107d2",line="70"},{pc="0x0000000000010808",line="69"},{pc="0x0000000000010819",line="73"},{pc="0x0000000000010841",line="65"},{pc="0x0000000000010850",line="76"},{pc="0x0000000000010855",line="32"},{pc="0x0000000000010866",line="77"},{pc="0x0000000000010881",line="25"},{pc="0x0000000000010897",line="26"},{pc="0x00000000000108ad",line="36"},{pc="0x00000000000108f9",line="34"},{pc="0x0000000000010915",line="65"},{pc="0x0000000000010939",line="32"},{pc="0x0000000000010953",line="77"},{pc="0x0000000000010966",line="0"},{pc="0x00000000000119f2",line="77"},{pc="0x0000000000011a0b",line="77"},{pc="0x0000000000011a37",line="0"},{pc="0x0000000000011b56",line="77"},{pc="0x0000000000011b5b",line="0"},{pc="0x0000000000011bb9",line="77"},{pc="0x0000000000011bd8",line="77"},{pc="0x0000000000011bdc",line="77"},{pc="0x0000000000011bed",line="0"}]
1: (1097) ->(gdb)
1: (1098) 1013: elapsed time 3
=thread-group-added,id="i1"
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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: (1148) <-1014-exec-run
1: (1154) ->=thread-group-started,id="i1",pid="13"
1: (1155) ->=thread-created,id="1",group-id="i1"
1: (1164) <-1015-thread-info 1
1: (1202) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000080103bd",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="24",thread-groups=["i1"],times="0",original-location="main"}
1: (1202) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000080103cc",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="25",thread-groups=["i1"],times="0",original-location="rpc_hits.cpp:25"}
1: (1205) ->=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fffff400f10",to="0x00007fffff41fb20"}]
1: (1209) <-1016-symbol-list-lines /mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp
1: (1247) ->1014^running
1: (1248) ->*running,thread-id="all"
1: (1248) ->(gdb)
1: (1248) ->1015^done,threads=[{id="1",target-id="process 13",name="rpc_hits",state="running",core="0"}]
1: (1248) 1014: elapsed time 100
1: (1248) ->(gdb)
1: (1251) 1015: elapsed time 87
1: (1255) ->~"Stopped due to shared library event (no libraries added or removed)\n"
1: (1255) ->*stopped,reason="solib-event",thread-id="1",stopped-threads="all",core="0"
Stopped due to shared library event (no libraries added or removed)
1: (1256) ->1016^done,lines=[{pc="0x000000000801014c",line="39"},{pc="0x0000000008010161",line="39"},{pc="0x0000000008010170",line="41"},{pc="0x000000000801018e",line="44"},{pc="0x00000000080101e3",line="47"},{pc="0x0000000008010236",line="48"},{pc="0x000000000801028f",line="49"},{pc="0x00000000080102c3",line="50"},{pc="0x0000000008010347",line="47"},{pc="0x0000000008010358",line="41"},{pc="0x0000000008010364",line="53"},{pc="0x0000000008010379",line="41"},{pc="0x0000000008010390",line="53"},{pc="0x00000000080103a0",line="24"},{pc="0x00000000080103bd",line="24"},{pc="0x00000000080103cc",line="25"},{pc="0x000000000801041d",line="26"},{pc="0x000000000801045c",line="28"},{pc="0x0000000008010466",line="29"},{pc="0x0000000008010470",line="30"},{pc="0x000000000801047a",line="32"},{pc="0x0000000008010489",line="33"},{pc="0x00000000080104a2",line="34"},{pc="0x00000000080104b6",line="35"},{pc="0x00000000080104df",line="36"},{pc="0x00000000080105ce",line="34"},{pc="0x00000000080105dd",line="33"},{pc="0x00000000080105f1",line="39"},{pc="0x0000000008010639",line="57"},{pc="0x000000000801066c",line="58"},{pc="0x000000000801067e",line="59"},{pc="0x00000000080106c7",line="65"},{pc="0x0000000008010709",line="66"},{pc="0x0000000008010737",line="67"},{pc="0x0000000008010765",line="69"},{pc="0x00000000080107d2",line="70"},{pc="0x0000000008010808",line="69"},{pc="0x0000000008010819",line="73"},{pc="0x0000000008010841",line="65"},{pc="0x0000000008010850",line="76"},{pc="0x0000000008010855",line="32"},{pc="0x0000000008010866",line="77"},{pc="0x0000000008010881",line="25"},{pc="0x0000000008010897",line="26"},{pc="0x00000000080108ad",line="36"},{pc="0x00000000080108f9",line="34"},{pc="0x0000000008010915",line="65"},{pc="0x0000000008010939",line="32"},{pc="0x0000000008010953",line="77"},{pc="0x0000000008010966",line="0"},{pc="0x00000000080119f2",line="77"},{pc="0x0000000008011a0b",line="77"},{pc="0x0000000008011a37",line="0"},{pc="0x0000000008011b56",line="77"},{pc="0x0000000008011b5b",line="0"},{pc="0x0000000008011bb9",line="77"},{pc="0x0000000008011bd8",line="77"},{pc="0x0000000008011bdc",line="77"},{pc="0x0000000008011bed",line="0"}]
1: (1256) ->(gdb)
1: (1275) 1016: elapsed time 66
1: (1275) <-1017-interpreter-exec console "info sharedlibrary"
1: (1276) ->~"From To Syms Read Shared Object Library\n"
1: (1277) ->~"0x00007fffff400f10 0x00007fffff41fb20 Yes /lib64/ld-linux-x86-64.so.2\n"
1: (1277) ->1017^done
1: (1277) ->(gdb)
1: (1277) 1017: elapsed time 1
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
1: (1280) <--exec-continue
1: (1281) ->^running
1: (1281) ->*running,thread-id="all"
1: (1281) ->(gdb)
1: (1293) STDERR: /tmp/TSOBuild/test/rpc_hits: error while loading shared libraries: libThread.so: cannot open shared object file: No such file or directory
1: (1294) ->~"[Inferior 1 (process 13) exited with code 0177]\n"
1: (1294) ->=thread-exited,id="1",group-id="i1"
[Inferior 1 (process 13) exited with code 0177]
1: (1294) ->=thread-group-exited,id="i1",exit-code="0177"
1: (1295) ->*stopped,reason="exited",exit-code="0177"
1: (1303) <-logout
1: (1303) ->&"logout\n"
The program '/tmp/TSOBuild/test/rpc_hits' has exited with code 177 (0x000000b1).
1: (1318) <--gdb-exit
The launch config:
{
"name": "C++ WSL rpc_hits launch",
"type": "cppdbg",
"request": "launch",
"program": "/tmp/TSOBuild/test/rpc_hits",
"args": ["--events=1000", "--skip_end_run", "./run_0000002779.mathusla"],
"stopAtEntry": false,
"cwd": "/tmp/TSOBuild",
"environment": [
{"name": "ROOTSYS", "value": "/home/gwatts/root/root"},
{"name": "LD_LIBRARY_PATH", "value": "/home/gwatts/root/root/lib"},
{"name": "WSLENV", "value": "ROOTSYS:LD_LIBRARY_PATH"}
],
"additionalSOLibSearchPath": "/home/gwatts/root/root/lib",
"externalConsole": true,
"windows": {
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
"pipeTransport": {
"pipeCwd": "",
"pipeProgram": "c:\\windows\\sysnative\\bash.exe",
"pipeArgs": ["-c"],
"debuggerPath": "export TESTSTANDCONFIG=/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/config; export LD_LIBRARY_PATH=/home/gwatts/root/root/lib; /usr/bin/gdb"
},
"sourceFileMap": {
"/mnt/i": "I:\\"
},
"logging": {
"engineLogging": true
}
},
And the log:
1: (151) LaunchOptions<PipeLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
1: (161) LaunchOptions ExePath='/tmp/TSOBuild/test/rpc_hits'
1: (161) LaunchOptions WorkingDirectory='/tmp/TSOBuild'
1: (161) LaunchOptions AdditionalSOLibSearchPath='/home/gwatts/root/root/lib'
1: (162) LaunchOptions ExeArguments='--events=1000 --skip_end_run ./run_0000002779.mathusla'
1: (162) LaunchOptions MIMode='gdb'
1: (162) LaunchOptions PipePath='c:\windows\sysnative\bash.exe'
1: (162) LaunchOptions PipeArguments='-c "export TESTSTANDCONFIG=/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/config; export LD_LIBRARY_PATH=/home/gwatts/root/root/lib; /usr/bin/gdb --interpreter=mi"'
1: (162) LaunchOptions PipeCommandArguments='-c'
1: (163) LaunchOptions PipeCwd=''
1: (163) LaunchOptions>
1: (163) LaunchOptions <SetupCommands>
1: (163) LaunchOptions <Command IgnoreFailures='true' Description='Enable pretty-printing for gdb'>-enable-pretty-printing</Command>
1: (164) LaunchOptions </SetupCommands>
1: (164) LaunchOptions</PipeLaunchOptions>
1: (223) Starting: "c:\windows\sysnative\bash.exe" -c "export TESTSTANDCONFIG=/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/config; export LD_LIBRARY_PATH=/home/gwatts/root/root/lib; /usr/bin/gdb --interpreter=mi"
1: (903) ->=thread-group-added,id="i1"
1: (905) ->~"GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git\n"
1: (905) ->~"Copyright (C) 2018 Free Software Foundation, Inc.\n"
1: (905) ->~"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. Type \"show copying\"\nand \"show warranty\" for details.\n"
1: (905) ->~"This GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details."
1: (905) ->~"\nFor bug reporting instructions, please see:\n"
1: (905) ->~"<http://www.gnu.org/software/gdb/bugs/>.\n"
1: (905) ->~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
1: (905) ->~"For help, type \"help\".\n"
1: (905) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
1: (905) ->(gdb)
1: (913) <-1001-gdb-set target-async on
1: (913) ->1001^done
1: (914) ->(gdb)
1: (915) 1001: elapsed time 3
1: (925) <-1002-enable-pretty-printing
1: (925) ->1002^done
1: (925) ->(gdb)
1: (925) 1002: elapsed time 0
1: (925) <-1003-interpreter-exec console "set pagination off"
1: (926) ->=cmd-param-changed,param="pagination",value="off"
1: (926) ->1003^done
1: (926) ->(gdb)
1: (926) 1003: elapsed time 0
1: (926) <-1004-gdb-set auto-solib-add on
1: (927) ->1004^done
1: (927) ->(gdb)
1: (927) 1004: elapsed time 1
1: (927) <-1005-gdb-set solib-search-path /tmp/TSOBuild/test:/home/gwatts/root/root/lib:
1: (928) ->1005^done
1: (928) ->(gdb)
1: (928) 1005: elapsed time 1
1: (928) <-1006-gdb-set stop-on-solib-events 1
1: (929) ->1006^done
1: (929) ->(gdb)
1: (929) 1006: elapsed time 0
1: (929) <-1007-environment-cd /tmp/TSOBuild
1: (930) ->1007^done
1: (930) ->(gdb)
1: (930) 1007: elapsed time 0
1: (930) <-1008-file-exec-and-symbols /tmp/TSOBuild/test/rpc_hits
1: (1080) ->1008^done
1: (1080) ->(gdb)
1: (1080) 1008: elapsed time 150
1: (1085) <-1009-interpreter-exec console "show architecture"
1: (1085) ->~"The target architecture is set automatically (currently i386:x86-64)\n"
1: (1085) ->1009^done
1: (1085) ->(gdb)
1: (1085) 1009: elapsed time 0
1: (1086) <-1010-exec-arguments --events=1000 --skip_end_run ./run_0000002779.mathusla
1: (1088) ->1010^done
1: (1088) ->(gdb)
1: (1088) 1010: elapsed time 1
1: (1088) <-1011-break-insert -f main
1: (1090) ->1011^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000000103bd",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="24",thread-groups=["i1"],times="0",original-location="main"}
1: (1090) ->(gdb)
1: (1094) 1011: elapsed time 6
1: (1282) <-1012-break-insert -f rpc_hits.cpp:25
1: (1283) ->1012^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000000103cc",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="25",thread-groups=["i1"],times="0",original-location="rpc_hits.cpp:25"}
1: (1283) ->(gdb)
1: (1284) 1012: elapsed time 2
1: (1299) <-1013-symbol-list-lines /mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp
1: (1302) ->1013^done,lines=[{pc="0x000000000001014c",line="39"},{pc="0x0000000000010161",line="39"},{pc="0x0000000000010170",line="41"},{pc="0x000000000001018e",line="44"},{pc="0x00000000000101e3",line="47"},{pc="0x0000000000010236",line="48"},{pc="0x000000000001028f",line="49"},{pc="0x00000000000102c3",line="50"},{pc="0x0000000000010347",line="47"},{pc="0x0000000000010358",line="41"},{pc="0x0000000000010364",line="53"},{pc="0x0000000000010379",line="41"},{pc="0x0000000000010390",line="53"},{pc="0x00000000000103a0",line="24"},{pc="0x00000000000103bd",line="24"},{pc="0x00000000000103cc",line="25"},{pc="0x000000000001041d",line="26"},{pc="0x000000000001045c",line="28"},{pc="0x0000000000010466",line="29"},{pc="0x0000000000010470",line="30"},{pc="0x000000000001047a",line="32"},{pc="0x0000000000010489",line="33"},{pc="0x00000000000104a2",line="34"},{pc="0x00000000000104b6",line="35"},{pc="0x00000000000104df",line="36"},{pc="0x00000000000105ce",line="34"},{pc="0x00000000000105dd",line="33"},{pc="0x00000000000105f1",line="39"},{pc="0x0000000000010639",line="57"},{pc="0x000000000001066c",line="58"},{pc="0x000000000001067e",line="59"},{pc="0x00000000000106c7",line="65"},{pc="0x0000000000010709",line="66"},{pc="0x0000000000010737",line="67"},{pc="0x0000000000010765",line="69"},{pc="0x00000000000107d2",line="70"},{pc="0x0000000000010808",line="69"},{pc="0x0000000000010819",line="73"},{pc="0x0000000000010841",line="65"},{pc="0x0000000000010850",line="76"},{pc="0x0000000000010855",line="32"},{pc="0x0000000000010866",line="77"},{pc="0x0000000000010881",line="25"},{pc="0x0000000000010897",line="26"},{pc="0x00000000000108ad",line="36"},{pc="0x00000000000108f9",line="34"},{pc="0x0000000000010915",line="65"},{pc="0x0000000000010939",line="32"},{pc="0x0000000000010953",line="77"},{pc="0x0000000000010966",line="0"},{pc="0x00000000000119f2",line="77"},{pc="0x0000000000011a0b",line="77"},{pc="0x0000000000011a37",line="0"},{pc="0x0000000000011b56",line="77"},{pc="0x0000000000011b5b",line="0"},{pc="0x0000000000011bb9",line="77"},{pc="0x0000000000011bd8",line="77"},{pc="0x0000000000011bdc",line="77"},{pc="0x0000000000011bed",line="0"}]
1: (1302) ->(gdb)
1: (1302) 1013: elapsed time 3
=thread-group-added,id="i1"
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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: (1357) <-1014-exec-run
1: (1363) ->=thread-group-started,id="i1",pid="14"
1: (1363) ->=thread-created,id="1",group-id="i1"
1: (1372) <-1015-thread-info 1
1: (1425) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000080103bd",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="24",thread-groups=["i1"],times="0",original-location="main"}
1: (1425) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000080103cc",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="25",thread-groups=["i1"],times="0",original-location="rpc_hits.cpp:25"}
1: (1429) ->=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fffff400f10",to="0x00007fffff41fb20"}]
1: (1434) <-1016-symbol-list-lines /mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp
1: (1472) ->1014^running
1: (1473) ->*running,thread-id="all"
1: (1473) 1014: elapsed time 115
1: (1473) ->(gdb)
1: (1473) ->1015^done,threads=[{id="1",target-id="process 14",name="rpc_hits",state="running",core="0"}]
1: (1474) ->(gdb)
1: (1476) 1015: elapsed time 104
1: (1483) ->~"Stopped due to shared library event (no libraries added or removed)\n"
1: (1483) ->*stopped,reason="solib-event",thread-id="1",stopped-threads="all",core="0"
Stopped due to shared library event (no libraries added or removed)
1: (1484) ->1016^done,lines=[{pc="0x000000000801014c",line="39"},{pc="0x0000000008010161",line="39"},{pc="0x0000000008010170",line="41"},{pc="0x000000000801018e",line="44"},{pc="0x00000000080101e3",line="47"},{pc="0x0000000008010236",line="48"},{pc="0x000000000801028f",line="49"},{pc="0x00000000080102c3",line="50"},{pc="0x0000000008010347",line="47"},{pc="0x0000000008010358",line="41"},{pc="0x0000000008010364",line="53"},{pc="0x0000000008010379",line="41"},{pc="0x0000000008010390",line="53"},{pc="0x00000000080103a0",line="24"},{pc="0x00000000080103bd",line="24"},{pc="0x00000000080103cc",line="25"},{pc="0x000000000801041d",line="26"},{pc="0x000000000801045c",line="28"},{pc="0x0000000008010466",line="29"},{pc="0x0000000008010470",line="30"},{pc="0x000000000801047a",line="32"},{pc="0x0000000008010489",line="33"},{pc="0x00000000080104a2",line="34"},{pc="0x00000000080104b6",line="35"},{pc="0x00000000080104df",line="36"},{pc="0x00000000080105ce",line="34"},{pc="0x00000000080105dd",line="33"},{pc="0x00000000080105f1",line="39"},{pc="0x0000000008010639",line="57"},{pc="0x000000000801066c",line="58"},{pc="0x000000000801067e",line="59"},{pc="0x00000000080106c7",line="65"},{pc="0x0000000008010709",line="66"},{pc="0x0000000008010737",line="67"},{pc="0x0000000008010765",line="69"},{pc="0x00000000080107d2",line="70"},{pc="0x0000000008010808",line="69"},{pc="0x0000000008010819",line="73"},{pc="0x0000000008010841",line="65"},{pc="0x0000000008010850",line="76"},{pc="0x0000000008010855",line="32"},{pc="0x0000000008010866",line="77"},{pc="0x0000000008010881",line="25"},{pc="0x0000000008010897",line="26"},{pc="0x00000000080108ad",line="36"},{pc="0x00000000080108f9",line="34"},{pc="0x0000000008010915",line="65"},{pc="0x0000000008010939",line="32"},{pc="0x0000000008010953",line="77"},{pc="0x0000000008010966",line="0"},{pc="0x00000000080119f2",line="77"},{pc="0x0000000008011a0b",line="77"},{pc="0x0000000008011a37",line="0"},{pc="0x0000000008011b56",line="77"},{pc="0x0000000008011b5b",line="0"},{pc="0x0000000008011bb9",line="77"},{pc="0x0000000008011bd8",line="77"},{pc="0x0000000008011bdc",line="77"},{pc="0x0000000008011bed",line="0"}]
1: (1484) ->(gdb)
1: (1500) 1016: elapsed time 65
1: (1501) <-1017-interpreter-exec console "info sharedlibrary"
1: (1503) ->~"From To Syms Read Shared Object Library\n"
1: (1503) ->~"0x00007fffff400f10 0x00007fffff41fb20 Yes /lib64/ld-linux-x86-64.so.2\n"
1: (1503) ->1017^done
1: (1503) ->(gdb)
1: (1503) 1017: elapsed time 1
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
1: (1507) <--exec-continue
1: (1508) ->^running
1: (1508) ->*running,thread-id="all"
1: (1508) ->(gdb)
1: (1564) ->=library-loaded,id="/tmp/TSOBuild/libtest_stand_offline.so",target-name="/tmp/TSOBuild/libtest_stand_offline.so",host-name="/tmp/TSOBuild/libtest_stand_offline.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fffff143750",to="0x00007fffff1b7593"}]
1: (1564) ->=library-loaded,id="/home/gwatts/root/root/lib/libCore.so",target-name="/home/gwatts/root/root/lib/libCore.so",host-name="/home/gwatts/root/root/lib/libCore.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffeae6370",to="0x00007ffffed2769e"}]
1: (1565) ->=library-loaded,id="/home/gwatts/root/root/lib/libRIO.so",target-name="/home/gwatts/root/root/lib/libRIO.so",host-name="/home/gwatts/root/root/lib/libRIO.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffe47ef30",to="0x00007ffffe7073f0"}]
1: (1565) ->=library-loaded,id="/home/gwatts/root/root/lib/libHist.so",target-name="/home/gwatts/root/root/lib/libHist.so",host-name="/home/gwatts/root/root/lib/libHist.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffdf285f0",to="0x00007ffffe119e61"}]
1: (1566) ->=library-loaded,id="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",target-name="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",host-name="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffdafc3f0",to="0x00007ffffdbabb1e"}]
1: (1566) ->=library-loaded,id="/lib/x86_64-linux-gnu/libgcc_s.so.1",target-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",host-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffd852ac0",to="0x00007ffffd86332d"}]
1: (1567) ->=library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffd4712d0",to="0x00007ffffd5e9c3c"}]
1: (1568) ->=library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffd0bba80",to="0x00007ffffd17a2f5"}]
1: (1568) ->=library-loaded,id="/lib/x86_64-linux-gnu/libz.so.1",target-name="/lib/x86_64-linux-gnu/libz.so.1",host-name="/lib/x86_64-linux-gnu/libz.so.1",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffce91f90",to="0x00007ffffcea5640"}]
1: (1569) ->=library-loaded,id="/lib/x86_64-linux-gnu/libdl.so.2",target-name="/lib/x86_64-linux-gnu/libdl.so.2",host-name="/lib/x86_64-linux-gnu/libdl.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffcc80e50",to="0x00007ffffcc81bde"}]
1: (1570) ->=library-loaded,id="/lib/x86_64-linux-gnu/libpthread.so.0",target-name="/lib/x86_64-linux-gnu/libpthread.so.0",host-name="/lib/x86_64-linux-gnu/libpthread.so.0",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffca65bb0",to="0x00007ffffca740f1"}]
1: (1570) ->=library-loaded,id="/home/gwatts/root/root/lib/libThread.so",target-name="/home/gwatts/root/root/lib/libThread.so",host-name="/home/gwatts/root/root/lib/libThread.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffc824670",to="0x00007ffffc8437df"}]
1: (1571) ->=library-loaded,id="/home/gwatts/root/root/lib/libMatrix.so",target-name="/home/gwatts/root/root/lib/libMatrix.so",host-name="/home/gwatts/root/root/lib/libMatrix.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffc4df210",to="0x00007ffffc5bf85d"}]
1: (1571) ->=library-loaded,id="/home/gwatts/root/root/lib/libMathCore.so",target-name="/home/gwatts/root/root/lib/libMathCore.so",host-name="/home/gwatts/root/root/lib/libMathCore.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffc0dff70",to="0x00007ffffc1ac1ea"}]
1: (1572) ->=library-loaded,id="/home/gwatts/root/root/lib/libImt.so",target-name="/home/gwatts/root/root/lib/libImt.so",host-name="/home/gwatts/root/root/lib/libImt.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffbe64e80",to="0x00007ffffbe695d2"}]
1: (1572) ->=library-loaded,id="/usr/lib/x86_64-linux-gnu/libtbb.so.2",target-name="/usr/lib/x86_64-linux-gnu/libtbb.so.2",host-name="/usr/lib/x86_64-linux-gnu/libtbb.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffbc2daf0",to="0x00007ffffbc49eb8"}]
1: (3377) ->~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
1: (3377) ->~"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n"
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
1: (3546) ->~"Stopped due to shared library event:\n"
Stopped due to shared library event:
1: (3546) ->~" Inferior loaded /tmp/TSOBuild/libtest_stand_offline.so\n"
1: (3555) ->~" /home/gwatts/root/root/lib/libCore.so\n"
Inferior loaded /tmp/TSOBuild/libtest_stand_offline.so
1: (3555) ->~" /home/gwatts/root/root/lib/libRIO.so\n"
/home/gwatts/root/root/lib/libCore.so
/home/gwatts/root/root/lib/libRIO.so
1: (3555) ->~" /home/gwatts/root/root/lib/libHist.so\n"
/home/gwatts/root/root/lib/libHist.so
1: (3555) ->~" /usr/lib/x86_64-linux-gnu/libstdc++.so.6\n"
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
1: (3556) ->~" /lib/x86_64-linux-gnu/libgcc_s.so.1\n"
/lib/x86_64-linux-gnu/libgcc_s.so.1
1: (3556) ->~" /lib/x86_64-linux-gnu/libc.so.6\n"
/lib/x86_64-linux-gnu/libc.so.6
1: (3556) ->~" /lib/x86_64-linux-gnu/libm.so.6\n"
/lib/x86_64-linux-gnu/libm.so.6
1: (3556) ->~" /lib/x86_64-linux-gnu/libz.so.1\n"
/lib/x86_64-linux-gnu/libz.so.1
1: (3557) ->~" /lib/x86_64-linux-gnu/libdl.so.2\n"
/lib/x86_64-linux-gnu/libdl.so.2
1: (3557) ->~" /lib/x86_64-linux-gnu/libpthread.so.0\n"
/lib/x86_64-linux-gnu/libpthread.so.0
1: (3557) ->~" /home/gwatts/root/root/lib/libThread.so\n"
/home/gwatts/root/root/lib/libThread.so
1: (3557) ->~" /home/gwatts/root/root/lib/libMatrix.so\n"
/home/gwatts/root/root/lib/libMatrix.so
1: (3558) ->~" /home/gwatts/root/root/lib/libMathCore.so\n"
/home/gwatts/root/root/lib/libMathCore.so
1: (3558) ->~" /home/gwatts/root/root/lib/libImt.so\n"
/home/gwatts/root/root/lib/libImt.so
1: (3558) ->~" /usr/lib/x86_64-linux-gnu/libtbb.so.2\n"
/usr/lib/x86_64-linux-gnu/libtbb.so.2
1: (3558) ->*stopped,reason="solib-event",added=[library="/tmp/TSOBuild/libtest_stand_offline.so",library="/home/gwatts/root/root/lib/libCore.so",library="/home/gwatts/root/root/lib/libRIO.so",library="/home/gwatts/root/root/lib/libHist.so",library="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",library="/lib/x86_64-linux-gnu/libgcc_s.so.1",library="/lib/x86_64-linux-gnu/libc.so.6",library="/lib/x86_64-linux-gnu/libm.so.6",library="/lib/x86_64-linux-gnu/libz.so.1",library="/lib/x86_64-linux-gnu/libdl.so.2",library="/lib/x86_64-linux-gnu/libpthread.so.0",library="/home/gwatts/root/root/lib/libThread.so",library="/home/gwatts/root/root/lib/libMatrix.so",library="/home/gwatts/root/root/lib/libMathCore.so",library="/home/gwatts/root/root/lib/libImt.so",library="/usr/lib/x86_64-linux-gnu/libtbb.so.2"],thread-id="1",stopped-threads="all",core="0"
1: (3559) <-1018-interpreter-exec console "info sharedlibrary"
1: (3559) ->~"From To Syms Read Shared Object Library\n"
1: (3560) ->~"0x00007fffff400f10 0x00007fffff41fb20 Yes /lib64/ld-linux-x86-64.so.2\n"
1: (3560) ->~"0x00007fffff143750 0x00007fffff1b7593 Yes /tmp/TSOBuild/libtest_stand_offline.so\n"
1: (3560) ->~"0x00007ffffeae6370 0x00007ffffed2769e Yes /home/gwatts/root/root/lib/libCore.so\n"
1: (3560) ->~"0x00007ffffe47ef30 0x00007ffffe7073f0 Yes /home/gwatts/root/root/lib/libRIO.so\n"
1: (3561) ->~"0x00007ffffdf285f0 0x00007ffffe119e61 Yes /home/gwatts/root/root/lib/libHist.so\n"
1: (3561) ->~"0x00007ffffdafc3f0 0x00007ffffdbabb1e Yes /usr/lib/x86_64-linux-gnu/libstdc++.so.6\n"
1: (3561) ->~"0x00007ffffd852ac0 0x00007ffffd86332d Yes /lib/x86_64-linux-gnu/libgcc_s.so.1\n"
1: (3561) ->~"0x00007ffffd4712d0 0x00007ffffd5e9c3c Yes /lib/x86_64-linux-gnu/libc.so.6\n"
1: (3561) ->~"0x00007ffffd0bba80 0x00007ffffd17a2f5 Yes /lib/x86_64-linux-gnu/libm.so.6\n"
1: (3561) ->~"0x00007ffffce91f90 0x00007ffffcea5640 Yes /lib/x86_64-linux-gnu/libz.so.1\n"
1: (3561) ->~"0x00007ffffcc80e50 0x00007ffffcc81bde Yes /lib/x86_64-linux-gnu/libdl.so.2\n"
1: (3562) ->~"0x00007ffffca65bb0 0x00007ffffca740f1 Yes /lib/x86_64-linux-gnu/libpthread.so.0\n"
1: (3562) ->~"0x00007ffffc824670 0x00007ffffc8437df Yes /home/gwatts/root/root/lib/libThread.so\n"
1: (3562) ->~"0x00007ffffc4df210 0x00007ffffc5bf85d Yes /home/gwatts/root/root/lib/libMatrix.so\n"
1: (3562) ->~"0x00007ffffc0dff70 0x00007ffffc1ac1ea Yes /home/gwatts/root/root/lib/libMathCore.so\n"
1: (3562) ->~"0x00007ffffbe64e80 0x00007ffffbe695d2 Yes /home/gwatts/root/root/lib/libImt.so\n"
1: (3563) ->~"0x00007ffffbc2daf0 0x00007ffffbc49eb8 Yes /usr/lib/x86_64-linux-gnu/libtbb.so.2\n"
1: (3563) ->1018^done
1: (3563) ->(gdb)
1: (3563) 1018: elapsed time 4
Loaded '/tmp/TSOBuild/libtest_stand_offline.so'. Symbols loaded.
Loaded '/home/gwatts/root/root/lib/libCore.so'. Symbols loaded.
Loaded '/home/gwatts/root/root/lib/libRIO.so'. Symbols loaded.
Loaded '/home/gwatts/root/root/lib/libHist.so'. Symbols loaded.
Loaded '/usr/lib/x86_64-linux-gnu/libstdc++.so.6'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libgcc_s.so.1'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libc.so.6'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libm.so.6'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libz.so.1'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libdl.so.2'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libpthread.so.0'. Symbols loaded.
Loaded '/home/gwatts/root/root/lib/libThread.so'. Symbols loaded.
Loaded '/home/gwatts/root/root/lib/libMatrix.so'. Symbols loaded.
Loaded '/home/gwatts/root/root/lib/libMathCore.so'. Symbols loaded.
Loaded '/home/gwatts/root/root/lib/libImt.so'. Symbols loaded.
Loaded '/usr/lib/x86_64-linux-gnu/libtbb.so.2'. Symbols loaded.
1: (3566) <--exec-continue
1: (3566) ->^running
1: (3566) ->*running,thread-id="all"
1: (3566) ->(gdb)
1: (3605) ->~"Stopped due to shared library event (no libraries added or removed)\n"
Stopped due to shared library event (no libraries added or removed)
1: (3605) ->*stopped,reason="solib-event",thread-id="1",stopped-threads="all",core="0"
1: (3605) <--exec-continue
1: (3605) ->^running
1: (3606) ->*running,thread-id="all"
1: (3606) ->(gdb)
1: (3614) ->=library-loaded,id="/lib/x86_64-linux-gnu/libnss_compat.so.2",target-name="/lib/x86_64-linux-gnu/libnss_compat.so.2",host-name="/lib/x86_64-linux-gnu/libnss_compat.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffba112a0",to="0x00007ffffba171c4"}]
1: (3642) ->~"Stopped due to shared library event:\n"
Stopped due to shared library event:
1: (3643) ->~" Inferior loaded /lib/x86_64-linux-gnu/libnss_compat.so.2\n"
Inferior loaded /lib/x86_64-linux-gnu/libnss_compat.so.2
1: (3643) ->*stopped,reason="solib-event",added=[library="/lib/x86_64-linux-gnu/libnss_compat.so.2"],thread-id="1",stopped-threads="all",core="0"
1: (3643) <-1019-interpreter-exec console "info sharedlibrary"
1: (3644) ->~"From To Syms Read Shared Object Library\n"
1: (3644) ->~"0x00007fffff400f10 0x00007fffff41fb20 Yes /lib64/ld-linux-x86-64.so.2\n"
1: (3644) ->~"0x00007fffff143750 0x00007fffff1b7593 Yes /tmp/TSOBuild/libtest_stand_offline.so\n"
1: (3644) ->~"0x00007ffffeae6370 0x00007ffffed2769e Yes /home/gwatts/root/root/lib/libCore.so\n"
1: (3644) ->~"0x00007ffffe47ef30 0x00007ffffe7073f0 Yes /home/gwatts/root/root/lib/libRIO.so\n"
1: (3645) ->~"0x00007ffffdf285f0 0x00007ffffe119e61 Yes /home/gwatts/root/root/lib/libHist.so\n"
1: (3645) ->~"0x00007ffffdafc3f0 0x00007ffffdbabb1e Yes /usr/lib/x86_64-linux-gnu/libstdc++.so.6\n"
1: (3645) ->~"0x00007ffffd852ac0 0x00007ffffd86332d Yes /lib/x86_64-linux-gnu/libgcc_s.so.1\n"
1: (3645) ->~"0x00007ffffd4712d0 0x00007ffffd5e9c3c Yes /lib/x86_64-linux-gnu/libc.so.6\n"
1: (3645) ->~"0x00007ffffd0bba80 0x00007ffffd17a2f5 Yes /lib/x86_64-linux-gnu/libm.so.6\n"
1: (3645) ->~"0x00007ffffce91f90 0x00007ffffcea5640 Yes /lib/x86_64-linux-gnu/libz.so.1\n"
1: (3646) ->~"0x00007ffffcc80e50 0x00007ffffcc81bde Yes /lib/x86_64-linux-gnu/libdl.so.2\n"
1: (3646) ->~"0x00007ffffca65bb0 0x00007ffffca740f1 Yes /lib/x86_64-linux-gnu/libpthread.so.0\n"
1: (3646) ->~"0x00007ffffc824670 0x00007ffffc8437df Yes /home/gwatts/root/root/lib/libThread.so\n"
1: (3646) ->~"0x00007ffffc4df210 0x00007ffffc5bf85d Yes /home/gwatts/root/root/lib/libMatrix.so\n"
1: (3646) ->~"0x00007ffffc0dff70 0x00007ffffc1ac1ea Yes /home/gwatts/root/root/lib/libMathCore.so\n"
1: (3646) ->~"0x00007ffffbe64e80 0x00007ffffbe695d2 Yes /home/gwatts/root/root/lib/libImt.so\n"
1: (3646) ->~"0x00007ffffbc2daf0 0x00007ffffbc49eb8 Yes /usr/lib/x86_64-linux-gnu/libtbb.so.2\n"
1: (3647) ->~"0x00007ffffba112a0 0x00007ffffba171c4 Yes /lib/x86_64-linux-gnu/libnss_compat.so.2\n"
1: (3647) ->1019^done
1: (3647) ->(gdb)
1: (3647) 1019: elapsed time 3
Loaded '/lib/x86_64-linux-gnu/libnss_compat.so.2'. Symbols loaded.
1: (3647) <--exec-continue
1: (3648) ->^running
1: (3648) ->*running,thread-id="all"
1: (3648) ->(gdb)
1: (3662) ->~"Stopped due to shared library event (no libraries added or removed)\n"
1: (3662) ->*stopped,reason="solib-event",thread-id="1",stopped-threads="all",core="0"
Stopped due to shared library event (no libraries added or removed)
1: (3662) <--exec-continue
1: (3663) ->^running
1: (3663) ->*running,thread-id="all"
1: (3663) ->(gdb)
1: (3689) ->=library-loaded,id="/lib/x86_64-linux-gnu/libnss_nis.so.2",target-name="/lib/x86_64-linux-gnu/libnss_nis.so.2",host-name="/lib/x86_64-linux-gnu/libnss_nis.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffb802070",to="0x00007ffffb8090d9"}]
1: (3689) ->=library-loaded,id="/lib/x86_64-linux-gnu/libnsl.so.1",target-name="/lib/x86_64-linux-gnu/libnsl.so.1",host-name="/lib/x86_64-linux-gnu/libnsl.so.1",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffb5e4090",to="0x00007ffffb5f1807"}]
1: (3690) ->=library-loaded,id="/lib/x86_64-linux-gnu/libnss_files.so.2",target-name="/lib/x86_64-linux-gnu/libnss_files.so.2",host-name="/lib/x86_64-linux-gnu/libnss_files.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffffb3c2350",to="0x00007ffffb3c8d7f"}]
1: (3789) ->~"Stopped due to shared library event:\n"
Stopped due to shared library event:
1: (3789) ->~" Inferior loaded /lib/x86_64-linux-gnu/libnss_nis.so.2\n"
Inferior loaded /lib/x86_64-linux-gnu/libnss_nis.so.2
1: (3789) ->~" /lib/x86_64-linux-gnu/libnsl.so.1\n"
/lib/x86_64-linux-gnu/libnsl.so.1
1: (3789) ->~" /lib/x86_64-linux-gnu/libnss_files.so.2\n"
/lib/x86_64-linux-gnu/libnss_files.so.2
1: (3789) ->*stopped,reason="solib-event",added=[library="/lib/x86_64-linux-gnu/libnss_nis.so.2",library="/lib/x86_64-linux-gnu/libnsl.so.1",library="/lib/x86_64-linux-gnu/libnss_files.so.2"],thread-id="1",stopped-threads="all",core="0"
1: (3790) <-1020-interpreter-exec console "info sharedlibrary"
1: (3790) ->~"From To Syms Read Shared Object Library\n"
1: (3790) ->~"0x00007fffff400f10 0x00007fffff41fb20 Yes /lib64/ld-linux-x86-64.so.2\n"
1: (3791) ->~"0x00007fffff143750 0x00007fffff1b7593 Yes /tmp/TSOBuild/libtest_stand_offline.so\n"
1: (3791) ->~"0x00007ffffeae6370 0x00007ffffed2769e Yes /home/gwatts/root/root/lib/libCore.so\n"
1: (3791) ->~"0x00007ffffe47ef30 0x00007ffffe7073f0 Yes /home/gwatts/root/root/lib/libRIO.so\n"
1: (3791) ->~"0x00007ffffdf285f0 0x00007ffffe119e61 Yes /home/gwatts/root/root/lib/libHist.so\n"
1: (3791) ->~"0x00007ffffdafc3f0 0x00007ffffdbabb1e Yes /usr/lib/x86_64-linux-gnu/libstdc++.so.6\n"
1: (3792) ->~"0x00007ffffd852ac0 0x00007ffffd86332d Yes /lib/x86_64-linux-gnu/libgcc_s.so.1\n"
1: (3792) ->~"0x00007ffffd4712d0 0x00007ffffd5e9c3c Yes /lib/x86_64-linux-gnu/libc.so.6\n"
1: (3792) ->~"0x00007ffffd0bba80 0x00007ffffd17a2f5 Yes /lib/x86_64-linux-gnu/libm.so.6\n"
1: (3792) ->~"0x00007ffffce91f90 0x00007ffffcea5640 Yes /lib/x86_64-linux-gnu/libz.so.1\n"
1: (3792) ->~"0x00007ffffcc80e50 0x00007ffffcc81bde Yes /lib/x86_64-linux-gnu/libdl.so.2\n"
1: (3792) ->~"0x00007ffffca65bb0 0x00007ffffca740f1 Yes /lib/x86_64-linux-gnu/libpthread.so.0\n"
1: (3793) ->~"0x00007ffffc824670 0x00007ffffc8437df Yes /home/gwatts/root/root/lib/libThread.so\n"
1: (3793) ->~"0x00007ffffc4df210 0x00007ffffc5bf85d Yes /home/gwatts/root/root/lib/libMatrix.so\n"
1: (3793) ->~"0x00007ffffc0dff70 0x00007ffffc1ac1ea Yes /home/gwatts/root/root/lib/libMathCore.so\n"
1: (3793) ->~"0x00007ffffbe64e80 0x00007ffffbe695d2 Yes /home/gwatts/root/root/lib/libImt.so\n"
1: (3793) ->~"0x00007ffffbc2daf0 0x00007ffffbc49eb8 Yes /usr/lib/x86_64-linux-gnu/libtbb.so.2\n"
1: (3793) ->~"0x00007ffffba112a0 0x00007ffffba171c4 Yes /lib/x86_64-linux-gnu/libnss_compat.so.2\n"
1: (3793) ->~"0x00007ffffb802070 0x00007ffffb8090d9 Yes /lib/x86_64-linux-gnu/libnss_nis.so.2\n"
1: (3793) ->~"0x00007ffffb5e4090 0x00007ffffb5f1807 Yes /lib/x86_64-linux-gnu/libnsl.so.1\n"
1: (3794) ->~"0x00007ffffb3c2350 0x00007ffffb3c8d7f Yes /lib/x86_64-linux-gnu/libnss_files.so.2\n"
1: (3794) ->1020^done
1: (3794) ->(gdb)
1: (3794) 1020: elapsed time 3
Loaded '/lib/x86_64-linux-gnu/libnss_nis.so.2'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libnsl.so.1'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libnss_files.so.2'. Symbols loaded.
1: (3795) <--exec-continue
1: (3795) ->^running
1: (3795) ->*running,thread-id="all"
1: (3795) ->(gdb)
1: (3869) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000080103bd",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="24",thread-groups=["i1"],times="1",original-location="main"}
1: (3904) ->~"\n"
1: (3904) ->~"Breakpoint 1, main (argc=4, argv=0x7ffffffee8f8) at /mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp:24\n"
Breakpoint 1, main (argc=4, argv=0x7ffffffee8f8) at /mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp:24
1: (3904) ->~"24\tint main(int argc, char* argv[]) {\n"
24 int main(int argc, char* argv[]) {
1: (3904) ->*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x00000000080103bd",func="main",args=[{name="argc",value="4"},{name="argv",value="0x7ffffffee8f8"}],file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="24"},thread-id="1",stopped-threads="all",core="0"
1: (3921) <-1021-thread-info
1: (3922) ->1021^done,threads=[{id="1",target-id="Thread 0x7fffff7a5b00 (LWP 14)",name="rpc_hits",frame={level="0",addr="0x00000000080103bd",func="main",args=[{name="argc",value="4"},{name="argv",value="0x7ffffffee8f8"}],file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="24"},state="stopped",core="0"}],current-thread-id="1"
1: (3923) ->(gdb)
1: (3924) 1021: elapsed time 3
1: (3936) <-1022-stack-list-frames 0 1000
1: (3937) ->1022^done,stack=[frame={level="0",addr="0x00000000080103bd",func="main",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="24"}]
1: (3937) ->(gdb)
1: (3937) 1022: elapsed time 1
1: (3948) <-1023-break-delete 1
1: (3948) ->1023^done
1: (3948) ->(gdb)
1: (3950) 1023: elapsed time 2
1: (3952) <--exec-continue
1: (3952) ->^running
1: (3952) ->*running,thread-id="all"
1: (3952) ->(gdb)
1: (3954) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000080103cc",func="main(int, char**)",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="25",thread-groups=["i1"],times="1",original-location="rpc_hits.cpp:25"}
1: (3954) ->~"\n"
1: (3954) ->~"Breakpoint 2, main (argc=4, argv=0x7ffffffee8f8) at /mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp:25\n"
Breakpoint 2, main (argc=4, argv=0x7ffffffee8f8) at /mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp:25
1: (3955) ->~"25\t auto h_nrpc = new TH1F(\"n_hits\", \"Number of RPC Hits\", 100, 10.0, -10.0);\n"
1: (3955) ->*stopped,reason="breakpoint-hit",disp="keep",bkptno="2",frame={addr="0x00000000080103cc",func="main",args=[{name="argc",value="4"},{name="argv",value="0x7ffffffee8f8"}],file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="25"},thread-id="1",stopped-threads="all",core="0"
25 auto h_nrpc = new TH1F("n_hits", "Number of RPC Hits", 100, 10.0, -10.0);
1: (3955) <-1024-stack-list-frames 0 1000
1: (3955) ->1024^done,stack=[frame={level="0",addr="0x00000000080103cc",func="main",file="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",fullname="/mnt/i/gwatts/Code/MATHLUSA/TestStandOffline/test/integration/rpc_hits.cpp",line="25"}]
1: (3956) ->(gdb)
1: (3956) 1024: elapsed time 0
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)
1: (4001) <-1025-stack-list-arguments 0 0 0
1: (4001) ->1025^done,stack-args=[frame={level="0",args=[name="argc",name="argv"]}]
1: (4001) ->(gdb)
1: (4003) 1025: elapsed time 1
1: (4008) <-1026-var-create - * "argc"
1: (4008) ->1026^done,name="var1",numchild="0",value="4",type="int",thread-id="1",has_more="0"
1: (4008) ->(gdb)
1: (4008) 1026: elapsed time 0
1: (4011) <-1027-var-delete var1
1: (4011) ->1027^done,ndeleted="1"
1: (4011) ->(gdb)
1: (4011) 1027: elapsed time 0
1: (4011) <-1028-var-create - * "argv"
1: (4012) ->1028^done,name="var2",numchild="1",value="0x7ffffffee8f8",type="char **",thread-id="1",has_more="0"
1: (4012) ->(gdb)
1: (4012) 1028: elapsed time 0
1: (4013) <-1029-var-delete var2
1: (4013) ->1029^done,ndeleted="1"
1: (4013) ->(gdb)
1: (4013) 1029: elapsed time 0
1: (4059) <-1030-stack-list-variables 0
1: (4060) ->1030^done,variables=[{name="argc",arg="1"},{name="argv",arg="1"},{name="h_nrpc"},{name="h_rpcid"},{name="n_rpcs"},{name="n_pads_per_rpc"},{name="n_strips_per_pad"},{name="rpc_maps"}]
1: (4060) ->(gdb)
1: (4061) 1030: elapsed time 2
1: (4069) <-1031-var-create - * "argc"
1: (4070) ->1031^done,name="var3",numchild="0",value="4",type="int",thread-id="1",has_more="0"
1: (4070) ->(gdb)
1: (4071) 1031: elapsed time 1
1: (4071) <-1032-var-create - * "argv"
1: (4072) ->1032^done,name="var4",numchild="1",value="0x7ffffffee8f8",type="char **",thread-id="1",has_more="0"
1: (4072) ->(gdb)
1: (4072) 1032: elapsed time 1
1: (4072) <-1033-var-create - * "h_nrpc"
1: (4105) ->1033^done,name="var5",numchild="0",value="0x8015f96 <std::_Construct<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+72>",type="TH1F *",thread-id="1",has_more="0"
1: (4105) ->(gdb)
1: (4105) 1033: elapsed time 33
1: (4106) <-1034-var-create - * "h_rpcid"
1: (4126) ->1034^done,name="var6",numchild="0",value="0x7ffffffee770",type="TH1F *",thread-id="1",has_more="0"
1: (4126) ->(gdb)
1: (4126) 1034: elapsed time 20
1: (4126) <-1035-var-create - * "n_rpcs"
1: (4127) ->1035^done,name="var7",numchild="0",value="0",type="const int",thread-id="1",has_more="0"
1: (4127) ->(gdb)
1: (4127) 1035: elapsed time 0
1: (4127) <-1036-var-create - * "n_pads_per_rpc"
1: (4128) ->1036^done,name="var8",numchild="0",value="-72256",type="const int",thread-id="1",has_more="0"
1: (4128) ->(gdb)
1: (4128) 1036: elapsed time 0
1: (4128) <-1037-var-create - * "n_strips_per_pad"
1: (4129) ->1037^done,name="var9",numchild="0",value="32767",type="const int",thread-id="1",has_more="0"
1: (4129) ->(gdb)
1: (4129) 1037: elapsed time 1
1: (4129) <-1038-var-create - * "rpc_maps"
1: (4233) ->1038^done,name="var10",numchild="0",value="{...}",type="std::map<int, TH1I*, std::less<int>, std::allocator<std::pair<int const, TH1I*> > >",thread-id="1",displayhint="map",dynamic="1",has_more="1"
1: (4233) ->(gdb)
1: (4233) 1038: elapsed time 104
One other thing to note - the env variables, like ROOTSYS, are never sent over. Perhaps you need to use the set environment command? http://sourceware.org/gdb/current/onlinedocs/gdb/Environment.html - for that and LD_LIBRARY_PATH (though I don't know how you get the current LD_LIBRARY_PATH and update it if need be).
@gordonwatts Ran into the same issue you did where it seems like the environment variables are not getting set. You can manually call the gdb set enviroment command that you referenced above in the setup to set this up:
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Bash on Windows Launch",
"type": "cppdbg",
"request": "launch",
"program": "build/some_app",
"args": ["-s some_string"],
"stopAtEntry": true,
"cwd": "/mnt/c/.../",
"environment": [{"name": "DISPLAY", "value":"0:0"}], // this does nothing
"additionalSOLibSearchPath": "/mnt/c/.../libs",
"externalConsole": false,
"pipeTransport": {
"debuggerPath": "/usr/bin/gdb",
"pipeProgram": "${env:windir}\\system32\\bash.exe",
"pipeArgs": ["-c"],
"pipeCwd": ""
},
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
},
{
"description": "Set environment variables",
"text": "set env DISPLAY=0:0",
"ignoreFailures": false
}
],
"sourceFileMap": {
"/mnt/c": "C:\\"
},
"logging": {
"engineLogging": true
}
},
]
}
@jclay @gordonwatts It looks like theres a bug where if you use pipeTransport and set environment variables, they aren't passed to gdb's set env command. I've created #2897 to track that.
I'm seeing similar issue with shared objects. When debugging and you see in next step that application is about to load dynamic library (=shared object), during that period of time "Debug" > "Step Over (F10)" does not work correctly - as debug session is terminated. This can happen in global your own global function call or actual function which performs that .so loading, like
iconv_t cd_to = iconv_open(fLocalCP, eptr->fSchema);
Visual studio debugger will show following error message (while stopping debug session):
Breakpoint 2, xercesc_3_1::IconvGNUTransService::IconvGNUTransService (this=0x84c7c48, manager=0x84c7970) at .../xerces/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp:450
450 iconv_t cd_to = iconv_open(fLocalCP, eptr->fSchema);
Stopped due to shared library event (no libraries added or removed)
Stopped due to shared library event:
Inferior loaded /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
Loaded '/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so'. Symbols loaded.
[Inferior 1 (process 31480) exited normally]
The thread 'testApplication' (0x7af8) has exited with code 0 (0x0).
The program '' has exited with code 0 (0x0).
Problem is only within a debugger, not application itself.
You can walk around this problem by setting breakpoint to
next statement which shall be executed, and execute "Debug" > "Continue"
then you can successfully bypass that problematic point.
Hey @pieandcakes, this issue might need further attention.
@rytisss, you can help us out by closing this issue if the question has been answered.
Issue is not solved, why to close ?
Discussion is inactive for more than 1 year. I not sure if it is worth keeping it open or start a new thread.
This is not a forum and not a discussion thread, issue raised as a problem does exists and needs to be fixed ?!
I am not working on this anymore (I cannot contribute to this particular issue solve), but if you insist, I am reopening
@tapika I moved your issue to a new issue: https://github.com/microsoft/vscode-cpptools/issues/6666
Most helpful comment
breaking in gdb on .so load events is controlled by the following command (0 to disable, 1 to enable)
set stop-on-solib-events 0
type the command in debugger command window , and it should disable library events. You can check the current behavior with
show stop-on-solib-events
in the command window.
Check your ~/.gdbinit file. Check commands within. Also check if your distribution vendor Ubuntu enabled by any means when building gdb a global init file, and what commands they put in it, if they did. Ubunto doesnt have very sane defaults