Skip to content

dlopen()/dlclose() bugfix with testcase

Henning Schild xenomai 1 version Applied

Status from this message: Merged, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5smokey/posix-fork: fix binary path for configure --with-testdirtestsuite/smokey/posix-fork/Makefile.am testsuite/smokey/posix-fork/posix-fork.c+4 -30 replies
2/5smokey/posix-fork: actually wait for the process to exittestsuite/smokey/posix-fork/posix-fork.c+16 -70 replies
3/5smokey/posix-fork: move fork/exec functionality into libsmokeyinclude/smokey/smokey.h lib/smokey/helpers.c testsuite/smokey/posix-fork/posix-fork.c+44 -370 replies
4/5smokey/dlopen: introduce a new testcaseconfigure.ac testsuite/smokey/Makefile.am testsuite/smokey/dlopen/Makefile.am +4 more+298 -00 replies
5/5boilerplate/setup: introduce destructors for __setup_callinclude/boilerplate/setup.h lib/boilerplate/setup.c+13 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Xenomai] [PATCH 0/5] dlopen()/dlclose() bugfix with testcase

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
Signature · 1 line
2.16.1