Strange regex panic cause by StripTags #50
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tslocum/cview#50
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Here is the error as it appeared in the terminal. Unfortunately it was truncated and I can't scroll up and get the rest of it, as the panic messed up my terminal settings. It'd be nice if cview caught the errors, reset the terminal, and then panicked, but that's another thing.
Here's a picture if that's better:
Sorry for the poor formatting, it's another terminal side effect. Basically the issue comes from
StripTags
. The stack trace starts atTabbedPanels.AddTab
because that's what my code is doing, but I believe that's irrelevant. Strangely, the panic is coming from inside the stdlib'sregexp
package. The specific line causing the issue inStripTags
is line 111:The furthest back I could trace the panic is from line 634 on
regexp.go
, which calls an anonymous function provided on lines 675-680 onregexp.go
. Likely the call tore.expand
in the function (line 679) is causing the panic.Any ideas?
changed the description