Lines Matching +full:120 +full:- +full:db

15 # --- syscall (0, FreeBSD ELF64, nosys), rip = 0x82317b7da, rsp = 0x826544f48, rbp = 0x826544f70 ---
19 # db> x/s version
20 # FreeBSD 14.0-CURRENT #0 main-n255381-cbbce42345c51: Sun May 8 09:55:50 CEST 2022
22 # db>
24 [ `uname -p` != "amd64" ] && exit 0
30 // Reported-by: syzbot+9db4640d67478a0ced08@syzkaller.appspotmail.com
57 while (waitpid(-1, status, 0) != pid) {
103 if (pthread_mutex_init(&ev->mu, 0))
105 if (pthread_cond_init(&ev->cv, 0))
107 ev->state = 0;
112 ev->state = 0;
117 pthread_mutex_lock(&ev->mu);
118 if (ev->state)
120 ev->state = 1;
121 pthread_mutex_unlock(&ev->mu);
122 pthread_cond_broadcast(&ev->cv);
127 pthread_mutex_lock(&ev->mu);
128 while (!ev->state)
129 pthread_cond_wait(&ev->cv, &ev->mu);
130 pthread_mutex_unlock(&ev->mu);
135 pthread_mutex_lock(&ev->mu);
136 int res = ev->state;
137 pthread_mutex_unlock(&ev->mu);
145 pthread_mutex_lock(&ev->mu);
147 if (ev->state)
149 uint64_t remain = timeout - (now - start);
153 pthread_cond_timedwait(&ev->cv, &ev->mu, &ts);
155 if (now - start > timeout)
158 int res = ev->state;
159 pthread_mutex_unlock(&ev->mu);
176 event_wait(&th->ready);
177 event_reset(&th->ready);
178 execute_call(th->call);
180 event_set(&th->done);
192 if (!th->created) {
193 th->created = 1;
194 event_init(&th->ready);
195 event_init(&th->done);
196 event_set(&th->done);
199 if (!event_isset(&th->done))
201 event_reset(&th->done);
202 th->call = call;
204 event_set(&th->ready);
205 event_timedwait(&th->done, 50);
231 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
234 if (current_time_ms() - start < 5000)
251 if (res != -1)
259 if (res != -1)
263 syscall(SYS_sendto, -1, 0ul, 0ul, 0ul, 0ul, 0ul);
266 syscall(SYS_dup2, r[1], -1);
269 res = syscall(SYS_dup2, -1, -1);
270 if (res != -1)
274 res = syscall(SYS_dup2, -1, r[2]);
275 if (res != -1)
282 syscall(SYS_sendto, -1, 0ul, 0ul, 0ul, 0ul, 0ul);
296 *(uint32_t*)0x20000090 = -1;
304 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul);
314 mycc -o /tmp/syzkaller54 -Wall -Wextra -O0 /tmp/syzkaller54.c -l pthread ||
318 while [ $((`date +%s` - start)) -lt 120 ]; do
322 rm -rf /tmp/syzkaller54 /tmp/syzkaller54.c /tmp/syzkaller54.core \