hdf5 icon indicating copy to clipboard operation
hdf5 copied to clipboard

file_offset_t < size_t on mingw

Open mulimoen opened this issue 2 years ago • 9 comments

Describe the bug Using the mingw toolchain we encounter a problem in the assertation on the following https://github.com/HDFGroup/hdf5/blob/ac07382ca947de2b936204dc9d60ce9ac245a21f/src/H5FDstdio.c#L354 which crashes the program

Expected behavior The assertation to not trigger a crash.

Platform

  • Default windows github runner
  • HDF5 version 1.14.1-2 from source
  • Microsoft Windows Server 2022
  • Mingw-w64 11.2.0
  • CMake 3.26.4

Additional context

  • A build log can be found here https://github.com/aldanor/hdf5-rust/actions/runs/5225628766/jobs/9435350340?pr=243
  • Found when trying to use 1.14.1 in hdf5-rust

mulimoen avatar Jun 09 '23 21:06 mulimoen

We don't have great testing for MinGW, but I would like to get that set up as a GitHub action ASAP so we can fix these issues.

derobins avatar Jun 10 '23 00:06 derobins

@derobins mingw builds are very easy to set up on github actions (you can check hdf5-rust CI as an example).

Would really appreciate if this was looked into since it's currently a blocker for us bundling 1.14 for static builds.

aldanor avatar Jun 10 '23 11:06 aldanor

@aldanor and/or @mulimoen - shoot me an email at derobins at hdfgroup dot org and we'll get this fixed.

derobins avatar Jun 13 '23 16:06 derobins

Is this still a problem? We build and test MinGW in several environments now and we don't see this assert being tripped.

derobins avatar Oct 29 '24 15:10 derobins

We still see the problem: https://github.com/mulimoen/hdf5-rust/actions/runs/11579804898/job/32236915194

mulimoen avatar Oct 29 '24 18:10 mulimoen

Let me know if this PR fixes the problem. It should be merged in the next day or so.

https://github.com/HDFGroup/hdf5/pull/5064

Update: It's in. Let me know if this fixes your problem!

derobins avatar Nov 04 '24 04:11 derobins

Hi @mulimoen @aldanor I just want to draw your attention to derobins's message on Nov 3, 2024. Please let us know if this issue can be closed. Thanks!

bmribler avatar Jul 17 '25 21:07 bmribler

Was this fix included in 1.14.6, as the problem is still present there: https://github.com/metno/hdf5-rust/actions/runs/16470318613/job/46557649259?pr=88#step:5:220

magnusuMET avatar Jul 23 '25 12:07 magnusuMET

This was not fixed in 1.14.6, but will be fixed in 2.0.

derobins avatar Sep 24 '25 03:09 derobins