Closed gaoxingwang closed 1 year ago
PTAL @orgcandman
How did you generate this error? I assume that if an issue occurs during weak_readline_init then the rl_handle variable is reinitialized to NULL. Were you able to reproduce?
I think there is room for cleanup, but I'm curious if this is cleanup or if you observed a real issue here (which would point to some kind of race condition).
How did you generate this error? I assume that if an issue occurs during weak_readline_init then the rl_handle variable is reinitialized to NULL. Were you able to reproduce?
Yes, on my linux virtual machine, this problem is a constant occurrence. Function weak_readline_init fails here,and the rl_handle variable is NULL.
hist_handle = dlopen("libhistory.so", RTLD_LAZY | RTLD_GLOBAL);
if (!hist_handle)
return;
Thanks!
fix https://github.com/intel/openlldp/issues/87