Issue 129963
Summary lldb trims long command line on Windows
Labels
Assignees
Reporter compnerd
    When launching a program with a large argument list, the inferior is started with a truncated command line. This seems to not occur with other debuggers (e.g. `windbgx`).

```
lldb -- "S:\Program Files\Swift\Toolchains\0.0.0+Asserts\usr\bin\swift-frontend.exe" -frontend -S -emit-ir S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\AttributedString\AttributedStringCOWTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\AttributedString\AttributedStringConstrainingBehaviorTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\AttributedString\AttributedStringDiscontiguousTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\AttributedString\AttributedStringTestSupport.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\AttributedString\AttributedStringTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\BufferViewTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\BuiltInUnicodeScalarSetTest.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\DataIOTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\DataTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\DateIntervalTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\DateTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\DecimalTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\ErrorTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\FileManager\FileManagerPlayground.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\FileManager\FileManagerTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\Formatting\BinaryInteger+FormatStyleTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\Formatting\ISO8601FormatStyleFormattingTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\Formatting\ISO8601FormatStyleParsingTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\GregorianCalendarRecurrenceRuleTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\GregorianCalendarTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\IndexPathTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\JSONEncoderTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\LockedStateTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\PredicateCodableTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\PredicateConversionTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\PredicateTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\ProcessInfoTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\PropertyListEncoderTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\ResourceUtilities.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\SortComparatorTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\StringTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\URLTests.swift S:\SourceCache\swift-project\swift-foundation\Tests\FoundationEssentialsTests\UUIDTests.swift S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\DerivedSources\resource_bundle_accessor.swift -supplementary-output-file-map C:\Users\abdulras\AppData\Local\Temp\TemporaryDirectory.yyJhul\supplementaryOutputs-1 -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk "S:\Program Files\Swift\Platforms\Windows.platform\Developer\SDKs\Windows.sdk" -I S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\Modules -I "S:\Program Files\Swift\Platforms\Windows.platform\Developer\Library\XCTest-0.0.0\usr\lib\swift\windows" -I "S:\Program Files\Swift\Platforms\Windows.platform\Developer\Library\XCTest-0.0.0\usr\lib\swift\windows\x86_64" -I "S:\Program Files\Swift\Platforms\Windows.platform\Developer\Library\Testing-0.0.0\usr\lib\swift\windows" -color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\ModuleCache2 -static -swift-version 5 -O -D SWIFT_PACKAGE -enable-cross-import-overlays -load-plugin-executable "S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationMacros-tool.exe#FoundationMacros" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 0.1:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 0.1:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 0.1:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 0.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 0.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 0.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 0.3:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 0.3:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 0.3:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 0.4:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 0.4:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 0.4:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 6.0.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 6.0.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 6.0.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 6.1:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 6.1:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 6.1:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 6.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 6.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 6.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature StrictConcurrency -enable-upcoming-feature InferSendableFromCaptures -empty-abi-descriptor -resource-dir "S:\Program Files\Swift\Toolchains\0.0.0+Asserts\usr\lib\swift" -file-compilation-dir S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests -Xcc -fmodule-map-file=S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\_FoundationICU.build\module.modulemap -Xcc -I -Xcc S:\SourceCache\swift-project\swift-foundation-icu\icuSources\include -Xcc -fmodule-map-file=S:\SourceCache\swift-project\swift-foundation\Sources\_FoundationCShims\include\module.modulemap -Xcc -I -Xcc S:\SourceCache\swift-project\swift-foundation\Sources\_FoundationCShims\include -Xcc -fmodule-map-file=S:\SourceCache\swift-project\swift-syntax\Sources\_SwiftSyntaxCShims\include\module.modulemap -Xcc -I -Xcc S:\SourceCache\swift-project\swift-syntax\Sources\_SwiftSyntaxCShims\include -Xcc -D_MT -Xcc -D_DLL -Xcc -Xclang -Xcc --dependent-lib=msvcrt -Xcc -gdwarf -Xcc "-IS:\Program Files\Swift\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift" -module-name FoundationEssentialsTests -package-name swift_foundation -in-process-plugin-server-path "S:\Program Files\Swift\Toolchains\0.0.0+Asserts\usr\bin\SwiftInProcPluginServer.dll" -plugin-path "S:\Program Files\Swift\Toolchains\0.0.0+Asserts\usr\bin" -plugin-path "S:\Program Files\Swift\Toolchains\0.0.0+Asserts\usr\local\bin" -enable-default-cmo -parse-as-library -num-threads 32 -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\AttributedStringCOWTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\AttributedStringConstrainingBehaviorTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\AttributedStringDiscontiguousTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\AttributedStringTestSupport.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\AttributedStringTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\BufferViewTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\BuiltInUnicodeScalarSetTest.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\DataIOTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\DataTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\DateIntervalTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\DateTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\DecimalTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\ErrorTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\FileManagerPlayground.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\FileManagerTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\BinaryInteger+FormatStyleTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\ISO8601FormatStyleFormattingTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\ISO8601FormatStyleParsingTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\GregorianCalendarRecurrenceRuleTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\GregorianCalendarTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\IndexPathTests.swift.o -o JSONTests.ll -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\LockedStateTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\PredicateCodableTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\PredicateConversionTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\PredicateTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\ProcessInfoTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\PropertyListEncoderTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\ResourceUtilities.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\SortComparatorTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\StringTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\URLTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\UUIDTests.swift.o -o S:\b\x86_64-unknown-windows-msvc\CoreFoundationTests\x86_64-unknown-windows-msvc\release\FoundationEssentialsTests.build\resource_bundle_accessor.swift.o
```

Interestingly enough, the implicit `settings set -- target.run-args ...` seems to contain the full command line.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to