From 4d2b349380458fba4bdca8dd918ac71faf910c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Thu, 10 Oct 2013 12:10:29 +0200 Subject: [PATCH] os: don't close the Rm_connection in ldso At this point we cannot close the connection anymore because all mappings are gone and the needed stack is invalid. This is not a problem since process will be discarded anyway. Fixes #909. --- os/src/lib/ldso/file.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/src/lib/ldso/file.cc b/os/src/lib/ldso/file.cc index 45837e267..895fbbdb2 100644 --- a/os/src/lib/ldso/file.cc +++ b/os/src/lib/ldso/file.cc @@ -41,6 +41,8 @@ namespace Genode { Rm_area(addr_t base) : Rm_connection(0, RESERVATION), _range(env()->heap()) { + on_destruction(KEEP_OPEN); + _base = (addr_t) env()->rm_session()->attach_at(dataspace(), base); _range.add_range(base, RESERVATION); }