[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54571] gethostname must not be called from wi
[Octave-bug-tracker] [bug #54571] gethostname must not be called from within DllMain on Win32 systems
Wed, 29 Aug 2018 15:07:54 -0400 (EDT)
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:
Message sent via Savannah