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-13338] Cannot use empty array syntax for options for PropertyListSerialization when running as script #55778

Open
swift-ci opened this issue Aug 3, 2020 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Aug 3, 2020

Previous ID SR-13338
Radar None
Original Reporter Dale (JIRA User)
Type Bug
Environment

Mac OS X: 10.15.4 (19E266)

Swift:

Apple Swift version 5.3 (swiftlang-1200.0.22.4 clang-1200.0.25.1)
Target: x86_64-apple-darwin19.4.0
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: b1bace599a2789d91ac4155f5e684668

duplicates:

  • SR-13336 [Beta 2 Regression] JIT session error: Failed to materialize symbols

Issue Description:

If you try and run the following code as a script you will get an error:

#!/usr/bin/swift
import Foundation
let _ = try? PropertyListSerialization.propertyList(from: Data(), options: [], format: nil)

However, if you change the `options` to `PropertyListSerialization.ReadOptions(rawValue: 0)` it will work as expected.

If you build the code and run the binary, this does not happen.

The error is:

JIT session error: No symbol covering address 0x0000000000000ce9
Failed to materialize symbols: { (0x7fbd29c4ae70, { _main, _got.$sSQMp, _$sSo31NSPropertyListMutabilityOptionsVMF, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCMc, _$sSo31NSPropertyListMutabilityOptionsVMB, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACPyxqd__ncSTRd__7ElementQyd__AERtzlufCTW, _$sS2us17FixedWidthIntegersWL, __swift_FORCE_LOAD_$_swiftCoreFoundation_$_main, _$sSo31NSPropertyListMutabilityOptionsVABs9OptionSetSCWL, __swift_FORCE_LOAD_$_swiftFoundation_$_main, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP8isSubset2ofSbx_tFTW, __swift_FORCE_LOAD_$_swiftObjectiveC_$_main, _$sSo31NSPropertyListMutabilityOptionsVs9OptionSetSCMc, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP7isEmptySbvgTW, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP10isDisjoint4withSbx_tFTW, _got.$sSY8rawValuexSg03RawB0Qz_tcfCTq, _$sSo31NSPropertyListMutabilityOptionsVML, __swift_FORCE_LOAD_$_swiftDarwin_$_main, _got.$s8RawValueSYTl, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP10isSuperset2ofSbx_tFTW, _$sSo31NSPropertyListMutabilityOptionsVMf, _symbolic Su, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP11subtractingyxxFTW, _associated conformance So31NSPropertyListMutabilityOptionsVs9OptionSetSCSY, _$sSo31NSPropertyListMutabilityOptionsVABSYSCWL, _$sSo31NSPropertyListMutabilityOptionsVs25ExpressibleByArrayLiteralSCMc, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP16formIntersectionyyxFTW, _symbolic _____ So31NSPropertyListMutabilityOptionsV, _got.$ss25ExpressibleByArrayLiteralP05arrayD0x0cD7ElementQzd_tcfCTq, _symbolic $sSY, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP23formSymmetricDifferenceyyxnFTW, _got.$ss10SetAlgebraP7isEmptySbvgTq, _got.$ss10SetAlgebraP8subtractyyxFTq, _$s10Foundation4DataV15_RepresentationOWOe, _associated conformance So31NSPropertyListMutabilityOptionsVs9OptionSetSCs0F7Algebra, _got.$ss10SetAlgebraPyxqd__ncSTRd__7ElementQyd__ACRtzlufCTq, _got.$s19ArrayLiteralElements013ExpressibleByaB0PTl, _got.$ss25ExpressibleByArrayLiteralMp, _$sSo31NSPropertyListMutabilityOptionsVABs25ExpressibleByArrayLiteralSCWL, _got.$ss10SetAlgebraP10isDisjoint4withSbx_tFTq, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP6insertySb8inserted_7ElementQz17memberAfterInserttAHnFTW, _associated conformance So31NSPropertyListMutabilityOptionsVs10SetAlgebraSCSQ, _got.$ss10SetAlgebraP10isSuperset2ofSbx_tFTq, _$sSo31NSPropertyListMutabilityOptionsVs25ExpressibleByArrayLiteralSCMA, _got.$sSYMp, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP6removey7ElementQzSgAGFTW, _associated conformance So31NSPropertyListMutabilityOptionsVs10SetAlgebraSCs25ExpressibleByArrayLiteral, _symbolic $ss25ExpressibleByArrayLiteralP, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP6update4with7ElementQzSgAHn_tFTW, _$sSo31NSPropertyListMutabilityOptionsVSQSCMc, _got.$ss10SetAlgebraP8isSubset2ofSbx_tFTq, _$sypSgWOh, _got.$sSQ2eeoiySbx_xtFZTq, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP9formUnionyyxnFTW, _$sSo31NSPropertyListMutabilityOptionsVABs9OptionSetSCWl, _got.$ss10SetAlgebraP6update4with7ElementQzSgAFn_tFTq, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP12intersectionyxxFTW, _$sS2us17FixedWidthIntegersWl, _got.$ss10SetAlgebraP6removey7ElementQzSgAEFTq, _got.$ss10SetAlgebraP23formSymmetricDifferenceyyxnFTq, _got.$ss10SetAlgebraP11subtractingyxxFTq, _$sSo31NSPropertyListMutabilityOptionsVABs10SetAlgebraSCWL, _$sSoMXM, _got.$ss10SetAlgebraP16formIntersectionyyxFTq, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP8containsySb7ElementQzFTW, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP5unionyxxnFTW, _got.$ss10SetAlgebraP19symmetricDifferenceyxxnFTq, _$sSo31NSPropertyListMutabilityOptionsV8rawValueABSu_tcfC, _$sSo31NSPropertyListMutabilityOptionsVSYSCSY8rawValuexSg03RawF0Qz_tcfCTW, _got.$ss10SetAlgebraP12intersectionyxxFTq, _$sSo31NSPropertyListMutabilityOptionsV8rawValueSuvg, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP8subtractyyxFTW, _$sSo31NSPropertyListMutabilityOptionsVSYSCSY8rawValue03RawF0QzvgTW, _got.$ss10SetAlgebraP6insertySb8inserted_7ElementQz17memberAfterInserttAFnFTq, _$sSo31NSPropertyListMutabilityOptionsVSQSCSQ2eeoiySbx_xtFZTW, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACP19symmetricDifferenceyxxnFTW, _got.$ss10SetAlgebraP9formUnionyyxnFTq, _$sSo31NSPropertyListMutabilityOptionsVABSQSCWL, _symbolic $ss9OptionSetP, _$sSo31NSPropertyListMutabilityOptionsVABs10SetAlgebraSCWl, _$sSo31NSPropertyListMutabilityOptionsVs9OptionSetSCMA, _$sSo31NSPropertyListMutabilityOptionsVMn, ___swift_destroy_boxed_opaque_existential_0, _$sSo31NSPropertyListMutabilityOptionsVSYSCMc, _got.$sSY8rawValue03RawB0QzvgTq, _got.$ss9OptionSetMp, _got.$ss10SetAlgebraPs25ExpressibleByArrayLiteralTb, _got.$ss10SetAlgebraPSQTb, _$sSo31NSPropertyListMutabilityOptionsVs25ExpressibleByArrayLiteralSCsACP05arrayH0x0gH7ElementQzd_tcfCTW, _$sSo31NSPropertyListMutabilityOptionsVs9OptionSetSCsACP8rawValuex03RawH0Qz_tcfCTW, _got.$ss10SetAlgebraP5unionyxxnFTq, _$sSo31NSPropertyListMutabilityOptionsVABSYSCWl, _got.$ss9OptionSetPSYTb, _got.$s7Elements10SetAlgebraPTl, _got.$ss9OptionSetPs0B7AlgebraTb, _got.$ss10SetAlgebraP8containsySb7ElementQzFTq, _got.$ss10SetAlgebraPxycfCTq, _$sSo31NSPropertyListMutabilityOptionsVMa, _got.$ss9OptionSetP8rawValuex03RawD0Qz_tcfCTq, __swift_FORCE_LOAD_$_swiftDispatch_$_main, _$sSo31NSPropertyListMutabilityOptionsVSYSCMA, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCMA, _$sSo31NSPropertyListMutabilityOptionsVs10SetAlgebraSCsACPxycfCTW, _symbolic $ss10SetAlgebraP, __swift_FORCE_LOAD_$_swiftCoreGraphics_$_main, _$sSo31NSPropertyListMutabilityOptionsVABs25ExpressibleByArrayLiteralSCWl, __swift_FORCE_LOAD_$_swiftIOKit_$_main, _$s10FoundationMXM, _$sSo31NSPropertyListMutabilityOptionsVABSQSCWl, __swift_FORCE_LOAD_$_swiftXPC_$_main, _got.$ss10SetAlgebraMp }) }

There are no crash logs or entries in system.log at the same time.

@swift-ci
Copy link
Collaborator Author

swift-ci commented Aug 3, 2020

Comment by Dale Myers (JIRA)

These issues appear identical (but have a different manifestation)

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

1 participant