From ba1628190f79e7ff4704b680ead91b1c8666c155 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Wed, 3 Jun 2020 20:45:04 +0900 Subject: [PATCH] Do not unload agent symbol file If symbol file is unload before terminating program, segfault can occur when access to static variable. (ex. mutex_da_info_list) Change-Id: I9e6c61f2d45264682755d5717d85943e5b5c44a3 --- packaging/download-provider.spec | 2 +- provider/download-provider-plugin-download-agent.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packaging/download-provider.spec b/packaging/download-provider.spec index 337a6ca..6e7bb30 100755 --- a/packaging/download-provider.spec +++ b/packaging/download-provider.spec @@ -1,6 +1,6 @@ Name: download-provider Summary: Download the contents in background -Version: 2.1.120 +Version: 2.1.121 Release: 0 Group: Development/Libraries License: Apache-2.0 diff --git a/provider/download-provider-plugin-download-agent.c b/provider/download-provider-plugin-download-agent.c index 225b31f..3ff0f95 100755 --- a/provider/download-provider-plugin-download-agent.c +++ b/provider/download-provider-plugin-download-agent.c @@ -712,8 +712,9 @@ void dp_deinit_agent() if (download_agent_deinit != NULL) (*download_agent_deinit)(); - dlclose(g_da_handle); - g_da_handle = NULL; + // Do not unload a symbol file here. + //dlclose(g_da_handle); + //g_da_handle = NULL; } } -- 2.7.4