Opened 12 years ago
Last modified 5 years ago
#775 new defect/bug
file_wordexp_new:wordexp(..) failures on cygwin
Reported by: | jwernerny -2- | Owned by: | KaZeR |
---|---|---|---|
Priority: | major | Milestone: | version 0.6.0 |
Component: | core | Version: | git master |
Severity: | normal | Keywords: | cygwin, gcc |
Cc: |
Description
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)
Change History (5)
comment:1 Changed 12 years ago by jwernerny -2-
comment:2 Changed 12 years ago by tegzed
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)
comment:3 Changed 12 years ago by jwernerny -2-
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).
comment:4 Changed 10 years ago by usul
- Keywords cygwin gcc added
- Milestone set to version 0.5.1
Can anybody please check this bug on cygwin?
comment:5 Changed 5 years ago by http://wiki.navit-project.org/index.php/user:jkoan
- Milestone changed from version 0.5.1 to version 0.6.0
- Severity set to normal
Move to 0.6.0 unless we have future informations
Oops, make that "Patch from ticket 774