Page MenuHomeFreeBSD

Log and report rtld error messages via utrace(2)/ktrace(1).
ClosedPublic

Authored by peterj on Jan 26 2017, 7:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 20 2024, 10:38 AM
Unknown Object (File)
Nov 6 2023, 11:33 PM
Unknown Object (File)
Oct 20 2023, 4:27 PM
Unknown Object (File)
Oct 5 2023, 10:34 PM
Unknown Object (File)
Oct 5 2023, 7:46 AM
Unknown Object (File)
Sep 14 2023, 1:56 PM
Unknown Object (File)
Jun 25 2023, 7:25 PM
Unknown Object (File)
May 4 2023, 8:25 PM
Subscribers

Details

Summary

Extend LD_UTRACE by also generating utrace(2) log events for runtime linker
errors.

MFC after: 1 week

Test Plan

Compile the following code and execute with

LD_UTRACE=yes ktrace ./a.out ; kdump -t u

Note the inclusion of error messages.


#include <dlfcn.h>
#include <err.h>
#include <stdio.h>

int main(int argc, char **argv)
{

if (dlsym(NULL, "symbol_missing") != NULL)
   errx(1, "Found unexpected symbol");
return (0);

}

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 7032
Build 7212: arc lint + arc unit

Event Timeline

peterj retitled this revision from to Log and report rtld error messages via utrace(2)/ktrace(1)..
peterj updated this object.
peterj edited the test plan for this revision. (Show Details)
peterj added reviewers: kib, jhb.
kib edited edge metadata.
This revision is now accepted and ready to land.Jan 26 2017, 11:20 AM
jhb edited edge metadata.