Bug 272291 - devel/rust-analyzer: mark as LTO_UNSAFE
Summary: devel/rust-analyzer: mark as LTO_UNSAFE
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Tagato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-30 11:03 UTC by Hiroki Tagato
Modified: 2023-07-01 05:46 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (rust)


Attachments
Patch (492 bytes, patch)
2023-06-30 11:03 UTC, Hiroki Tagato
tagattie: maintainer-approval? (rust)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroki Tagato freebsd_committer freebsd_triage 2023-06-30 11:03:13 UTC
Created attachment 243080 [details]
Patch

devel/rust-analyzer: mark as LTO_UNSAFE

rust-analyzer won't run (repeatedly terminated with signal 6) when called from VSCode's rust-analyzer extension.

Error messages from rust-analyzer extension are as follows:
[Info  - 17:39:30] Connection to server got closed. Server will restart.
[Info  - 17:39:31] Connection to server got closed. Server will restart.
[Info  - 17:39:31] Connection to server got closed. Server will restart.
[Info  - 17:39:32] Connection to server got closed. Server will restart.
[Error - 17:39:32] The Rust Analyzer Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Turning off LTO appears to work around the issue.
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2023-06-30 11:25:17 UTC
Approved by: mikael
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-07-01 05:46:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=93aa38dc68ed607ebee1ebe257926a14b3f7357f

commit 93aa38dc68ed607ebee1ebe257926a14b3f7357f
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2023-07-01 05:43:07 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2023-07-01 05:45:06 +0000

    devel/rust-analyzer: mark as LTO_UNSAFE

    rust-analyzer won't run (repeatedly terminated with signal 6) when
    called from VSCode's rust-analyzer extension.

    Error messages from rust-analyzer extension are as follows:
    [Info  - 17:39:30] Connection to server got closed. Server will restart.
    [Info  - 17:39:31] Connection to server got closed. Server will restart.
    [Info  - 17:39:31] Connection to server got closed. Server will restart.
    [Info  - 17:39:32] Connection to server got closed. Server will restart.
    [Error - 17:39:32] The Rust Analyzer Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

    Turning off LTO appears to work around the issue.

    PR:             272291
    Approved by:    mikael

 devel/rust-analyzer/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 3 Hiroki Tagato freebsd_committer freebsd_triage 2023-07-01 05:46:46 UTC
Committed, Thanks!