You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The clear_history() call in input.c:188 segfaults when msim is compiled on mac.
I found out that this is caused because instead of GNU Readline, macOS is distributed with BSD editline, which provides a mock implementation if the readline API.
There is one crucial difference: the editline mock does not call the using_history() (link) function and thus does not initialize the history state.
Adding the using_history() call to the initializer solves the issue.
An alternative solution would be to manually link msim with readline instead of relying on the system library.
The text was updated successfully, but these errors were encountered:
The
clear_history()
call in input.c:188 segfaults when msim is compiled on mac.I found out that this is caused because instead of GNU Readline, macOS is distributed with BSD editline, which provides a mock implementation if the readline API.
There is one crucial difference: the editline mock does not call the
using_history()
(link) function and thus does not initialize the history state.Adding the
using_history()
call to the initializer solves the issue.An alternative solution would be to manually link msim with readline instead of relying on the system library.
The text was updated successfully, but these errors were encountered: