This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Segmentation fault before main

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 alloca.  Did you try to raise
the default stacksize in the executable header (see peflags -x and -X
options).  There's not much else to work with...

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.

-       bbprintf0(stmt,"%ssize_t %s_countset[%lu] = {",
+       bbprintf0(stmt,"%ssize_t %s_countset[%u] = {",

as it could produce

    size_t br_startset[25769803777] = {0} ;
    size_t br_countset[25769803777] = {2};

instead of
   size_t br_startset[1] = {0} ;
   size_t br_countset[1] = {2};

as 25769803777 = 0x00060001


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]