mattn / mattn/go-sqlite3

DW_FORM_strx with no .debug_str_offsets section

Open
#1,269 24 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
9.2k
Forks
1.2k
Avg merge
19m
Merged PRs (30d)
4

Description

The issue has appeared when I updated to Mac OS 15.0 Beta (24A5309e)
I use GoLand 2024.2, Go 1.22.6, go-sqlite3 v1.14.22

Just add a simple import to an empty project:

import (
	_ "github.com/mattn/go-sqlite3"
)

After launching I get this error:

GOROOT=/Users/username/go/go1.23rc2 #gosetup
GOPATH=/Users/username/go #gosetup
/Users/username/go/go1.23rc2/bin/go build -o /Users/username/Library/Caches/JetBrains/GoLand2024.2/tmp/GoLand/___go_build_LiveKitBE -gcflags all=-N -l LiveKitBE #gosetup
/Applications/GoLand.app/Contents/plugins/go-plugin/lib/dlv/macarm/dlv --listen=127.0.0.1:53060 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /Users/username/Library/Caches/JetBrains/GoLand2024.2/tmp/GoLand/___go_build_LiveKitBE --
API server listening at: 127.0.0.1:53060
debugserver-@(#)PROGRAM:LLDB  PROJECT:lldb-1600.0.30.5
 for arm64.
Got a connection, launched process /Users/username/Library/Caches/JetBrains/GoLand2024.2/tmp/GoLand/___go_build_LiveKitBE (pid = 7993).
2024-08-08T15:40:59+07:00 error layer=debugger error loading binary "/Users/username/Library/Caches/JetBrains/GoLand2024.2/tmp/GoLand/___go_build_LiveKitBE": error reading debug_info: decoding dwarf section info at offset 0x5fe92: DW_FORM_strx with no .debug_str_offsets section
Exiting.
could not launch process: error reading debug_info: decoding dwarf section info at offset 0x5fe92: DW_FORM_strx with no .debug_str_offsets section

It seems like it's something with binary compatibility

Contributor guide

No contributing guide indexed for this repository

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 the minimal Go project with the go-sqlite3 import on macOS 15.0 Beta using Go 1.23rc2 and the shown GoLand debugger command. Investigate the DWARF loading failure involving DW_FORM_strx and the missing .debug_str_offsets section; done means the debugger can launch the built binary without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, go, sqlite
Domain
databases, devtools
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.