aerostitch / testnavit

0 stars 0 forks source link

file_wordexp_new:wordexp(..) failures on cygwin #74

Open aerostitch opened 13 years ago

aerostitch commented 13 years ago

Issue migrated from trac ticket # 775

component: core | priority: major | keywords: cygwin, gcc

2011-02-14 10:57:17: flybrick@frontiernet.net created the issue


file_wordexp_new:wordexp(..) seems to be failing on Cygwin in svn version 4155.

The output below shows debug information (after applying the patch in ticket 775 which solves a NULL ptr issue this issue contributes to).

$ navit -d 100
TODO Verbose option is set to `100'
navit:file_wordexp_new:wordexp('/cygdrive/c/Documents and Settings/jwerner/.navit/bookmark.txt') returned 5
map_rect_new_textfile unable to open textfile <UNKNOWN_FILENAME>
navit:file_wordexp_new:wordexp('/home/jwerner/gui.xml') returned 5
navit:xinclude:Got NULL pointer when processing /home/jwerner/gui.xml
navit:file_wordexp_new:wordexp('~/.navit/vehicles.xml') returned 5
navit:xinclude:Got NULL pointer when processing ~/.navit/vehicles.xml
navit:file_wordexp_new:wordexp('$NAVIT_SHAREDIR/maps/*.xml') returned 5
navit:xinclude:Got NULL pointer when processing $NAVIT_SHAREDIR/maps/*.xml
navit:file_wordexp_new:wordexp('~/.navit/distortion.txt') returned 5
navit:file_wordexp_new:wordexp('/usr/local/share/navit/maps/osm_bbox_11.3,47.9,11.7,48.2.bin') returned 5
map_binfile:map_binfile_open:Failed to load '<UNKNOWN_FILENAME>'
navit:file_wordexp_new:wordexp('~/.navit/*.lo') returned 5
navit:xinclude:Got NULL pointer when processing ~/.navit/*.lo
navit:navit_init:no gui
Segmentation fault (core dumped)
aerostitch commented 13 years ago

2011-02-14 10:59:09: flybrick@frontiernet.net commented


Oops, make that "Patch from ticket 774

aerostitch commented 13 years ago

2011-02-14 11:19:20: tegzed commented


Hi Jwernerny,

can you paste the output of "bt full" command of gdb after setting

<debug name="segv" level="2"/>

in your navit.xml? (this will start an interactive gdb session on crash)

aerostitch commented 13 years ago

2011-02-16 07:53:57: flybrick@frontiernet.net commented


I did an SVN update, so this may not be too useful.... BUT, before that I did find the cause of the segv from the ticket. It's another NULL Ptr in map_destroy(..) in map.c.

$navit -d 100
TODO Verbose option is set to `100'
navit:file_wordexp_new:wordexp('/cygdrive/c/Documents and Settings/JWerner8/.navit/bookmark.txt') returned 5
navit:map_rect_get_item:map.c:320 assertion failed:mr != ((void *)0)
Aborted (core dumped)
~$

The root cause of this seems to be that wordexp(..) on my cygwin install is broken. I even went as far as both writing a test program and downloading one (from lassauge.free.fr/cygwin/release/X11/celestia/test-wordexp.c) and they fail. wordexp(..) always returns 5 (WRDE_SYNTAX).

aerostitch commented 11 years ago

2013-07-06 10:49:13: usul

aerostitch commented 11 years ago

2013-07-06 10:49:13: usul commented


Can anybody please check this bug on cygwin?

aerostitch commented 7 years ago

2017-10-18 03:19:02: @jkoan set severity to normal

aerostitch commented 7 years ago

2017-10-18 03:19:02: @jkoan

aerostitch commented 7 years ago

2017-10-18 03:19:02: @jkoan commented


Move to 0.6.0 unless we have future informations