[linux] fix crash dump

Part of #2489