From: Henning Schild Date: Fri, 16 Feb 2018 14:13:30 +0100 Message-Id: Subject: [Xenomai] [PATCH 0/5] dlopen()/dlclose() bugfix with testcase List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org In order to fix a segfault in a dlopen()/dlclose()/dlopen() sequence i wrote a testcase to reproduce the issue. That testcase also covers a few other dlopen-related things. The testcase is intetgrated into smokey. Because a smokey-test is already a xenomai-application the actual test-program gets launched from the testcase. And that program is a non-xenomai application which gains xenomai-functionality with dlopen(). The series also contains preparation and fixes along the way (posix-fork). Henning Schild (5): smokey/posix-fork: fix binary path for configure --with-testdir smokey/posix-fork: actually wait for the process to exit smokey/posix-fork: move fork/exec functionality into libsmokey smokey/dlopen: introduce a new testcase boilerplate/setup: introduce destructors for __setup_call configure.ac | 2 + include/boilerplate/setup.h | 7 +++ include/smokey/smokey.h | 8 +++ lib/boilerplate/setup.c | 6 +++ lib/smokey/helpers.c | 31 +++++++++++ testsuite/smokey/Makefile.am | 4 ++ testsuite/smokey/dlopen/Makefile.am | 63 ++++++++++++++++++++++ testsuite/smokey/dlopen/dlopen.c | 44 ++++++++++++++++ testsuite/smokey/dlopen/dlopentest.c | 88 +++++++++++++++++++++++++++++++ testsuite/smokey/dlopen/libalchemy-test.c | 65 +++++++++++++++++++++++ testsuite/smokey/dlopen/libposix-test.c | 32 +++++++++++ testsuite/smokey/posix-fork/Makefile.am | 5 +- testsuite/smokey/posix-fork/posix-fork.c | 33 ++---------- 13 files changed, 358 insertions(+), 30 deletions(-) create mode 100644 testsuite/smokey/dlopen/Makefile.am create mode 100644 testsuite/smokey/dlopen/dlopen.c create mode 100644 testsuite/smokey/dlopen/dlopentest.c create mode 100644 testsuite/smokey/dlopen/libalchemy-test.c create mode 100644 testsuite/smokey/dlopen/libposix-test.c -- 2.16.1