Do not unload agent symbol file
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 3 Jun 2020 11:45:04 +0000 (20:45 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 3 Jun 2020 11:45:08 +0000 (20:45 +0900)
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
provider/download-provider-plugin-download-agent.c

index 337a6ca..6e7bb30 100755 (executable)
@@ -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
index 225b31f..3ff0f95 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;
        }
 }