Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-384] NSURLComponents.queryItems crashes on Linux #4369

swift-ci opened this issue Dec 25, 2015 · 1 comment

[SR-384] NSURLComponents.queryItems crashes on Linux #4369

swift-ci opened this issue Dec 25, 2015 · 1 comment


Copy link

Previous ID SR-384
Radar None
Original Reporter swizzlr (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 2
Component/s Foundation
Labels Bug, CoreFoundation, Linux
Assignee saiHema (JIRA)
Priority Medium

md5: f5137ab4273f6549d83d160c846ab96a

Issue Description:

To reproduce in LLDB:

import Foundation
let c = NSURLComponents(string: "")
// Crash

* thread #​1: tid = 28, 0x00007ffff4059330`__HALT, name = 'repl_swift', stop reason = signal SIGILL: illegal instruction operand
  * frame #​0: 0x00007ffff4059330`__HALT
    frame #​1: 0x00007ffff40688c4`CFBasicHashAddValue + 228
    frame #​2: 0x00007ffff407383e`CFDictionaryCreate + 286
    frame #​3: 0x00007ffff411665d`_CFURLComponentsCopyQueryItems + 781
    frame #&#8203;4: 0x00007ffff4328184`Foundation.NSURLComponents.queryItems.getter : Swift.Optional<Swift.Array<Foundation.NSURLQueryItem>> + 116
    frame #&#8203;5: 0x00007ffff7ff4ae8 $__lldb_expr19
    frame #&#8203;6: 0x0000000000400830 repl_swift`__gmon_start__ + 16

I expect this to return an Optional array of two NSURLQueryItems.

I have no idea what's going wrong here, but I'm tempted to rewrite the copy routine in Swift.

Copy link
Contributor Author

swift-ci commented Mar 2, 2017

Comment by sai Hema k (JIRA)

#719 Resolves the issue

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant