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

 
 

bug #34291: Unresolved DLL dependencies can cause RTIA

Submitted by:  Jan-Patrick Osterloh <jpo>
Submitted on:  Wed 14 Sep 2011 11:27:51 AM UTC  
 
Category: CERTISeverity: 3 - Normal
Item Group: Software errorStatus: Need Info
Privacy: PublicAssigned to: Eric NOULARD <erk>
Open/Closed: OpenRelease: CVS
Reproducibility: NoneFixed Release: Unknown

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by erk (Posted a comment)
  • -unavailable- added by jpo (Submitted the item)
  • -unavailable- added by jpo
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 04 Sep 2013 01:07:22 PM UTCerkStatusNone=>Need Info
      Assigned toNone=>erk
    Wed 14 Sep 2011 11:27:51 AM UTCjpoAttached File-=>Added rtia_wo_fnames.txt, #23973
      Carbon-Copy-=>Added jpo

    Back to the top


    Powered by Savane 3.1-cleanup1