New comment by st3r4g on void-packages repository https://github.com/void-linux/void-packages/pull/31549#issuecomment-872935639 Comment: ``` Starting program: /builddir/pipewire-0.3.31/build/test/test-pwtest [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". [Detaching after fork from child process 9045] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7dae371 in __GI__IO_fwrite (buf=buf@entry=0x555555559053, size=size@entry=1, count=count@entry=7, fp=fp@entry=0x0) at iofwrite.c:37 37 iofwrite.c: No such file or directory. (gdb) bt #0 0x00007ffff7dae371 in __GI__IO_fwrite (buf=buf@entry=0x555555559053, size=size@entry=1, count=count@entry=7, fp=fp@entry=0x0) at iofwrite.c:37 #1 0x00005555555581f2 in fprintf (__fmt=0x555555559053 "pwtest\n", __stream=0x0) at /usr/include/bits/stdio2.h:103 #2 make_xdg_runtime_dir () at ../test/pwtest.c:1077 #3 0x00005555555566e2 in main (argc=, argv=) at ../test/pwtest.c:1271 (gdb) f 2 #2 make_xdg_runtime_dir () at ../test/pwtest.c:1077 1077 fprintf(fp, "pwtest\n"); (gdb) l 1072 /* Marker file to avoid removing a random directory during cleanup */ 1073 r = spa_scnprintf(path, sizeof(path), "%s/pwtest.dir", dir); 1074 spa_assert((size_t)r == strlen(dir) + 11); 1075 fp = fopen(path, "w"); 1076 spa_assert(fp); 1077 fprintf(fp, "pwtest\n"); 1078 fclose(fp); 1079 1080 return dir; 1081 } (gdb) p fp $1 = (FILE *) 0x0 (gdb) p path $2 = "/tmp/pwtest-11:35-XXXXXX/pwtest.dir", '\000' ... (gdb) p dir $3 = 0x55555555da20 "/tmp/pwtest-11:35-XXXXXX" ``` `mkdtemp` doesn't work in the build environment?