delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/30/13:29:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: "Hannu E K Nevalainen" <_garbage_collector_ AT telia DOT com>
To: "ML Cygwin" <cygwin AT cygwin DOT com>
Subject: "find" - core dump on faulty arg
Date: Thu, 30 Sep 2004 19:28:14 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEKEAKDPAA._garbage_collector_@telia.com>
MIME-Version: 1.0
X-IsSubscribed: yes

Unintentionally I used %H in the 'find -printf' format string and ended up
with a core dump. I'm not entirely sure what %H is supposed to print; (as it
seems to me; nothing, when used this way)
	man find/-printf format codes;
	%H     Command line argument under which file was found.
...so, this is a simple "heads up":

$ uname -svr
<checked several recent snapshots and the 1.5.11-1 release.>

$ cygcheck -c findutils
Cygwin Package Information
Package              Version        Status
findutils            4.1.7-4        OK

$ find -printf "%H\n"
Segmentation fault (core dumped)

$ cat find.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=004051F2
eax=00000001 ebx=10010200 ecx=00000000 edx=00401044 esi=0022EF10
edi=100102A0
ebp=0022EE60 esp=0022EE04 program=C:\Program\Cygwin\bin\find.exe, pid 2388,
thread main
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022EE60  004051F2  (00401044, 0022EF10, 10010258, 00406926)
0022EE90  0040491B  (00401044, 0022EF10, 10010210, 69776779)
0022EF50  0040193E  (00401044, 00401044, 00000000, 00401044)
0022F000  00401754  (00401044, 0000002D, 0041540C, 00401115)
0022F040  004014EB  (00000003, 61781678, 100100A8, 0022F098)
0022F080  61005F34  (0022F098, 7FFDF000, 00000000, 32333838)
0022FF60  6100614B  (00000000, 00000000, 00000000, 00000000)
End of stack trace


/Hannu E K Nevalainen, B.Sc. EE Microcomputer systems            --72-->

** mailing list preference; please keep replies on list **

-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--


--
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