Menu ▾ ▴

#2 Segmentation Fault

open
nobody
help wanted (1)
2016-11-13
2016-11-11
Anonymous
No

Originally created by: sunipkmukherjee
Originally owned by: Arkoprovo1996

In macOS Sierra, using both native Clang and GNU gcc-6, I am getting segfault after I hit "play". Exit option is exiting gracefully.
Clang generates the following warnings:
comEt_Me.c:101:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
comEt_Me.c:137:1: warning: control may reach end of non-void function
[-Wreturn-type]
}
^
2 warnings generated.

gcc-6 compiles without error.

Discussion

  • Anonymous

    Anonymous - 2016-11-12

    Originally posted by: Arkoprovo1996

    Works fine here

    On 12-Nov-2016 00:18, "sunipkmukherjee" notifications@github.com wrote:

    In macOS Sierra, using both native Clang and GNU gcc-6, I am getting
    segfault after I hit "play". Exit option is exiting gracefully.
    Clang generates the following warnings:
    comEt_Me.c:101:1: warning: control reaches end of non-void function
    [-Wreturn-type]
    }
    ^
    comEt_Me.c:137:1: warning: control may reach end of non-void function
    [-Wreturn-type]
    }
    ^
    2 warnings generated.

    gcc-6 compiles without error.

    —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly, view it on GitHub
    https://github.com/Arkoprovo1996/comEt_Me/issues/2, or mute the thread
    https://github.com/notifications/unsubscribe-auth/ACtI7uQFRqoMaS6iRZc3uWuQxctwN7eKks5q9LiHgaJpZM4KwBw4
    .

     
  • Anonymous

    Anonymous - 2016-11-12

    Originally posted by: sunipkmukherjee

    Damn. That means yet another compiler. Alright.

    Regards,
    Sunip K. Mukherjee,
    Graduate Student,
    Department of Physics,
    UMass Lowell.

    On Nov 12, 2016, at 12:04, Arkoprovo1996 notifications@github.com wrote:

    Try gcc5.* once ...

    —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub, or mute the thread.

     
  • Anonymous

    Anonymous - 2016-11-12

    Originally posted by: Arkoprovo1996

    Hmm ... gcc 6 on Linux worked perfectly .. um .. do you have all the libraries installed?

     
  • Anonymous

    Anonymous - 2016-11-12

    Originally posted by: sunipkmukherjee

    ncurses is builtin.

    On 12-Nov-2016, at 1:08 PM, Arkoprovo1996 notifications@github.com wrote:

    Hmm ... gcc 6 on Linux worked perfectly .. um .. do you have all the libraries installed?

    —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub https://github.com/Arkoprovo1996/comEt_Me/issues/2#issuecomment-260138437, or mute the thread https://github.com/notifications/unsubscribe-auth/AMuowR9pgoz0LhA99SWb3VpdeF51Pc59ks5q9gC4gaJpZM4KwBw4.

     
  • Anonymous

    Anonymous - 2016-11-13

    Originally posted by: sunipkmukherjee

    Would it compile without it?
    I'll look in that morning.

    Regards,
    Sunip K. Mukherjee,
    Graduate Student,
    Department of Physics,
    UMass Lowell.

    On Nov 12, 2016, at 16:25, Arkoprovo1996 notifications@github.com wrote:

    Ok ... unistd.h?

    —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub, or mute the thread.

     

Log in to post a comment.