seg fault trying to run pinfo
Buchbinder, Barry (NIH/NIAID) [E]
BBuchbinder@niaid.nih.gov
Fri Apr 4 14:17:00 GMT 2008
DePriest, Jason R. wrote on Thursday, April 03, 2008 10:54 PM:
> Running pinfo with no arguments works fine. It loads up a default
> menu.
>
> However, if I try to launch it with any arguments (like 'pinfo perl'
> or 'pinfo cp') it seg faults and dumps core.
>
> cygcheck output attached
>
> Also, pinfo.exe.stackdump01 was 'pinfo cp' before I ran rebaseall and
> pinfo.exe.stackdump02 was after I ran rebaseall.
>
> No change.
>
> Is it just me or is there really a bug?
>
> Thanks.
>
> -Jason
This has been reported before, e.g.: http://cygwin.com/ml/cygwin/2007-08/msg00407.html
It seems to be a problem with cygwin 1.5.25: http://cygwin.com/ml/cygwin/2007-12/msg00077.html
(You can google for more.)
My solution:
alias spinfo='cygstart --maximize pinfo'
(Replacing cygstart with 'cmd /c start /max' also works.)
More diagnostic info:
The crash happens with both bash and ash and
cygstart bash -c pinfo sed
and
echo sed | gawk '{ system("pinfo " $1) }'
or even
echo sed | gawk '{ system("pinfo") }'
It happens when windows loads bash directly (without a batch file) from a shortcut or via chere.
It does not happen when using pinfo in a cmd window or is run from bash that has been loaded in a cmd window whether by cygwin.bat or by loading cmd and then typing in bash.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list