realm / realm/SwiftLint

Bus error

Open
#3,988 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug sourcekit-issue
Dominant language
Swift
Stars
19.7k
Forks
2.3k
Avg merge
1d 1h
Merged PRs (30d)
11

Description

New Issue Checklist
Describe the bug

swiftlint lint exits with a bus error when run on my machine, similar to #2391. It happens to me reliably.

See some investigation in the comments below.

Complete output when running SwiftLint, including the stack trace and command used
$ git clone https://github.com/signalapp/Signal-iOS.git
# ...

$ cd Signal-iOS

$ swiftlint lint
# ...lints some files...
# zsh: bus error  swiftlint lint

This also happens with swiftlint lint --quiet and swiftlint lint --no-cache.

The example output is lengthy, but nondeterministic (as far as I can tell).

There isn't an obvious stack trace. (EDIT: See below for a stack trace.)

Environment
  • SwiftLint version: 0.47.1
  • Installation method used: Homebrew
  • Paste your configuration file: public here
  • Are you using nested configurations? No
  • Which Xcode version are you using (check xcodebuild -version)? Xcode 13.4, Build version 13F17a

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing swiftlint lint, swiftlint lint --quiet, and swiftlint lint --no-cache on the linked Signal-iOS setup with SwiftLint 0.47.1 and Xcode 13.4. Read the investigation and stack trace in the issue comments to identify the failure point. Done means linting completes without a bus error for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.