[GH-ISSUE #641] Panic: toFirebaseMessage #475

Closed
opened 2026-05-07 00:24:35 +02:00 by BreizhHardware · 1 comment

Originally created by @binwiederhier on GitHub (Feb 28, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/641

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

goroutine 86 [running]:
heckel.io/ntfy/user.(*Manager).Authorize(0x0, 0x1?, {0xc00033fb85, 0x11}, 0x1)
        /home/runner/work/ntfy/ntfy/user/manager.go:748 +0xcd
heckel.io/ntfy/server.toFirebaseMessage(0xc000726900, {0x24db810?, 0x0?})
        /home/runner/work/ntfy/ntfy/server/server_firebase.go:143
 +0xc7
heckel.io/ntfy/server.(*firebaseClient).Send(0xc000830e40, 0xc00050a030?, 0xfb5f81?)
        /home/runner/work/ntfy/ntfy/server/server_firebase.go:44 +0x67

heckel.io/ntfy/server.(*Server).sendToFirebase(0xc0004ed3f0, 0x0?, 0x0?)
        /home/runner/work/ntfy/ntfy/server/server.go:
670 +0x129
created by heckel.io/ntfy/server.(*Server).handlePublishWithoutResponse
        /home/runner/work/ntfy/ntfy/server/server.go:625 +0x10fb
base-url: "https://ntfy.mydomain.com"
cache-file: "/var/cache/ntfy/cache.db"
attachment-cache-dir: "/var/cache/ntfy/attachments"
cache-duration: "48h"
firebase-key-file: "/etc/ntfy/ntfy-123456789ABCDEF.json"

behind-proxy: true
listen-http: ":2586"

Reported via Reddit: https://www.reddit.com/r/ntfy/comments/11drjvv/segmentation_violation/

Originally created by @binwiederhier on GitHub (Feb 28, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/641 ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x84aa2d] goroutine 86 [running]: heckel.io/ntfy/user.(*Manager).Authorize(0x0, 0x1?, {0xc00033fb85, 0x11}, 0x1) /home/runner/work/ntfy/ntfy/user/manager.go:748 +0xcd heckel.io/ntfy/server.toFirebaseMessage(0xc000726900, {0x24db810?, 0x0?}) /home/runner/work/ntfy/ntfy/server/server_firebase.go:143 +0xc7 heckel.io/ntfy/server.(*firebaseClient).Send(0xc000830e40, 0xc00050a030?, 0xfb5f81?) /home/runner/work/ntfy/ntfy/server/server_firebase.go:44 +0x67 heckel.io/ntfy/server.(*Server).sendToFirebase(0xc0004ed3f0, 0x0?, 0x0?) /home/runner/work/ntfy/ntfy/server/server.go: 670 +0x129 created by heckel.io/ntfy/server.(*Server).handlePublishWithoutResponse /home/runner/work/ntfy/ntfy/server/server.go:625 +0x10fb ``` ```yml base-url: "https://ntfy.mydomain.com" cache-file: "/var/cache/ntfy/cache.db" attachment-cache-dir: "/var/cache/ntfy/attachments" cache-duration: "48h" firebase-key-file: "/etc/ntfy/ntfy-123456789ABCDEF.json" behind-proxy: true listen-http: ":2586" ``` Reported via Reddit: https://www.reddit.com/r/ntfy/comments/11drjvv/segmentation_violation/
BreizhHardware 2026-05-07 00:24:35 +02:00
Author
Owner

@binwiederhier commented on GitHub (Feb 28, 2023):

Fixed in github.com/binwiederhier/ntfy@8ca08ce868

<!-- gh-comment-id:1447503677 --> @binwiederhier commented on GitHub (Feb 28, 2023): Fixed in https://github.com/binwiederhier/ntfy/commit/8ca08ce868c41853337db9fd72dd079c753adf50
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#475
No description provided.