Quantcast

Cygwin+Windows 7+gvim woes

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Cygwin+Windows 7+gvim woes

yosi izaq
Hi,

I've upgrade from XP to windows 7 and now gvim launched from Cygwin
spews errors on startup.
Sometime gvim would load but at other times it would fail that.
An example of the errors:

[No Name] [FORMAT=unix] [TYPE=] [ASCII=000] [HEX=00] [POS=0000,0001]
[100%]
[LEN=1]
0 [main] gvim 7404 exception::handle: Exception:
STATUS_ACCESS_VIOLATION
   4374 [main] gvim 7404 open_stackdumpfile: Dumping stack trace to
gvim.exe.stackdump
ShowFunc exting.  (Cleaning up functions)
Error detected while processing /home/yizaq/.vim/plugin/ShowFunc.vim:
line  450:
E130: Unknown function: s:ShowFuncFoldText      0 [main] gvim 7980
exception::handle: Exception: STATUS_ACCESS_VIOLATION
   1695 [main] gvim 7980 open_stackdumpfile: Dumping stack trace to
gvim.exe.stackdump

      0 [main] gvim 7096 C:\cygwin\bin\gvim.exe: *** fatal error -
unable to remap \\?\C:\cygwin\lib\gtk-2.0\2.10.0\loaders
\cygpixbufloader-xpm.dll to same address as parent: 0x970000 !=
0xB50000
Stack trace:
Frame     Function  Args
0028B678  6102749B  (0028B678, 00000000, 00000000, 00000000)
0028B968  6102749B  (61177B80, 00008000, 00000000, 61179977)
0028C998  61004AFB  (611A136C, 612441C4, 00970000, 00B50000)
End of stack trace
      0 [main] gvim 4532 fork: child 7096 - died waiting for dll
loading, errno 11

In addition even when gvim does load the '!' doesn't work and gives a
"fail to fork" error.
I did some searching on the web and it looks likes many suspect a bug
in the Mcafee antivirus. I even tried some suggestions like excluding /
cygwin/bin from access scanning but it didn't really help.

Has anyone faced a similar issue?- I'd appreciate any information on
the matter.

TIA,
Yosi

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cygwin+Windows 7+gvim woes

S. Cowles
On Tue, 4 Jan 2011, Yosi Izaq wrote:

> Date: Tue, 4 Jan 2011 02:04:43 -0800 (PST)
> From: Yosi Izaq <[hidden email]>
> Reply-To: [hidden email]
> To: vim_use <[hidden email]>
> Subject: Cygwin+Windows 7+gvim woes
>
> Hi,
>
> I've upgrade from XP to windows 7 and now gvim launched from Cygwin
> spews errors on startup.
> Sometime gvim would load but at other times it would fail that.
> An example of the errors:
>
> [No Name] [FORMAT=unix] [TYPE=] [ASCII=000] [HEX=00] [POS=0000,0001]
> [100%]
> [LEN=1]
> 0 [main] gvim 7404 exception::handle: Exception:
> STATUS_ACCESS_VIOLATION
>   4374 [main] gvim 7404 open_stackdumpfile: Dumping stack trace to
> gvim.exe.stackdump
> ShowFunc exting.  (Cleaning up functions)
> Error detected while processing /home/yizaq/.vim/plugin/ShowFunc.vim:
> line  450:
> E130: Unknown function: s:ShowFuncFoldText      0 [main] gvim 7980
> exception::handle: Exception: STATUS_ACCESS_VIOLATION
>   1695 [main] gvim 7980 open_stackdumpfile: Dumping stack trace to
> gvim.exe.stackdump
>
>      0 [main] gvim 7096 C:\cygwin\bin\gvim.exe: *** fatal error -
> unable to remap \\?\C:\cygwin\lib\gtk-2.0\2.10.0\loaders
> \cygpixbufloader-xpm.dll to same address as parent: 0x970000 !=
> 0xB50000
> Stack trace:
> Frame     Function  Args
> 0028B678  6102749B  (0028B678, 00000000, 00000000, 00000000)
> 0028B968  6102749B  (61177B80, 00008000, 00000000, 61179977)
> 0028C998  61004AFB  (611A136C, 612441C4, 00970000, 00B50000)
> End of stack trace
>      0 [main] gvim 4532 fork: child 7096 - died waiting for dll
> loading, errno 11
>
> In addition even when gvim does load the '!' doesn't work and gives a
> "fail to fork" error.
> I did some searching on the web and it looks likes many suspect a bug
> in the Mcafee antivirus. I even tried some suggestions like excluding /
> cygwin/bin from access scanning but it didn't really help.
>
> Has anyone faced a similar issue?- I'd appreciate any information on
> the matter.
>
> TIA,
> Yosi


i have found this problem with almost every project i build from source in
win7 under cygwin.  the fix is rather straightforward, and is a cygwin
issue, not a vim issue:  it is necessary to "rebase" all applications,
libraries, and dll's in cygwin.

the simple cookbook is:

1.  do a shutdown of all cygwin services and apps.
(http://www.heikkitoivonen.net/blog/2008/11/26/cygwin-upgrades-and-rebaseall/)
for example:

  cygrunsrv --stop cron
  cygrunsrv --stop exim
  cygrunsrv --stop mountd
  cygrunsrv --stop nfsd
  cygrunsrv --stop portmap
  cygrunsrv --stop sshd
  cygrunsrv --stop cygserver

2.  initiate a cmd session
3.  cd \cygwin\bin
4.  .\ash.exe
5.  PATH=/bin
6.  find /usr/local -name '*.dll' -o -name '*.so' > /tmp/lst
7.  rebaseall -v -T /tmp/lst

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cygwin+Windows 7+gvim woes

yosi izaq
S. Cowles: 
i have found this problem with almost every project i build from source in win7 under cygwin.  the fix is rather straightforward, and is a cygwin issue, not a vim issue:  it is necessary to "rebase" all applications, libraries, and dll's in cygwin.

the simple cookbook is:

1.  do a shutdown of all cygwin services and apps.
(http://www.heikkitoivonen.net/blog/2008/11/26/cygwin-upgrades-and-rebaseall/)
for example:

       cygrunsrv --stop cron
       cygrunsrv --stop exim
       cygrunsrv --stop mountd
       cygrunsrv --stop nfsd
       cygrunsrv --stop portmap
       cygrunsrv --stop sshd
       cygrunsrv --stop cygserver

2.  initiate a cmd session
3.  cd \cygwin\bin
4.  .\ash.exe
5.  PATH=/bin
6.  find /usr/local -name '*.dll' -o -name '*.so' > /tmp/lst
7.  rebaseall -v -T /tmp/lst

Thank you and Bryan as well. Your suggestions solved the issue and I also read the related Cygwin article to better understand what the fuss is all about. The cookbook solution is especially effective. 

I have 2 follow-up questions if you may:
1. Should I repeat the rebase each time I upgrade a give cygwin lib or util?
2. Do you happen to know when will Cygwin include the rebase so that it's no longer required to perform this manually?

Thanks!
Yosi
 

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Loading...