X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a6c2be12b4d17ce974615f3df3bfbd32c0bf1bee..28aa6d614c61c692bf1a32fbe17abce75bb02022:/include/xbt/ex.h diff --git a/include/xbt/ex.h b/include/xbt/ex.h index 843cf6d31e..dcdbd7abd4 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -157,7 +157,14 @@ typedef struct { __ex_mctx_struct } __ex_mctx_t; * This is because there is some hidden setup and * cleanup that needs to be done regardless of whether an exception is * caught. Bypassing these steps will break the exception handling facility. - * + * The symptom are likely to be a segfault at the next exception raising point, + * ie far away from the point where you did the mistake. If you suspect + * that kind of error in your code, have a look at the little script + * tools/xbt_exception_checker in the CVS. It extracts all the TRY + * blocks from a set of C files you give it and display them (and only + * them) on the standard output. You can then grep for the forbidden + * keywords on that output. + * * The CLEANUP and CATCH blocks are regular ISO-C language statement * blocks without any restrictions. You are even allowed to throw (and, in the * CATCH block, to re-throw) exceptions. @@ -165,7 +172,7 @@ typedef struct { __ex_mctx_struct } __ex_mctx_t; * There is one subtle detail you should remember about TRY blocks: * Variables used in the CLEANUP or CATCH clauses must be declared with * the storage class "volatile", otherwise they might contain outdated - * information if an exception it thrown. + * information if an exception is thrown. * * * This is because you usually do not know which commands in the TRY