dlopen() crashing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

dlopen() crashing

Schwab,Wilhelm K
Hello all,

I am trying to use dlsym() which means I have to call dlopen(), and it is crashing with messages such as

     Inconsistency detected by ld.so: dl-open.c: 643: _dl_open:
      Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!

I am calling it as follows:

dlOpen:aString mode:int
    < cdecl: void* 'dlopen' ( char* long ) >  
    ^ self externalCallFailed.

With zero for the mode parameter, it runs but returns an null handle; with 2 (now) or 10 (now|global), it crashes.

Any ideas or working examples?

Bill


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: dlopen() crashing

Schwab,Wilhelm K
~:(  Make that global = 16r100; it makes no difference in the outcome though.



-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Schwab,Wilhelm K
Sent: Thursday, April 01, 2010 9:54 AM
To: [hidden email]; [hidden email]
Subject: [Pharo-project] dlopen() crashing

Hello all,

I am trying to use dlsym() which means I have to call dlopen(), and it is crashing with messages such as

     Inconsistency detected by ld.so: dl-open.c: 643: _dl_open:
      Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!

I am calling it as follows:

dlOpen:aString mode:int
    < cdecl: void* 'dlopen' ( char* long ) >  
    ^ self externalCallFailed.

With zero for the mode parameter, it runs but returns an null handle; with 2 (now) or 10 (now|global), it crashes.

Any ideas or working examples?

Bill


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: dlopen() crashing

Schwab,Wilhelm K
In reply to this post by Schwab,Wilhelm K
Bert,

What do you mean by "declare the mode parameter" - did I not do that via the argument named int?

Bill


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project