On this page:
1.4.1 Code 0 - Successful Completion
1.4.2 Error code 1 - General Error
1.4.3 Error code 134 - Program Abort
1.4.4 Error code 136 - Erroneous Arithmetic Operation
1.4.5 Error code 139 - Segmentation Fault
1.4.6 Error code 255 - Program Timed Out
3.0.10 (HEAD-8fd80004)

1.4 Common Error Codes

This document outlines the meaning of several commonly-encountered error codes in Seashell.

    1.4.1 Code 0 - Successful Completion

    1.4.2 Error code 1 - General Error

    1.4.3 Error code 134 - Program Abort

    1.4.4 Error code 136 - Erroneous Arithmetic Operation

    1.4.5 Error code 139 - Segmentation Fault

    1.4.6 Error code 255 - Program Timed Out

1.4.1 Code 0 - Successful Completion

This is NOT an error code, the one exception among all other codes you might encounter. If a program returns this code, then your program has not crashed and successfully completed (ie. reached the end of main).

1.4.2 Error code 1 - General Error

This is a general error code that programs can return to indicate that something went wrong, but not as an indication of what specifically went wrong. This error code shouldn’t happen, unless you return 1 from main, or call exit(1) at any point in your program. If you obtain this error (and don’t satisfy the conditions above), reload Seashell and try running your code again.

1.4.3 Error code 134 - Program Abort

This code appears when an assertion fails.

1.4.4 Error code 136 - Erroneous Arithmetic Operation

Some error occurred when the computer attempted some form of arithmetic operation. This is likely caused by: - Division by zero

1.4.5 Error code 139 - Segmentation Fault

Such an error is caused by some form of invalid memory access. This could be to access memory that the program does not have access to, or can also be caused by running out of memory. If you have received this error: - Your program/function is likely recursing infinitely, and thus running out of memory. - You have attempted to dereference/access an invalid pointer address - Dereferencing NULL - Attempting to access memory that was not returned through malloc - Accessing memory that has been free-d

1.4.6 Error code 255 - Program Timed Out

Your program took too long to run, and was terminated by Seashell.