-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in grdimage/GDAL #3568
Comments
It works for me but prints that annoyingly false message
The problem has be that what we think is |
I built my GDAL yesterday from master, so not older than that. |
Hm, yet it is always suspicious when we get such a crash just after an update... |
These are the same crashes @seisman mentioned in the macos CI, so cannot just be my install. |
Down porting and that avoids the crashes: GDAL 3.1.0, released 2020/05/03 So I guess I am using that for building the bundle. |
We still need to fix it. Homebrew is providing GDAL 3.1.1. |
But is it ours to fix? As far as I can tell it dies inside GDAL and I don't think we have made any changes to that section of gdal_read very recently? And it should crash with GDAL 3.1.0 if we had a bug, no? perhaps like netCDF, they have decided to not check for someting that could have been NULL in the past but now must be set? |
If we can't fix it, then the only thing we can do is reporting the bug to GDAL and hopefully, they can have a quick bugfix release. |
I get the too but the plot is correct. |
This is a tough one to report. It doesn't occur all the times (for example |
Since you biuld from source, can you step into that call and see where GDALGetProjectionRef goes and possibly see if any of the members we pass in might be NULL or something? I am not sure what we can do about this since it seems GDAL changed something between 3.1.0 and 3.1.1 and that effects us. @seisman is there a way to tell what their changes are as a way to look for clues? |
Here are the changes between v3.1.0 and v3.1.1: OSGeo/gdal@v3.1.0...v3.1.1 |
Hopefully @joa-quim can see what may be going on there. |
Impossible to see anything. But the crash occurs immediately after reading the file
so no time for us to screw the I don't see any other option but to build GDAL and find the commit where it breaks. |
Yes. Maybe it is possible for you to ask how if something changed since we are just passing that pointer back in, no? |
I mean, you've had direct contact with that head guy before and he seems pretty responsive. |
You also need to go to bed to be ready for zoom tomorrow morning (your time). |
We need a more specific question than just "what changed". Specially since it works on Windows. For example I see a tiff change in this commit. Does it crash with all geotiffs? Is your GDAL using the internal tiff lib or links to an external? |
Another tiff commit |
I know, but you could just tell him that this sequence:
Used to work fine, and does in 3.1.0 on macOS but 3.1.1 it SEGV and give him the traceback above, and tell him these are geotiffs. Perhaps he will know where to look or have suggestions for how we can better debug this case. |
List of changes in more readable terms, see list under Geotiff: https://fossies.org/linux/gdal/NEWS |
I think the crash is coming from PROJ |
Yes, I guess proj_create_ellipsoidal_2D_cs is touching a NULL somewhere. |
I am not sure where we are on this issue. Here are some thoughts; they are founded on the belief (?) that this surely cannot be a bug in GMT since it runs fine with 3.1.0 but suddenly crashes violently with 3.1.1.
hDataset = gdal_open (GMT,"earth_day_01d_p.tif");
|
I spent the hole morning/afternoon trying to install gdal in my CentOS7 VM only to managed to fscrew everything. A real nightmare. Old gcc non updatable, headers not found, ended up doing an upgrade to CentOS8 and that was where all vaporized (perhaps those VMs can't be upgraded). It would be nice to confirm that the problem is restricted to linux. I have my doubts. To build GDAL you need PROJ. If the tiny program works that is ideal because without something more solid to work on, Even will not do anything else. Finally, *nix is an horror. We should REALLY recommend the course students to use Windows if possible. |
Tried this:
No crash, SEGV though. Are there things that need to be set before this call since I am getting these errors? |
Ah, yes. You need to at least call |
No crash. Hm, the easiest explanation is that some memory is overwritten by us and a delayed reaction happens inside that call. ANy other suggestions for how to do this? |
Hi @seisman, does installing valgrid via brew work for you? |
Hoping this is doable via brew, @seisman |
Building the GDAL source codes via brew fails. So I can't test it. |
OK, sounds like it is a 90% likelihood that the bug was fixed, so we will move forward. |
Ghrrr building GDAL is only |
If it was only that then I would not run configure and get
But port info proj6 says |
But I have proj 5 also since that is how things are. |
OK, got past that with --with-proj=/opt/local/lib/proj6. Running make. |
So far so good, make will run for some hours it seems. |
Not hours, I build it in 5-10 min. |
Was compiling but now in zoom with Erik so will check in a while
Paul Wessel, Professor and Chair
Dept. of Earth Sciences (formerly Geology & Geophysics)
SOEST, U of Hawaii at Manoa
…On July 4, 2020 at 10:42:04 AM, Joaquim ***@***.***) wrote:
Not hours, I build it in 5-10 min.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3568 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGJ7IX6APAM5DWXFEO2FSM3RZ6HZZANCNFSM4OM27LXQ>
.
|
Finished building GDAL. Looking inside it:
I see it lists /usr/local/lib/libgdal. That is a bit odd, no? |
We know MacOS is dependency-insane. Maybe |
Sorry, now to figure out how to use this libgda instead of macport. Was busy with testing installers. |
Do @joa-quim or @seisman know how to make Cmake find a gdal lib in an unusual place? Searching the cache talked about GDAL_CONFIG so I temporarily placed the new one in the retular path and renamed to old, but cmake still found the macports gdal... need the equivalent of --with-gdal=/Users/pwessel/gdal/gdal/.libs/libgdal.27.dylib I suspect I must disable the sytem gdal and rebuild mine though. |
I do all dependencies via
|
OK, I will try that. Deactiviting the macport gdal lead cmake to find WTF, 2016 version, probably QGIS or somthing. So giving a path is better. |
Os the GDAL_Dir the path to where the dir is or the one above so it has both include and lib? |
For me |
I think it has been fixed. The plot works, and after I installed my gdal build in the default /usr/local place it is picked up:
So you can tell Even that things look good. |
I'm getting the same error reported at the beginning of this thread with e.g. the call
I installed 6.1.0 via Homebrew. System info:
What I gather from above is that I need to downgrade GDAL? But the GMT Homebrew package installs 3.1.1. |
Conda working though, GDAL 3.0.4 |
I believe GMT can do nothing here. Options are:
|
Wait, I think Evan at GDAL said they are fixing this with 3.1.2 on Tuesday. it is breaking other things than GMT so it is serious for them. |
That's a good news. We only need to wait for a few more days to have a working GDAL. |
GDAL 3.1.2 is released. Please update to this version. |
FYI, homebrew has updated to GDAL 3.1.2 |
Excellent, just tested and things work as expected. Also seems like |
Now Macports is also updated to GDAL 3.1.2. |
This now fails (same as #3566 I assume). I will see if I can find out in debug:
gmt grdimage -JM6.5i -R0/360/-45/45 -Bag @earth_day_01d > t.ps
The text was updated successfully, but these errors were encountered: