如何在 SimGrid 中创建文件?

How to create files in SimGrid?

是否可以在 SimGrid 中创建文件?

例如,在某些执行程序创建文件并将输出写入其中 Msg_file_write() 之后。

为此,我尝试使用 Msg_file_open() 和不存在的名称,希望 simgrid 会创建一个新文件。但是编译器只给了我一个

Segmentation fault.

MSG_file_write 和 MSG_file_open 的行为在 https://github.com/simgrid/simgrid/blob/master/examples/msg/io-file/io-file.c 中得到了例证 和 https://github.com/simgrid/simgrid/blob/master/examples/msg/io-storage/io-storage.c

关于您的具体问题,需要"I got a Segmentation fault"以上的帮助。您是否有任何可重现您的问题的最小工作示例,或者至少有一些回溯?