[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #DMO-236308]: NETCDF Segmentation fault issue with large data sizes



Hello David,

I was able to compile and run the `netcdf.c` file you provided without issue, 
although valgrind does point out some interesting issues I will need to 
address.  I am running on a 64-bit Ubuntu system with 4GB ram; can you provide 
further information regarding the environment(s) you are testing this in and 
seeing the failure?  I can try to create a VM to mirror your environment and 
will see if I can recreate and fix this issue.

Thank you,

-Ward

> Dear NETCDF support,
> 
> 
> When running the attached program I receive a segmentation fault on line 105. 
> I have run the binary through valgrind and believe this is because the 
> function nc_put_var_int is trying to place the array on the stack rather than 
> the heap and thus causing a stack overflow. Is there a way to fix this?
> 
> This has been tried on multiple systems using both the gcc and llvm compilers.
> 
> 
> Thanks
> 
> David Wilson
> 
> The Roslin Institute
> 
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
> 
> 


Ticket Details
===================
Ticket ID: DMO-236308
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.