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

compiler crash: 'Interface type: some Weird same-type requirements?' #68767

Open
tayloraswift opened this issue Sep 26, 2023 · 2 comments
Open
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@tayloraswift
Copy link
Member

tayloraswift commented Sep 26, 2023

swift symbolgraph-extract seems to be tripping this assertion in lib/AST/GenericSignature.cpp when compiling the package swift-certificates.

Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?

...

Interface type: some PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /usr/bin/swift-symbolgraph-extract -minimum-access-level internal -module-name _CertificateInternals -target x86_64-unknown-linux-gnu -output-dir test -I .build/debug
1.      Swift version 5.9 (swift-5.9-RELEASE)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/bin/swift-symbolgraph-extract(+0x6022e13)[0x55d802be3e13]
/usr/bin/swift-symbolgraph-extract(+0x6020d3e)[0x55d802be1d3e]
/usr/bin/swift-symbolgraph-extract(+0x602318f)[0x55d802be418f]
/lib64/libpthread.so.0(+0x118e0)[0x7fa1cf9c78e0]
/usr/bin/swift-symbolgraph-extract(+0x2361fbd)[0x55d7fef22fbd]
/usr/bin/swift-symbolgraph-extract(+0x2363edb)[0x55d7fef24edb]
/usr/bin/swift-symbolgraph-extract(+0x2364764)[0x55d7fef25764]
/usr/bin/swift-symbolgraph-extract(+0x2310dcc)[0x55d7feed1dcc]
/usr/bin/swift-symbolgraph-extract(+0x2312758)[0x55d7feed3758]
/usr/bin/swift-symbolgraph-extract(+0x230fb4a)[0x55d7feed0b4a]
/usr/bin/swift-symbolgraph-extract(+0x2361fde)[0x55d7fef22fde]
/usr/bin/swift-symbolgraph-extract(+0x2364764)[0x55d7fef25764]
/usr/bin/swift-symbolgraph-extract(+0x230dced)[0x55d7feececed]
/usr/bin/swift-symbolgraph-extract(+0x226cc55)[0x55d7fee2dc55]
/usr/bin/swift-symbolgraph-extract(+0x226d82f)[0x55d7fee2e82f]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]
/usr/bin/swift-symbolgraph-extract(+0x20f45b9)[0x55d7fecb55b9]
/usr/bin/swift-symbolgraph-extract(+0x20d74d3)[0x55d7fec984d3]
/usr/bin/swift-symbolgraph-extract(+0x20d744b)[0x55d7fec9844b]
/usr/bin/swift-symbolgraph-extract(+0x226dc2c)[0x55d7fee2ec2c]
/usr/bin/swift-symbolgraph-extract(+0x226db3b)[0x55d7fee2eb3b]
/usr/bin/swift-symbolgraph-extract(+0x2354cf5)[0x55d7fef15cf5]

to reproduce, you can clone any recent edition of swift-certificates, and dump the symbol graph for _CertificateInternals:

$ git clone https://github.com/apple/swift-certificates
$ cd swift-certificates
$ git checkout 1.0.1
$ swift build
$ mkdir test
$ swift symbolgraph-extract -minimum-access-level internal -module-name _CertificateInternals -target x86_64-unknown-linux-gnu -output-dir test -I .build/debug
$ swift --version
Swift version 5.9 (swift-5.9-RELEASE)
Target: x86_64-unknown-linux-gnu
@tayloraswift tayloraswift added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Sep 26, 2023
@tayloraswift
Copy link
Member Author

this also affects swift-nio via its _NIODataStructures module as of 2.60.0.

@slavapestov
Copy link
Contributor

That assertion is gone because the code got rewritten, but maybe the bug is still there. However, I get a different error when I follow your instructions:

slava@Mac swift-certificates % swift symbolgraph-extract -minimum-access-level internal -module-name _CertificateInternals -target x86_64-unknown-linux-gnu -output-dir test -I .build/debug
<unknown>:0: warning: libc not found for 'x86_64-unknown-linux-gnu'; C stdlib may be unavailable
/Users/slava/foo/swift-certificates/.build/debug/Snippets-tool.build/module.modulemap:1:8: error: redefinition of module 'Snippets'
module Snippets {
       ^
/Users/slava/foo/swift-certificates/.build/debug/Snippets.build/module.modulemap:1:8: note: previously defined here
module Snippets {
       ^
/Users/slava/foo/swift-certificates/.build/debug/SymbolKit-tool.build/module.modulemap:1:8: error: redefinition of module 'SymbolKit'
module SymbolKit {
       ^
/Users/slava/foo/swift-certificates/.build/debug/SymbolKit.build/module.modulemap:1:8: note: previously defined here
module SymbolKit {
       ^
/Users/slava/foo/swift-certificates/.build/debug/_CertificateInternals.build/module.modulemap:1:8: error: module '_CertificateInternals' requires feature 'objc'
module _CertificateInternals {
       ^
<unknown>:0: error: could not build C module '_CertificateInternals'
Couldn't load module '_CertificateInternals' in the current SDK and search paths.
Current visible modules:
_Builtin_float
_Builtin_intrinsics
_Builtin_inttypes
_Builtin_iso646
_Builtin_limits
_Builtin_stdalign
_Builtin_stdarg
_Builtin_stdatomic
_Builtin_stdbool
_Builtin_stddef
_Builtin_stddef_wint_t
_Builtin_stdint
_Builtin_stdnoreturn
_Builtin_tgmath
_Builtin_unwind
_InternalSwiftScan
ptrauth
slava@Mac swift-certificates % swift --version
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx15.0

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. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

2 participants