Lines Matching +full:sig +full:- +full:dir
3 # panic: Bad link elm 0xfffff80b62eb7500 prev->next != elm
21 # --- syscall (1, FreeBSD ELF64, sys_sys_exit), rip = 0x80045376a, rsp = 0x7fffffffe4c8, rbp = 0x7f…
23 [ `uname -p` != "amd64" ] && exit 0
57 static void segv_handler(int sig, siginfo_t* info, void* ctx __unused)
59 uintptr_t addr = (uintptr_t)info->si_addr;
64 if (sig == SIGBUS) {
70 exit(sig);
95 while (waitpid(-1, status, 0) != pid) {
124 static void remove_dir(const char* dir)
126 DIR* dp = opendir(dir);
131 if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0)
134 snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name);
146 if (rmdir(dir))
179 if (pthread_mutex_init(&ev->mu, 0))
181 if (pthread_cond_init(&ev->cv, 0))
183 ev->state = 0;
188 ev->state = 0;
193 pthread_mutex_lock(&ev->mu);
194 if (ev->state)
196 ev->state = 1;
197 pthread_mutex_unlock(&ev->mu);
198 pthread_cond_broadcast(&ev->cv);
203 pthread_mutex_lock(&ev->mu);
204 while (!ev->state)
205 pthread_cond_wait(&ev->cv, &ev->mu);
206 pthread_mutex_unlock(&ev->mu);
211 pthread_mutex_lock(&ev->mu);
212 int res = ev->state;
213 pthread_mutex_unlock(&ev->mu);
221 pthread_mutex_lock(&ev->mu);
223 if (ev->state)
225 uint64_t remain = timeout - (now - start);
229 pthread_cond_timedwait(&ev->cv, &ev->mu, &ts);
231 if (now - start > timeout)
234 int res = ev->state;
235 pthread_mutex_unlock(&ev->mu);
252 event_wait(&th->ready);
253 event_reset(&th->ready);
254 execute_call(th->call);
256 event_set(&th->done);
270 if (!th->created) {
271 th->created = 1;
272 event_init(&th->ready);
273 event_init(&th->done);
274 event_set(&th->done);
277 if (!event_isset(&th->done))
279 event_reset(&th->done);
280 th->call = call;
282 event_set(&th->ready);
285 event_timedwait(&th->done, 45);
321 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
324 if (current_time_ms() - start < 5 * 1000)
342 if (res != -1)
347 if (res != -1)
384 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul);
391 mycc -o /tmp/syzkaller23 -Wall -Wextra -O0 /tmp/syzkaller23.c -lpthread ||
399 rm -rf /tmp/syzkaller23 /tmp/syzkaller23.c /tmp/syzkaller.*