public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/107625] New: RFE: analyzer support for dlopen etc
@ 2022-11-10 22:48 dmalcolm at gcc dot gnu.org
2022-11-10 22:54 ` [Bug analyzer/107625] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-11-10 22:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107625
Bug ID: 107625
Summary: RFE: analyzer support for dlopen etc
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: dmalcolm at gcc dot gnu.org
Target Milestone: ---
Perhaps the analyzer could support:
* dlopen
* dlclose
* dlsym
Notes: see:
https://man7.org/linux/man-pages/man3/dlopen.3.html (covers dlclose also)
https://man7.org/linux/man-pages/man3/dlsym.3.html
Potentially we could track:
- dlopen succeeding vs dlopen failing
- dlsym after dlclose
- double-'dlclose'
- pointers returned from dlsym becoming invalid after dlclose (e.g.
attempting to call a function after a 'dlclose')
(potentially create a region for the "dlopen", putting code/data within it,
so that we can track the memory regions that become invalid after dlclose)
Would be great to be able to do some kind of type-checking on the result of
"dlsym", but I'm not sure how we could reliably get at the actual type of the
symbol.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug analyzer/107625] RFE: analyzer support for dlopen etc
2022-11-10 22:48 [Bug analyzer/107625] New: RFE: analyzer support for dlopen etc dmalcolm at gcc dot gnu.org
@ 2022-11-10 22:54 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-10 22:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107625
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
dlmopen should be supported too (it is described in the same man page as
dlopen).
Note here is the POSIX 2018 page for dlopen:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-10 22:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 22:48 [Bug analyzer/107625] New: RFE: analyzer support for dlopen etc dmalcolm at gcc dot gnu.org
2022-11-10 22:54 ` [Bug analyzer/107625] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).