Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131623487
D9347.id24470.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9347.id24470.diff
View Options
Index: lib/libsysdecode/utrace.c
===================================================================
--- lib/libsysdecode/utrace.c
+++ lib/libsysdecode/utrace.c
@@ -124,6 +124,10 @@
fprintf(fp, "RTLD: %p = dlsym(%p, %s)", ut->mapbase, ut->handle,
ut->name);
break;
+ case UTRACE_RTLD_ERROR:
+ fprintf(fp, "RTLD: error: %s\n", ut->name);
+ break;
+
default:
return (0);
}
Index: libexec/rtld-elf/rtld.c
===================================================================
--- libexec/rtld-elf/rtld.c
+++ libexec/rtld-elf/rtld.c
@@ -764,6 +764,7 @@
rtld_vsnprintf(buf, sizeof buf, fmt, ap);
error_message = buf;
va_end(ap);
+ LD_UTRACE(UTRACE_RTLD_ERROR, NULL, NULL, 0, 0, error_message);
}
/*
Index: libexec/rtld-elf/rtld_utrace.h
===================================================================
--- libexec/rtld-elf/rtld_utrace.h
+++ libexec/rtld-elf/rtld_utrace.h
@@ -45,6 +45,7 @@
#define UTRACE_FINI_CALL 10
#define UTRACE_DLSYM_START 11
#define UTRACE_DLSYM_STOP 12
+#define UTRACE_RTLD_ERROR 13
#define RTLD_UTRACE_SIG_SZ 4
#define RTLD_UTRACE_SIG "RTLD"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 10, 8:22 PM (2 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23545548
Default Alt Text
D9347.id24470.diff (1 KB)
Attached To
Mode
D9347: Log and report rtld error messages via utrace(2)/ktrace(1).
Attached
Detach File
Event Timeline
Log In to Comment