cygwin.rst
changeset 2105 cf9f3802be19
parent 2092 9c8bb99062b5
child 2107 6f77a1808a38
equal deleted inserted replaced
2104:6931c02bbc0e 2105:cf9f3802be19
   163   $ cygcheck -c cygwin
   163   $ cygcheck -c cygwin
   164   Cygwin Package Information
   164   Cygwin Package Information
   165   Package              Version        Status
   165   Package              Version        Status
   166   cygwin               1.7.7-1        OK
   166   cygwin               1.7.7-1        OK
   167 
   167 
       
   168 Rebase dll
       
   169 ==========
       
   170 
       
   171 In order to Cygwin to maintain ``fork()`` syscall it should preserve same
       
   172 logical base address for dll to be able to share library between child and
       
   173 parent process. It was done via special hints in dlls.
       
   174 
       
   175 With new version of Cygwin software or external Windows libraries (AntiVirus may
       
   176 inject its their libraries into Cygwin process address space) it may happen that
       
   177 new library is overlapped with existing.
       
   178 
       
   179 There is ``rebase`` utility that changes base address hints for dll.
       
   180 
       
   181 You should finish all Cygwin processes in order to ``rebase`` to succeed.
       
   182 
       
   183 You may trigger automatic rebase of all packages in next run of ``setup.exe``
       
   184 with::
       
   185 
       
   186   $ rebase-trigger full
       
   187 
       
   188 Read more at:
       
   189 
       
   190 * ``/usr/share/doc/rebase/README``
       
   191 * ``/usr/share/doc/Cygwin/_autorebase.README``
       
   192 
       
   193 https://chromium.googlesource.com/chromium/src/+/master/docs/cygwin_dll_remapping_failure.md
       
   194   Handling repeated failures of rebaseall to allow cygwin remaps.
       
   195 
   168 Recreate /etc/passwd and /etc/groups.
   196 Recreate /etc/passwd and /etc/groups.
   169 =====================================
   197 =====================================
   170 ::
   198 ::
   171 
   199 
   172   $ mkpasswd -d | grep $yourlogin > /etc/passwd  # if you in Windows domain
   200   $ mkpasswd -d | grep $yourlogin > /etc/passwd  # if you in Windows domain