Skip to content

crashing with some frequency in generative-ai-go/genai SendMessage() #52

@smemsh

Description

@smemsh

Hello, I have had this happen a few times now, sometimes with really simple interactions, sometimes after a while with a complex interaction. It looks like it's in library code so not sure if there's anything that can be done except maybe bump the libraries?

[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xac27aa]
goroutine 1 [running]:

github.com/google/generative-ai-go/genai.(*ChatSession).SendMessage(0xc00038f680, {0x12f1a50, 0x1a52460}, {0xc000b85ad8, 0x1, 0xceab62?})
    /home/scott/go/pkg/mod/github.com/google/generative-ai-go@v0.19.0/genai/chat.go:45 +0x26a
github.com/reugn/gemini-cli/gemini.(*ChatSession).SendMessage(...)
    /home/scott/go/pkg/mod/github.com/reugn/gemini-cli@v0.4.0/gemini/chat_session.go:47
github.com/reugn/gemini-cli/internal/handler.(*GeminiQuery).Handle(0xc000303680, {0xc0002a5080, 0x28e})
    /home/scott/go/pkg/mod/github.com/reugn/gemini-cli@v0.4.0/internal/handler/gemini_query.go:43 +0x105
github.com/reugn/gemini-cli/internal/chat.(*Chat).Start(0xc0000fc660)
    /home/scott/go/pkg/mod/github.com/reugn/gemini-cli@v0.4.0/internal/chat/chat.go:72 +0xe2
main.run.func1(0xc000228d00?, {0xf8de3e?, 0x7?, 0xf88dc1?})
    /home/scott/go/pkg/mod/github.com/reugn/gemini-cli@v0.4.0/cmd/gemini/main.go:60 +0x1b2
github.com/spf13/cobra.(*Command).execute(0xc0004be908, {0xc000140010, 0x4, 0x4})
    /home/scott/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985 +0xaaa
github.com/spf13/cobra.(*Command).ExecuteC(0xc0004be908)
    /home/scott/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
    /home/scott/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
main.run()
    /home/scott/go/pkg/mod/github.com/reugn/gemini-cli@v0.4.0/cmd/gemini/main.go:65 +0x2c5
main.main()
    /home/scott/go/pkg/mod/github.com/reugn/gemini-cli@v0.4.0/cmd/gemini/main.go:82 +0x13

it looks like all my safety thresholds are 1 for categories 7-10, if that matters (is that more or less safe? what's the max?). I also use a SystemPrompt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions