vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello all, Some of my applications are dumping core when I am trying to dlopen certain libraries by specifying the following flags together and specifying the -brtl option to build the applications:- Combination 1: RTLD_LAZY | RTLD_GLOBAL Combination 2: RTLD_NOW | RTLD_GLOBAL And when I remove the RTLD_GLOBAL flag, keeping the -brtl option, the application works fine. Is there a reason for such a behaviour? Any help will be grateful. Thanks in advance, Anunay |
| |||
| "Anunay" <anunaygupta@gmail.com> writes: > Some of my applications are dumping core when I am trying to dlopen Look for a bug *in the application* (or a common library all of the "crashing" applications share). > Combination 1: RTLD_LAZY | RTLD_GLOBAL > Combination 2: RTLD_NOW | RTLD_GLOBAL There is nothing wrong with the above combinations. > And when I remove the RTLD_GLOBAL flag, keeping the -brtl option, the > application works fine. Coincidence, most likely. Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |
| |||
| "Anunay" <anunaygupta@gmail.com> writes: > can u please relate to the combination of -brtl and Please spell words completely when posting to usenet. > RTLD_GLOBAL flag? Should we use this flag with -brtl? AFAIK, '-brtl' and RTLD_GLOBAL are orthogonal. You may also wish to read this: http://www.ibm.com/developerworks/es...dfs/aix_ll.pdf Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |
| ||||
| Paul Pluzhnikov wrote: > "Anunay" <anunaygupta@gmail.com> writes: > >>can u please relate to the combination of -brtl and > > Please spell words completely when posting to usenet. And grammar counts, too :-) >>RTLD_GLOBAL flag? Should we use this flag with -brtl? > > AFAIK, '-brtl' and RTLD_GLOBAL are orthogonal. > > You may also wish to read this: > http://www.ibm.com/developerworks/es...dfs/aix_ll.pdf The RTLD_GLOBAL flag specifies whether a loaded module can be used to resolve _subsequent_ loads. If you have duplicate symbol definitions and loading locally helps, then your symbols are not compatible. Aside from being bad design, removing the GLOBAL flag is fine. And FWIW, RTLD_LAZY and RLTD_NOW are currently equivalent. |