bugCERTI - Bugs: bug #34291, Unresolved DLL dependencies can...

 
 

bug #34291: Unresolved DLL dependencies can cause RTIA

Submitter:  Jan-Patrick Osterloh <jpo>
Submitted:  Wed 14 Sep 2011 11:27:51 AM UTC
   
 
Category:  CERTI Severity:  * 3 - Normal
Item Group:  Software error Status:  Need Info
Privacy:  Public Assigned to:  erk
Open/Closed:  Open Release:  * CVS
Reproducibility:  None Fixed Release:  * Unknown
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 09 Sep 2013 01:22:45 PM UTC, comment #2: 

Hi Eric,

I have to admit that I'm not sure about this, too, because it is too old :-)

But from what I remember, I indeed had problems that the forking federate may have not properly configured environement variables, and thus may not find the RTIA dependencies. A static executable RTIA would fix this issue indeed.

I have no idea, how to compile RTIA statically, as I'm no cmake expert (in my hand written makefiles, I would just compile the dependent .o files into the executable).

I think you can close that ticket, because I don't have the problem anymore.

Best
JPO

Jan-Patrick Osterloh <jpo>
Wed 04 Sep 2013 01:07:22 PM UTC, comment #1: 

Hi Jan-Patrick,

I'm not sure I get it.
Since RTIA is forked by the federate if the DLL path was altered
before the RTIA fork then RTIA may get the wrong duplicate of some
DLL?

You would like us to build a static version of RTIA
in order to avoid the DLL mismatch?

If RTIA was a static executable you won't face this issue right?

Would you be willing to propose a patch for that?

Eric NOULARD <erk>
Group administrator
Wed 14 Sep 2011 11:27:51 AM UTC, original submission:  

If the federate alters the search path of the program, it may happen that a wrong DLL is loaded, which causes the RTIA to fail at startup (dies prematurely). There are just a few Dependencies of RTIA, see attached analysis file (Windows; Dependency Walker). Solution could be to statically link to some of the dependencies (i.e. libxml2).

HINT: There may be an difference between the libraries found in a static dependency analysis with Dependency Walker, and a online Profile by the Dependency Walker, in case the Program changes the search path (LoadLibraryEx) during runtime. This happens e.g. in X-Plane.

Jan-Patrick Osterloh <jpo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #23973:  rtia_wo_fnames.txt added by jpo (138KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by erk (Posted a comment)
  • -email is unavailable- added by jpo (Submitted the item)
  • -email is unavailable- added by jpo
  •  

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-04 erk StatusNone Need Info
        Assigned toNone erk
    2011-09-14 jpo Attached File- Added rtia_wo_fnames.txt, #23973
        Carbon-Copy- Added jpo

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code