Skip to content

[macOS] invalid character 'j' after object key:value pair" (happens with gosocialcheck) #60

@AkihiroSuda

Description

@AkihiroSuda
$ gomodjail run --go-mod=go.mod gosocialcheck run ./...                                                                   
time=2025-05-26T19:35:14.041+09:00 level=WARN msg="module mismatch" a="" b=github.com/AkihiroSuda/gosocialcheck                                     
time=2025-05-26T19:35:14.041+09:00 level=WARN msg="module mismatch" a="" b=github.com/AkihiroSuda/gosocialcheck                                     
time=2025-05-26T19:35:14.364+09:00 level=ERROR msg="failed to handle connection" error="failed to unmarshal \"{\\\"pid\\\":81544,\\\"exe\\\":\\\"/op
t/homebrew/bin/go\\\",\\\"syscall\\\":\\\"open\\\",\\\"stack\\\":[{\\\"file\\\":\\\"/Users/suda/.local/lib/libgomodjail_hook_darwin.dylib\\\",\\\"sy
mbol\\\":\\\"handle_syscall\\\"},{\\\"file\\\":\\\"/Users/suda/.local/lib/libgomodjail_hook_darwin.dylib\\\",\\\"symbol\\\":\\\"gmj_open\\\"},{\\\"f
ile\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"runtime.syscall.abi0\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go
/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"runtime.asmcgocall.abi0\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"s
ymbol\\\":\\\"syscall.syscall\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"syscall.Open\\\"},{\\\"fil
e\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"os.openFileNolog\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.
3/libexec/bin/go\\\",\\\"symbol\\\":\\\"os.OpenFile\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/
go/internal/lockedfile.openFile\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/go/internal/lockedfi
le.OpenFile\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/go/internal/lockedfile.Read\\\"},{\\\"fi
le\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/go/internal/modfetch.checkMod\\\"},{\\\"file\\\":\\\"/opt/homebr
ew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/go/internal/modfetch.Download.func1\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.2
4.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/internal/par.(*ErrCache[go.shape.struct { Path string; Version string \\\"json:\\\\\\\",omitempty\\\\\
\\"\\\" },go.shape.string]).Do.func1\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/internal/par.(*
Cache[go.shape.struct { Path string; Version string \\\"json:\\\\\\\",omitempty\\\\\\\"\\\" },go.shape.struct { cmd/internal/par.v go.shape.string; 
cmd/internal/par.err error }]).Do\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/internal/par.(*Err
Cache[go.shape.struct { Path string; Version string \\\"json:\\\\\\\",omitempty\\\\\\\"\\\" },go.shape.string]).Do\\\"},{\\\"file\\\":\\\"/opt/homeb
rew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/go/internal/modfetch.Download\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/l
ibexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/go/internal/modload.fetch\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symb
ol\\\":\\\"cmd/go/internal/modload.importFromModules\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd
/go/internal/modload.(*loader).load\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/go/internal/modl
oad.(*loader).pkg.func1.1\\\"},{\\\"file\\\":\\\"/opt/homebrew/Cellar/go/1.24.3/libexec/bin/go\\\",\\\"symbol\\\":\\\"cmd/internal/par.(*Queue).Add.
func1\\\"},{}]}\": invalid character 'j' after object key:value pair"
[...]

macOS: 15.5
Go: 1.24.3
gomodjail: a0f65b7
gosocialcheck: AkihiroSuda/gosocialcheck@746641d


\\\"symbol\\\":\\\"cmd/internal/par.(*Err Cache[go.shape.struct { Path string; Version string \\\"json:\\\\\\\",omitempty\\\\\\\"\\\" },go.shape.string]).Do\\\" looks weird?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions