Replies: 3 comments 3 replies
-
If you disable |
Beta Was this translation helpful? Give feedback.
-
Both mkstemp() calls can be safety disabled. For temporary files, there is a backup mechanism to create them if mkstemp() is not called or fails. For random #'s, mkstemp() adds entropy but without the call there is still plenty of entropy to generate the random # . ImageMagick still requires temporary files, without mkstemp(), we call open() on a temporary file path instead. You can of course set the temporary file path, it defaults to /tmp, but the temporary files are still created. Are you suggesting that the dentry cache is affected by mkstemp() or creating temporary files in general? Is the issue related to exclusive access to prevent race conditions for temporary files? To disable the mkstemp() call, uncomment MAGICKCORE_HAVE_MKSTEMP in *baseconfig.h and rebuild/reinstall ImageMagick to eliminate the mkstemp() call. |
Beta Was this translation helpful? Give feedback.
-
Creating a temporary file is likely excessive work for generating entropy. We'll replace this code with a new source of entropy within the next few days. |
Beta Was this translation helpful? Give feedback.
-
Hi, we are using imagemagick-core and imagemagick++ in our image process server, and we noticed that sometimes imagemagick call
mkstemp
, which create temp files and dentry cache for those file, but sometimes, core wouldn't GC those dentry cache, we don't know why yet.In our core version and Docker version, mkstemp caused Slab memory leak, restart container is not working for us, is that OK if I want to disable mkstemp?
Beta Was this translation helpful? Give feedback.
All reactions