You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debugger fails under Linux if file size limits are in effect #13768
C/C++ extension: ms-vscode.cpptools-1.23.5-linux-x64 and later
OS and version of remote machine (if applicable):
GDB / LLDB version: gdb-8.2-20.el8.x86_64
Bug Summary and Steps to Reproduce
Bug Summary:
LIke many sites, we set a default file size ulimit to prevent users' runaway processes from consuming unlimited disk resources. When attempting to debug a C program with any file size limit less than 2TiB in place (cf. "grep 'Max file size' /proc/$$/limits"), the debugger crashes.
Steps to reproduce:
Set a reasonable file size limit (e.g., "ulimit -f 25165824" from bash)
Launch "code" from the shell prompt
Open a .c file, build it, and set a breakpoint
Select Run -> Start debugging
The debugger controls will appear briefly and disappear; the OpenDebugAD7 process will crash with SIGXFSZ.
Debugger Configurations
Default settings.
Debugger Logs
No messages in Debug Console or Output windows.
Other Extensions
No response
Additional Information
Attaching a system call tracer reveals that the process is attempting to truncate the file returned from a memfd_create("doublemapper") call to 2TB:
Setting "C_Cpp_Runner.debuggerPath": "lldb" in settings.json may work around the issue (OpenDebugAD7 does not appear to run in this configuration), but this is not the default configuration.
Activity
github-actions commentedon Oct 11, 2025
Thank you for reporting this issue. We’ll let you know if we need more information to investigate it. Additionally, if you're working with GDB/LLDB, please note that the code is open source at https://github.com/microsoft/MIEngine/wiki/Contributing-Code . Your contributions are always welcome and appreciated.