Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 119
    • Issues 119
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #525

Closed
Open
Created Oct 12, 2000 by Peter Bortas@zinoOwner

Loading dynamic modules with unresolved symbols exits pike

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=525

Reported by David Hedbor, Idonex / Real Networks david@hedbor.org

When loading a .so file which has unresolved symbols, Pike exits. This is due to how RTLD_LAZY works in Linux. The problem is fixed in Pike 7.1

Here's a patch:

Index: dynamic_load.c
===================================================================
RCS file: /cvs/Pike/7.0/src/dynamic_load.c,v
retrieving revision 1.39
diff -u -r1.39 dynamic_load.c
--- dynamic_load.c      2000/02/17 18:58:16     1.39
+++ dynamic_load.c      2000/10/11 22:53:17
@@ -255,8 +255,7 @@
   module_name = sp[-args].u.string->str;

   /* Removing RTLD_GLOBAL breaks some PiGTK themes - Hubbe */
-  module=dlopen(module_name,
-                (d_flag ? RTLD_NOW : RTLD_LAZY) |RTLD_GLOBAL  );
+  module=dlopen(module_name, RTLD_NOW |RTLD_GLOBAL);

if(!module) {

Assignee
Assign to
Time tracking