r-lib / ansistrings

Manipulation of ANSI colored strings
Other
9 stars 5 forks source link

Segmentation fault #17

Closed krlmlr closed 6 years ago

krlmlr commented 6 years ago

with "footer" part of tibbles. Reprex:

$ R -q -e 'ansistrings::ansi_to_html("\033[38;5;246m \033[3m\033[38;5;246m\033[38;5;246m\033[23m")'
> ansistrings::ansi_to_html("\033[38;5;246m \033[3m\033[38;5;246m\033[38;5;246m\033[23m")

 *** caught segfault ***
address 0x5900000000, cause 'memory not mapped'

Traceback:
 1: .Call("ansistrings_make_ansi_map1", str, re$.match$start[[1]],     re$.match$end[[1]], re$.match$match[[1]], re$start$start[[1]],   ...
 2: make_ansi_map1(str)
 3: FUN(X[[i]], ...)
 4: vapply(text, ansi_to_html1, character(1), USE.NAMES = FALSE)
 5: ansistrings::ansi_to_html("\033[38;5;246m \033[3m\033[38;5;246m\033[38;5;246m\033[23m")
An irrecoverable exception occurred. R is aborting now ...
Segmentation fault

(Couldn't use reprex for this, but that seems hard to fix.)

gaborcsardi commented 6 years ago

This is essentially #14