Skip tests for dl_unload_file() when built with -DPERL_GLOBAL_STRUCT_PRIVATE
authorNicholas Clark <nick@ccl4.org>
Wed, 21 Aug 2013 19:05:51 +0000 (21:05 +0200)
committerNicholas Clark <nick@ccl4.org>
Wed, 21 Aug 2013 19:30:30 +0000 (21:30 +0200)
commitdafba99f1ce222991bb019d66fa313489fa6c808
tree387952135c0b348608695bd27db137d1acd10d31
parentf04c3210e36fc0946f77bbe2f1ac3a354f875bcc
Skip tests for dl_unload_file() when built with -DPERL_GLOBAL_STRUCT_PRIVATE

Building with -DPERL_GLOBAL_STRUCT_PRIVATE uses alternative implementations
of Perl_my_cxt_init() and Perl_my_cxt_index() which store the pointer to the
extension name. For a dynamically loaded shared object this is a pointer to
memory which will be released if that shared object is unloaded, meaning that
any *other* module which calls Perl_my_cxt_index() will likely attempt a read
of unmapped memory.
ext/DynaLoader/t/DynaLoader.t