[Darshan-commits] [Git][darshan/darshan][master] bug fix in fopen64 wrapper

Shane Snyder xgitlab at cels.anl.gov
Mon Oct 10 11:24:48 CDT 2016


Shane Snyder pushed to branch master at darshan / darshan


Commits:
409bb932 by Shane Snyder at 2016-10-10T11:22:15-05:00
bug fix in fopen64 wrapper

The MAP_OR_FAIL macro is resolving fopen rather than fopen64,
causing a NULL function pointer to be executed in the wrapper
in the case of using Darshan's LD_PRELOAD mechanism.

- - - - -


1 changed file:

- darshan-runtime/lib/darshan-stdio.c


Changes:

=====================================
darshan-runtime/lib/darshan-stdio.c
=====================================
--- a/darshan-runtime/lib/darshan-stdio.c
+++ b/darshan-runtime/lib/darshan-stdio.c
@@ -271,7 +271,7 @@ FILE* DARSHAN_DECL(fopen64)(const char *path, const char *mode)
     FILE* ret;
     double tm1, tm2;
 
-    MAP_OR_FAIL(fopen);
+    MAP_OR_FAIL(fopen64);
 
     tm1 = darshan_core_wtime();
     ret = __real_fopen64(path, mode);



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/409bb932c2379187d84abdfe63d4ed984b53ff70
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20161010/31ca9c42/attachment.html>


More information about the Darshan-commits mailing list