[PR #998] [MERGED] Update dropdown.go to compile to lib.so #1103

Closed
opened 2026-03-04 01:09:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/998
Author: @SeRj-ThuramS
Created: 6/17/2024
Status: Merged
Merged: 6/22/2024
Merged by: @rivo

Base: masterHead: patch-1


📝 Commits (1)

  • 1a723d1 Update dropdown.go to compile to lib.so

📊 Changes

1 file changed (+2 additions, -4 deletions)

View changed files

📝 dropdown.go (+2 -4)

📄 Description

Fixing a bug for compiling into a library

2024.06.17 10:13:00 go(build)(error): # /tmp/go-build4195759871/b113/librtl-tview.so
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x51de66]

goroutine 1 [running]:
cmd/link/internal/loader.(*Loader).SymSize(0x1?, 0x0?)
cmd/link/internal/loader/loader.go:815 +0x46
cmd/link/internal/ld.(*pclntab).generatePctab.func1(0x0)
cmd/link/internal/ld/pcln.go:467 +0x56
cmd/link/internal/ld.(*pclntab).generatePctab(0xc000c46f40, 0xc000124200, {0xc001724000, 0x4f3, 0x1?})
cmd/link/internal/ld/pcln.go:490 +0x39f
cmd/link/internal/ld.(*Link).pclntab(0xc000124200, {0xc001720000?, 0xc0000126e0?, 0xf?})
cmd/link/internal/ld/pcln.go:804 +0x1ad
cmd/link/internal/ld.Main(_, {0x20, 0x20, 0x1, 0x7, 0x10, 0x0, {0xc000012549, 0x1, 0x1}, ...})
cmd/link/internal/ld/main.go:412 +0x175c
main.main()
cmd/link/main.go:72 +0xdfb


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rivo/tview/pull/998 **Author:** [@SeRj-ThuramS](https://github.com/SeRj-ThuramS) **Created:** 6/17/2024 **Status:** ✅ Merged **Merged:** 6/22/2024 **Merged by:** [@rivo](https://github.com/rivo) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`1a723d1`](https://github.com/rivo/tview/commit/1a723d123afbc6a8755acd3cea73a55553f00bb7) Update dropdown.go to compile to lib.so ### 📊 Changes **1 file changed** (+2 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `dropdown.go` (+2 -4) </details> ### 📄 Description Fixing a bug for compiling into a library 2024.06.17 10:13:00 go(build)(error): # /tmp/go-build4195759871/b113/librtl-tview.so panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x51de66] goroutine 1 [running]: cmd/link/internal/loader.(*Loader).SymSize(0x1?, 0x0?) cmd/link/internal/loader/loader.go:815 +0x46 cmd/link/internal/ld.(*pclntab).generatePctab.func1(0x0) cmd/link/internal/ld/pcln.go:467 +0x56 cmd/link/internal/ld.(*pclntab).generatePctab(0xc000c46f40, 0xc000124200, {0xc001724000, 0x4f3, 0x1?}) cmd/link/internal/ld/pcln.go:490 +0x39f cmd/link/internal/ld.(*Link).pclntab(0xc000124200, {0xc001720000?, 0xc0000126e0?, 0xf?}) cmd/link/internal/ld/pcln.go:804 +0x1ad cmd/link/internal/ld.Main(_, {0x20, 0x20, 0x1, 0x7, 0x10, 0x0, {0xc000012549, 0x1, 0x1}, ...}) cmd/link/internal/ld/main.go:412 +0x175c main.main() cmd/link/main.go:72 +0xdfb --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:09:27 +03:00
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/tview#1103
No description provided.