Showing results for 
Show  only  | Search instead for 
Did you mean: 
Flexera beginner

free(): invalid pointer error with FlexLM calling dlopen

Dear all,

I develop a Flex-enabled application which used to run perfectly at my client's site, until a few days ago.
For some reasons, the application now crashes during FlexLM calls.

I use FlexLM, on RedHat 6.
My client runs the application on a cluster.

The backtrace looks like this:

*** glibc detected *** my_app: free(): invalid pointer: 0x00002b90a1b6b788 ***
======= Backtrace: =========

I tried to track down the problem using Valgrind, which gave the following information:

==31984== Invalid free() / delete / delete[] / realloc()
==31984== at 0x4A07430: free (vg_replace_malloc.c:446)
==31984== by 0x317F405FB4: open_path (in /lib64/
==31984== by 0x317F408814: _dl_map_object (in /lib64/
==31984== by 0x317F412EF4: dl_open_worker (in /lib64/
==31984== by 0x317F40E5E5: _dl_catch_error (in /lib64/
==31984== by 0x317F412999: _dl_open (in /lib64/
==31984== by 0x317F800F65: dlopen_doit (in /lib64/
==31984== by 0x317F40E5E5: _dl_catch_error (in /lib64/
==31984== by 0x317F80129B: _dlerror_run (in /lib64/
==31984== by 0x317F800EE0: dlopen@@GLIBC_2.2.5 (in /lib64/
==31984== by 0x5C50F4: Ox5126e281158e0801 (in my_app)
==31984== by 0x5C53E5: Ox5126e45247908c3d (in my_app)
==31984== Address 0x317f622f28 is not stack'd, malloc'd or (recently) free'd

At this point, I am stucked because I cannot know what Ox5126e281158e0801 stands for.
But I am pretty confident that it is a FlexLM API function, since it is obfuscated.

Any idea how I could debug this further?
Maybe there is a way to get the FlexLM functions human-readable in backtraces?



0 Kudos
2 Replies

Re: free(): invalid pointer error with FlexLM calling dlopen

Hello Janahan, May i advise you to create a support case on this and let an specialist look into this with further details? It would help if we can have a hands on the sample application and exact steps that lead to this observation. Regards, Abhay
(Anything expressed here is my own view and not necessarily that of my employer, Flexera. If my reply answers a question you have raised, please click "ACCEPT AS SOLUTION".)
0 Kudos
Flexera beginner

Re: free(): invalid pointer error with FlexLM calling dlopen

Thank you for your quick answer.

I will file a new support case right now.



0 Kudos