Menu

#2391 gcc-torture-execute-divcmp-1 segfaults on Cygwin64

closed-fixed
Ben Shi
None
other
5
2015-08-18
2015-06-21
No

In sdcc revision #9253, the regression test gcc-torture-execute-divcmp-1 gives me a segfault in the z80-related ports and the stm8 port. I used current 64-bit Cygwin on Windows 7.

Philipp

P.S.: We already have open bugreports #2277 and #2345 for a similar issue on OpenBSD and NetBSD.

Discussion

  • Ben Shi

    Ben Shi - 2015-06-21

    I have also attached the error log in bug #2345.

     

    Last edit: Ben Shi 2015-07-22
  • Ben Shi

    Ben Shi - 2015-07-22

    This issue only happened on cygwin64, while cygwin32 is normal.

     
  • Ben Shi

    Ben Shi - 2015-07-22
    • summary: gcc-torture-execute-divcmp-1 segfaults on Cygwin --> gcc-torture-execute-divcmp-1 segfaults on Cygwin64
     
  • Philipp Klaus Krause

    Hmm, could this be a stack size issue? Windows has a smaller default stack size limit compared to most Unices these days.

    Philipp

     
    • Ben Shi

      Ben Shi - 2015-08-17

      By modification of src/Makefile.in

      LDFLAGS = -Wl,--stack,4194304

      there is no crash any more.

       
  • Ben Shi

    Ben Shi - 2015-08-17

    Though the single crashed test case passed, I will do a full regression test with this flag.

     
  • Ben Shi

    Ben Shi - 2015-08-17
    • assigned_to: Ben Shi
     
  • Ben Shi

    Ben Shi - 2015-08-18

    Fixed in reversion #9300.

     
  • Ben Shi

    Ben Shi - 2015-08-18
    • status: open --> closed-fixed
     

Log in to post a comment.