#4112 closed defect (fixed)
Seg Fault with SQL LEFT JOIN on shapefiles
Reported by: | Daniel Morissette | Owned by: | Daniel Morissette |
---|---|---|---|
Priority: | normal | Milestone: | 1.8.1 |
Component: | OGR_SF | Version: | 1.8.0 |
Severity: | normal | Keywords: | |
Cc: | warmerdam, Even Rouault |
Description
I get a seg fault when doing a SQL LEFT JOIN on shapefiles, with OGRINFO 1.8.0 and trunk. I verified that v1.7.3 works fine, so this issue seems to have been introduced in v1.8.0.
It seems that any join will crash (I got reports from a user getting the crash with tab files), but just in case here is the command I use to reproduce it:
ogrinfo /path/to/popplace.shp -sql 'select * from popplace left join "/path/to/province.shp".province on popplace.name_e = province.name_e'
Change History (6)
comment:1 by , 13 years ago
Version: | unspecified → 1.8.0 |
---|
comment:2 by , 13 years ago
Status: | new → assigned |
---|
comment:3 by , 13 years ago
comment:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in SVN trunk r22518.
The order of args to AddFieldDefnToSet() was reversed in one place in SetIgnoredFields().
Should we backport this to the 1.8.x branch? (i.e. are we planning 1.8.x bugfix releases?)
comment:5 by , 13 years ago
Component: | default → OGR_SF |
---|---|
Milestone: | → 1.8.1 |
I do plan one or more point releases against 1.8. I have backported this fix to 1.8 (r22519).
Thanks!
Backtrace with trunk... I'll rebuild with -g and try to look into this again later: