Discussion:
Shared memory region between forked processes?
Sunha Ahn
2013-06-13 19:34:19 UTC
Permalink
Hi all,

Is there any way to make a shared memory between forked processes?
I am looking for something like mmap.
It would be great if someone has any idea about this!

Best regards,
Sunha.
Paul Marinescu
2013-06-14 08:59:08 UTC
Permalink
Hi,
Vanilla KLEE does not support multi-threading/multi-processes. If you're using an extension, implementing shared memory/mmap depends on how multi-processes are implemented, but it essentially amounts to creating an mmap model, similar in principle to the existing models (see the runtime/POSIX/ folder for examples).

Best,
Paul
Post by Sunha Ahn
Hi all,
Is there any way to make a shared memory between forked processes?
I am looking for something like mmap.
It would be great if someone has any idea about this!
Best regards,
Sunha.
_______________________________________________
klee-dev mailing list
https://mailman.ic.ac.uk/mailman/listinfo/klee-dev
Jonathan Neuschäfer
2013-06-14 09:05:32 UTC
Permalink
Post by Sunha Ahn
Hi all,
Is there any way to make a shared memory between forked processes?
I am looking for something like mmap.
It would be great if someone has any idea about this!
How is this related to KLEE, do you want KLEE to analyze this shared
memory? I don't think this is currently possible with vanillia KLEE, but
you may find something useful at the publications page:
http://klee.llvm.org/Publications.html

Otherwise, see the shm_open family of functions.


HTH,
Jonathan Neuschäfer

Continue reading on narkive:
Loading...