public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Martin Landa <landa.martin@gmail.com>
To: cygwin@cygwin.com
Subject: posix vs. win32 paths (segfault vs. gdb)
Date: Wed, 09 Dec 2015 18:53:00 -0000	[thread overview]
Message-ID: <CA+Ei1Of8xBkUTTqp+fiHKcxZcCSkDC1rVdyUnt3Riy_wfTLLFA@mail.gmail.com> (raw)

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

             reply	other threads:[~2015-12-09 18:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-09 18:53 Martin Landa [this message]
2015-12-10 22:58 ` Warren Young
2015-12-14 15:56   ` Martin Landa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+Ei1Of8xBkUTTqp+fiHKcxZcCSkDC1rVdyUnt3Riy_wfTLLFA@mail.gmail.com \
    --to=landa.martin@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).