Skip to content

panic: runtime error: invalid memory address or nil pointer dereference #1

@m040601

Description

@m040601

Thanks for the work on this cli tool. Very, very usefull.

I assume you are ABGEO/takalandze also the maintainer of the Archlinux
PKGBUILD, https://aur.archlinux.org/packages/mailtm-bin. That's what I used to install.

I installed it, and add it seemed to be working fine for a couple of minutes.

I could create an account.
I got ~/.mailtm/config correctly populated.
I could login.
I could list the first message received.

I got some small error trying to see a single message.

$ mailtm message get XXX0e24587ca787f920XXXXX

Error: json: cannot unmarshal object into Go struct field Message.verifications of type []string

But it seemed to work.

I then send more emails (from other places ) to this temporary email address.

Then a couple of minutes later, I cant use mailtm anymore,

$ mailtm

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x83d1a5]

goroutine 1 [running]:
github.com/abgeo/mailtm/pkg/update.(*Manager).CheckUpdate(0xc000159e90)
        /home/runner/work/mailtm/mailtm/pkg/update/update_manager.go:38 +0xc5
main.main()
        /home/runner/work/mailtm/mailtm/cmd/mailtm.go:31 +0x186

A couple of minutes later it seems to work again.

Could it be some API limitation ?

Can you confirm that this version of the tool is working properly on your computer ?

Could it be that the tool needs an update or refresh ? The last release was 2 years ago.

$ gh thoseleases https://github.com/ABGEO/mailtm

TITLE   TYPE    TAG NAME  PUBLISHED
v0.3.1  Latest  v0.3.1    about 2 years ago
v0.3.0          v0.3.0    about 2 years ago
v0.2.0          v0.2.0    about 2 years ago
v0.1.0          v0.1.0    about 2 years ago

Thanks in advance.

PS: It uses the file ~/.mailtm/config to store the token.

Could you change it to use the more standard one, ~/.config/mailtm/config ?

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