X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:date:message-id:subject:from:to
	:content-type:content-transfer-encoding; q=dns; s=default; b=oY4
	nSlXPWHXMiIcQHnKzvjLPgIx9CcPKd2p+O/tVRBOOJawaanlUOrIjp6E4mqUlZ/n
	vqt5sZ0G0we4eRSc/w7C9QZNiF3NBiyXIysPyHI0f8rkwEZPfbSPpbRJo2BKXinU
	2UNIwTWQEGpnk7V0QnjcNXOwrZ93dOfbGCi0SQ/c=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:date:message-id:subject:from:to
	:content-type:content-transfer-encoding; s=default; bh=+5M1gxKtn
	/4/vX9ewGxC+gNSmFk=; b=kWzDl8KzH6se0QaaGPPGstp8pkVUgtVsUwlA+7Ilj
	QRejPlvqGc0rEBKJAkG4WXYmVR25y1VbnUDeyuljbxQXcBIlR/f5sXv+IeYJbYJJ
	wxIbq/idWh5SyHLwegidFkaug3ZHyDDFaazDnGqk2pyDDgt+hOtT4RiNNejx9Y29
	0E=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wm0-f41.google.com
MIME-Version: 1.0
X-Received: by 10.194.24.70 with SMTP id s6mr7747420wjf.74.1449687210287; Wed, 09 Dec 2015 10:53:30 -0800 (PST)
Date: Wed, 9 Dec 2015 19:53:30 +0100
Message-ID: <CA+Ei1Of8xBkUTTqp+fiHKcxZcCSkDC1rVdyUnt3Riy_wfTLLFA@mail.gmail.com>
Subject: posix vs. win32 paths (segfault vs. gdb)
From: Martin Landa <landa.martin@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tB9IrlDw020419

Hi all,

I am new to cygwin, so sorry for probably silly questions. I am trying
to compile GRASS GIS program on cygwin using *mingw32-w64* toolchain.
I am able to compile GRASS libs and tools. Part of build process is
calling compiled GRASS tools to produce their manual pages. The
critical part of build system (which is based on GNU make) looks like:

if [ "/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin/db.columns.exe"
!= "" ] ; then GISRC=/home/landa/grass_trunk/dist.x86_64-w64-mingw32/demolocation/.grassrc71
GISBASE=/dist.x86_64-w64-mingw32
PATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/scripts:$PATH"
PYTHONPATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/etc/python;/home/landa/grass_trunk/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
PATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/scripts:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/lib:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/lib:./:/usr/bin/:/usr/local/bin::/cygdrive/c/OSGeo4W64/bin:/home/landa/grass_trunk/mswindows/osgeo4w"
LC_ALL=C /home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin/db.columns.exe
--html-description < /dev/null | grep -v '</body>\|</html>' >
db.columns.tmp.html ; fi
../../include/Make/Html.make:14: target „db.columns.tmp.html“ failed
make[4]: *** [db.columns.tmp.html] Error 1

First of all tried to launch this command from terminal:

GISRC=/home/landa/grass_trunk/dist.x86_64-w64-mingw32/demolocation/.grassrc71 \
GISBASE=/dist.x86_64-w64-mingw32 \
PATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/scripts:$PATH"
\
PYTHONPATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/etc/python;/home/landa/grass_trunk/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
\
PATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/scripts:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/lib:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/lib:./:/usr/bin/:/usr/local/bin::/cygdrive/c/OSGeo4W64/bin:/home/landa/grass_trunk/mswindows/osgeo4w"
LC_ALL=C \
/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin/db.columns.exe
--html-description

and it failed with Segmentation fault.

Then I tried to launch it via gdb (so I changed last line to `gdb
--args /home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin/db.columns.exe
--html-description` and type `run`:

* program started (no segfault)
* it failed to open file on disc which exist and is readable
* if I change path to this file from posix to win32 then the program
run successfully without any error and produce desired output.

I spent several hours on this issue and starting to be lost. I will
appreciate any help, thanks in advance for any kind of support! Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


