Do not unload agent symbol file 72/238872/1
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 3 Jun 2020 11:45:04 +0000 (20:45 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 20 Jul 2020 04:23:08 +0000 (13:23 +0900)
If symbol file is unload before terminating program, segfault can occur
when access to static variable. (ex. mutex_da_info_list)

Change-Id: I08d78f3f4a8b5ecb8cd68671d07c1e23ce57fc57

provider/download-provider-plugin-download-agent.c

index d61f63e..f72902a 100755 (executable)
@@ -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;
        }
 }