https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87006

            Bug ID: 87006
           Summary: Stack Protection with Large File support
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tausrd at gmail dot com
  Target Milestone: ---

Dear Sirs,

I would like to report a bug in:

gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609

When adding large file features :

#define _FILE_OFFSET_BITS 64

and gcc option :

-D_FILE_OFFSET_BITS=64

The program compiles ok, but when it runs : gets error "Smashed Stack Detected"
when doing "fclose" to a large file.

The error gets cleaned if I use "gcc ...  -fno-stack-protector", but there is
no protection of stack.

I would prefer to have "stack protection enabled" always with large files
support.

Please, help me to fix this. 

Best Regards,

Claudio SR

Reply via email to