dlopen卡住问题无限循环问题 [英] dlopen stuck issue infinite loop problem
问题描述
我在我的文件中使用dlopen。我想知道共享对象的依赖关系是什么以及如何继续。在运行时加载共享对象它不会被加载它将无限循环。如何退出。
printf(正在加载.so file \ n);
handle = dlopen(filenaem,RTLD_NOW | RTLD_GLOBAL);
printf(Loaded\ n); -----------------------------------> ;这是没有得到执行上面的dlopen进入无限循环如何退出该循环
I am using a dlopen in my file. I want to know what are the dependencies for shared object and how to proceed.while loading the shared object in runtime it doesnt get loaded it is going to infinite loop .how to exit from that.
printf("Loading .so file\n");
handle = dlopen(filenaem,RTLD_NOW|RTLD_GLOBAL);
printf("Loaded\n");----------------------------------->this is not getting executed the above dlopen goes to infinite loop how to exit from that loop
推荐答案
我认为它不会像你描述的那样发生。不是它进入无限循环,但你的观察是不正确的。请参阅: http://linux.die.net/man/3/dlopen [ ^ ]。
-SA
I don't think it happens as you described. Not that it goes to an infinite loop, but your observation is not correct. Please see: http://linux.die.net/man/3/dlopen[^].
—SA
这篇关于dlopen卡住问题无限循环问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!