Re: Segmentation fault before main

2015-11-05 Thread Marco Atzeri
On 05/11/2015 09:49, Csaba Raduly wrote: On Wed, Nov 4, 2015 at 10:42 PM, Marco Atzeri wrote: For the archive, I found the culprit in the test code. Using "%lu" to print int is not a good idea on cygwin 64 bit. That's why we have -Wformat=2 Csaba Thanks for the suggestion, but it seem

Re: Segmentation fault before main

2015-11-05 Thread Corinna Vinschen
On Nov 4 22:42, Marco Atzeri wrote: > On 30/10/2015 20:45, Marco Atzeri wrote: > >On 30/10/2015 20:18, Corinna Vinschen wrote: > >>On Oct 30 16:25, Marco Atzeri wrote: > >>>Hi Corinna, > >>> > > > >>>Any help will be really appreciated. > >> > >>Well, it's a stack probe. It's typically called whe

Re: Segmentation fault before main

2015-11-05 Thread Csaba Raduly
On Wed, Nov 4, 2015 at 10:42 PM, Marco Atzeri wrote: > > > For the archive, I found the culprit in the test code. > Using "%lu" to print int is not a good idea on cygwin 64 bit. That's why we have -Wformat=2 Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of ma

Re: Segmentation fault before main

2015-11-04 Thread Marco Atzeri
On 30/10/2015 20:45, Marco Atzeri wrote: On 30/10/2015 20:18, Corinna Vinschen wrote: On Oct 30 16:25, Marco Atzeri wrote: Hi Corinna, Any help will be really appreciated. Well, it's a stack probe. It's typically called when trying to allocate big datastructures on the stack, e.g. with a

Re: Segmentation fault before main

2015-10-30 Thread Marco Atzeri
On 30/10/2015 20:18, Corinna Vinschen wrote: On Oct 30 16:25, Marco Atzeri wrote: Hi Corinna, Any help will be really appreciated. Well, it's a stack probe. It's typically called when trying to allocate big datastructures on the stack, e.g. with alloca. Did you try to raise the default s

Re: Segmentation fault before main

2015-10-30 Thread Corinna Vinschen
On Oct 30 16:25, Marco Atzeri wrote: > Hi Corinna, > > as mention some time ago, testing netcdf 4.4.0 release candidates > I see a puzzling SIGSEGV before reaching main, so something goes wrong > on cygwin loading/inizialization of the program. > > It happens in a simple test programs that is lin

Segmentation fault before main

2015-10-30 Thread Marco Atzeri
Hi Corinna, as mention some time ago, testing netcdf 4.4.0 release candidates I see a puzzling SIGSEGV before reaching main, so something goes wrong on cygwin loading/inizialization of the program. It happens in a simple test programs that is linked to cygnetcdf-7.dll and its only job is to crea