delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/04/09:17:37

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: seg fault trying to run pinfo
Date: Fri, 4 Apr 2008 10:16:56 -0400
Message-ID: <31DDB7BE4BF41D4888D41709C476B6570929AD7A@NIHCESMLBX5.nih.gov>
In-Reply-To: <31b7d2790804031954l4eac8e06sb49f4efa0cef38@mail.gmail.com>
References: <31b7d2790804031954l4eac8e06sb49f4efa0cef38 AT mail DOT gmail DOT com>
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m34EHaQi003555

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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019