Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174362000
D7399.id18968.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
807 B
Referenced Files
None
Subscribers
None
D7399.id18968.diff
View Options
Index: usr.bin/truss/setup.c
===================================================================
--- usr.bin/truss/setup.c
+++ usr.bin/truss/setup.c
@@ -64,6 +64,7 @@
static void enter_syscall(struct trussinfo *, struct threadinfo *,
struct ptrace_lwpinfo *);
static void new_proc(struct trussinfo *, pid_t, lwpid_t);
+static void find_thread(struct trussinfo *info, pid_t pid, lwpid_t lwpid);
/*
* setup_and_wait() is called to start a process. All it really does
@@ -223,8 +224,10 @@
t = new_thread(p, lwps[i]);
if (ptrace(PT_LWPINFO, lwps[i], (caddr_t)&pl, sizeof(pl)) == -1)
err(1, "ptrace(PT_LWPINFO)");
- if (pl.pl_flags & PL_FLAG_SCE)
+ if (pl.pl_flags & PL_FLAG_SCE) {
+ find_thread(info, p->pid, pl.pl_lwpid);
enter_syscall(info, t, &pl);
+ }
}
free(lwps);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 4:47 PM (15 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40139234
Default Alt Text
D7399.id18968.diff (807 B)
Attached To
Mode
D7399: truss: fix uninitialized trussinfo->curthread in add_threads()/enter_syscall
Attached
Detach File
Event Timeline
Log In to Comment