[DynInst_API:] [dyninst/dyninst] f049fe: Fix BinaryEdit::getResolvedLibraryPath for Ubuntu ...


Date: Fri, 24 Feb 2023 14:27:30 -0800
From: "Jonathan R. Madsen" <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] f049fe: Fix BinaryEdit::getResolvedLibraryPath for Ubuntu ...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: f049fe855640832950f5a6cd87db23ecb4b7533b
      https://github.com/dyninst/dyninst/commit/f049fe855640832950f5a6cd87db23ecb4b7533b
  Author: Jonathan R. Madsen <jrmadsen@xxxxxxxxxxxxxxxxxxxxxxxx>
  Date:   2023-02-24 (Fri, 24 Feb 2023)

  Changed paths:
    M dyninstAPI/src/linux.C

  Log Message:
  -----------
  Fix BinaryEdit::getResolvedLibraryPath for Ubuntu 22.04 (#1362)

* Fix BinaryEdit::getResolvedLibraryPath for Ubuntu 22.04

- the main issue was `/sbin/ldconfig -p` on Ubuntu 22.04 has an extra line at the end: "Cache generated by: ldconfig (Ubuntu GLIBC 2.35-0ubuntu3) stable release version 2.35"
  - this would result in an occasionaly segfault
- refactored the rest to avoid strtok which is known to have a fair amount of problems

* fix header includes and message about delimit issues


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] f049fe: Fix BinaryEdit::getResolvedLibraryPath for Ubuntu ..., Jonathan R. Madsen <=