octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54571] gethostname must not be called from wi


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #54571] gethostname must not be called from within DllMain on Win32 systems
Date: Wed, 29 Aug 2018 15:07:54 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Update of bug #54571 (project octave):

                Priority:              5 - Normal => 3 - Low                
                  Status:         Patch Submitted => Patch Reviewed         

    _______________________________________________________

Follow-up Comment #1:

I have followed the links and I think I understand the point that this bug
report is about. Basically on Windows, static initializers must not call
functions that may be in shared libraries that haven't been fully loaded yet.

We could make some changes to defer calls to 'gethostname' until it is
actually needed. But I don't think this patch is the right way to do that. If
this is needed, we should properly rework those global string variables that
depend on the host name to be API functions.

This patch is not ready to be applied.

How did you get a 20 second startup time from gethostname, is your system
somehow configured that it doesn't even know its own name and has to reach
another server, or timed out somehow querying the host name?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54571>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]