Lines Matching +full:sig +full:- +full:dir
3 # $ pgrep syzkaller21 | xargs ps -lHp
5 # 0 3891 1 0 20 0 29828 2852 - T 0 0:00,14 ./syzkaller21
8 # $ pgrep syzkaller21 | xargs procstat -k
10 # 3891 100250 syzkaller21 - mi_switch thread_suspend_switch thread_singl…
11 # 3891 100777 syzkaller21 - mi_switch sleepq_switch sleeplk lockmgr_xloc…
12 # 3891 100778 syzkaller21 - mi_switch sleepq_switch sleeplk lockmgr_sloc…
13 # $ uname -a
14 # FreeBSD t2.osted.lan 13.0-CURRENT FreeBSD 13.0-CURRENT #5 r363786M: Tue Aug 4 16:51:52 CEST 2020
18 [ `uname -p` != "amd64" ] && exit 0
50 static void segv_handler(int sig, siginfo_t* info, void* ctx __unused)
52 uintptr_t addr = (uintptr_t)info->si_addr;
59 exit(sig);
84 while (waitpid(-1, status, 0) != pid) {
113 static void remove_dir(const char* dir)
115 DIR* dp;
117 dp = opendir(dir);
121 if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0)
124 snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name);
136 if (rmdir(dir))
169 if (pthread_mutex_init(&ev->mu, 0))
171 if (pthread_cond_init(&ev->cv, 0))
173 ev->state = 0;
178 ev->state = 0;
183 pthread_mutex_lock(&ev->mu);
184 if (ev->state)
186 ev->state = 1;
187 pthread_mutex_unlock(&ev->mu);
188 pthread_cond_broadcast(&ev->cv);
193 pthread_mutex_lock(&ev->mu);
194 while (!ev->state)
195 pthread_cond_wait(&ev->cv, &ev->mu);
196 pthread_mutex_unlock(&ev->mu);
201 pthread_mutex_lock(&ev->mu);
202 int res = ev->state;
203 pthread_mutex_unlock(&ev->mu);
211 pthread_mutex_lock(&ev->mu);
213 if (ev->state)
215 uint64_t remain = timeout - (now - start);
219 pthread_cond_timedwait(&ev->cv, &ev->mu, &ts);
221 if (now - start > timeout)
224 int res = ev->state;
225 pthread_mutex_unlock(&ev->mu);
242 event_wait(&th->ready);
243 event_reset(&th->ready);
244 execute_call(th->call);
246 event_set(&th->done);
260 if (!th->created) {
261 th->created = 1;
262 event_init(&th->ready);
263 event_init(&th->done);
264 event_set(&th->done);
267 if (!event_isset(&th->done))
269 event_reset(&th->done);
270 th->call = call;
272 event_set(&th->ready);
275 event_timedwait(&th->done, 45);
311 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
314 if (current_time_ms() - start < 5 * 1000)
333 if (res != -1)
343 if (res != -1)
353 if (res != -1)
364 if (res != -1)
378 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul);
385 mycc -o /tmp/syzkaller21 -Wall -Wextra -O2 /tmp/syzkaller21.c -lpthread ||
388 (cd ../testcases/swap; ./swap -t 1m -i 20 -h > /dev/null 2>&1) &
392 pkill -9 syzkaller21
394 if pgrep -q syzkaller21; then
395 pgrep syzkaller21 | xargs ps -lHp
396 pgrep syzkaller21 | xargs procstat -k
401 rm -rf /tmp/syzkaller21.*
402 rm -f /tmp/syzkaller21