Your message dated Wed, 26 Mar 2025 15:49:47 +0000
with message-id <e1txt0l-008zao...@fasolo.debian.org>
and subject line Bug#1101361: fixed in ltrace 0.7.91~git20230705.8eabf68-4
has caused the Debian Bug report #1101361,
regarding ltrace crashes when attaching to a process that links a deleted 
library
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1101361: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101361
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ltrace
Version: 0.7.3+git20240814-0.3
Severity: normal
Tags: upstream
X-Debbugs-Cc: ri...@google.com

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

emacs was hung with 100% CPU utilisation. I wanted to know why.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I attempted to diagnose the problem using "ltrace -p".

   * What was the outcome of this action?

ltrace crashed because one of the libraries that emacs linked against wasn't
present in the filesystem, probably because it had been upgraded.

   * What outcome did you expect instead?

ltrace shows me what emacs is doing (or nothing if emacs is just spinning inside
its own code).

I wrote this shell script to reproduce the issue

"""
#!/bin/sh -e

cd `mktemp -d`
echo "===> Building in $PWD ..."

cat <<__END__ > lib.h
void DoNothing();
__END__

cat <<__END__ > lib.c
#include "lib.h"

void DoNothing() {}
__END__

gcc -shared -O -o liblib.so -Wall -Werror -fPIC lib.c

cat <<__END__ > main.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "lib.h"

int main() {
  if (unlink("liblib.so") == -1) {
    perror("unlink liblib.so");
    exit(1);
  }
  while (1) {
    sleep(1);
    DoNothing();
  }
  return 0;
}
__END__

gcc -L$PWD -Wl,-rpath=$PWD -Wall -Werror -O -o bin main.c -llib

./bin &

echo "===> Running ltrace -p $! ..."
ltrace -p $!
"""

/proc/sys/kernel/yama/ptrace_scope must contain the value 0 for this to work.

Sample output:
"""
===> Building in /tmp/tmp.oldWtch6po ...
===> Running ltrace -p 4025257 ...
Can't open /tmp/tmp.oldWtch6po/liblib.so: No such file or directory
Couldn't determine base address of /tmp/tmp.oldWtch6po/liblib.so
ltrace: ltrace-elf.c:426: ltelf_destroy: Assertion 
`(&lte->plt_relocs)->elt_size == sizeof(GElf_Rela)' failed.
"""

Backtrace from gdb:
"""
#0  __pthread_kill_implementation (threadid=<optimized out>, 
signo=signo@entry=6, no_tid=no_tid@entry=0)
    at ./nptl/pthread_kill.c:44
#1  0x00007f63dfed3ebf in __pthread_kill_internal (threadid=<optimized out>, 
signo=6)
    at ./nptl/pthread_kill.c:78
#2  0x00007f63dfe7fd82 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/posix/raise.c:26
#3  0x00007f63dfe684f0 in __GI_abort () at ./stdlib/abort.c:79
#4  0x00007f63dfe68418 in __assert_fail_base (
    fmt=0x7f63dffecca0 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
    assertion=assertion@entry=0x557841e313e0 "(&lte->plt_relocs)->elt_size == 
sizeof(GElf_Rela)",
    file=file@entry=0x557841e331ec "ltrace-elf.c", line=line@entry=426,
    function=function@entry=0x557841e367d0 <__PRETTY_FUNCTION__.5> 
"ltelf_destroy") at ./assert/assert.c:96
#5  0x00007f63dfe78692 in __assert_fail (
    assertion=assertion@entry=0x557841e313e0 "(&lte->plt_relocs)->elt_size == 
sizeof(GElf_Rela)",
    file=file@entry=0x557841e331ec "ltrace-elf.c", line=line@entry=426,
    function=function@entry=0x557841e367d0 <__PRETTY_FUNCTION__.5> 
"ltelf_destroy") at ./assert/assert.c:105
#6  0x0000557841e0e07a in ltelf_destroy (lte=0x7ffd79d48fb0) at 
./ltrace-elf.c:426
#7  ltelf_destroy (lte=0x7ffd79d48fb0) at ./ltrace-elf.c:421
#8  0x0000557841e0fa83 in read_module (lib=lib@entry=0x55785b1a97f0, 
proc=proc@entry=0x55785b1e5620,
    filename=filename@entry=0x7ffd79d49180 "/tmp/tmp.oldWtch6po/liblib.so", 
bias=<optimized out>,
    main=main@entry=0) at ./ltrace-elf.c:1180
#9  0x0000557841e0fbec in ltelf_read_library (lib=lib@entry=0x55785b1a97f0, 
proc=proc@entry=0x55785b1e5620,
    filename=filename@entry=0x7ffd79d49180 "/tmp/tmp.oldWtch6po/liblib.so", 
bias=<optimized out>)
    at ./ltrace-elf.c:1290
#10 0x0000557841e07caa in crawl_linkmap (proc=proc@entry=0x55785b1e5620, 
dbg=dbg@entry=0x7ffd79d4b1e0)
    at ./sysdeps/linux-gnu/proc.c:547
#11 0x0000557841e08678 in linkmap_init (proc=proc@entry=0x55785b1e5620, 
dyn_addr=<optimized out>)
    at ./sysdeps/linux-gnu/proc.c:627
#12 0x0000557841dfed35 in process_hit_start (proc=<optimized out>) at 
./proc.c:537
#13 0x0000557841dfef12 in open_pid (pid=4025257) at ./proc.c:597
#14 0x0000557841dfccd7 in ltrace_init (argc=<optimized out>, argv=<optimized 
out>) at ./libltrace.c:141
#15 0x0000557841dfc96d in main (argc=<optimized out>, argv=<optimized out>) at 
./main.c:47
"""

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: rodete
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.10.11-1rodete2-amd64 (SMP w/64 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en_US
Shell: /bin/sh linked to /usr/bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ltrace depends on:
ii  libc6        2.40-6+gl0
ii  libelf1t64   0.192-4
ii  libselinux1  3.7-3

ltrace recommends no packages.

ltrace suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: ltrace
Source-Version: 0.7.91~git20230705.8eabf68-4
Done: наб <nabijaczlew...@nabijaczleweli.xyz>

We believe that the bug you reported is fixed in the latest version of
ltrace, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1101...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
наб <nabijaczlew...@nabijaczleweli.xyz> (supplier of updated ltrace package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 26 Mar 2025 16:22:55 +0100
Source: ltrace
Binary: ltrace ltrace-dbgsym
Architecture: source amd64
Version: 0.7.91~git20230705.8eabf68-4
Distribution: unstable
Urgency: medium
Maintainer: наб <nabijaczlew...@nabijaczleweli.xyz>
Changed-By: наб <nabijaczlew...@nabijaczleweli.xyz>
Description:
 ltrace     - Tracks runtime library calls in dynamically linked programs
Closes: 1101361
Changes:
 ltrace (0.7.91~git20230705.8eabf68-4) unstable; urgency=medium
 .
   * d/p/:
     0025  Fix SIGABRT if ltelf_init() early-exited (Closes: #1101361)
Checksums-Sha1:
 908348d932c3d614e5f1f0ca20fa1af181adabed 2243 
ltrace_0.7.91~git20230705.8eabf68-4.dsc
 fedc781548f59ecabbfea1727c29e92733b81075 272084 
ltrace_0.7.91~git20230705.8eabf68.orig.tar.xz
 f9fc69719ac4f0bd396eaddd36673f27736f06e8 42028 
ltrace_0.7.91~git20230705.8eabf68-4.debian.tar.xz
 228b25a2e2640349666b842ffdc772fdc5ab178b 291776 
ltrace-dbgsym_0.7.91~git20230705.8eabf68-4_amd64.deb
 2c01acdae490af1268f66fa95862461c49c3af69 7751 
ltrace_0.7.91~git20230705.8eabf68-4_amd64.buildinfo
 5533c293af99ffa368c93571bc0055481021d6cf 149672 
ltrace_0.7.91~git20230705.8eabf68-4_amd64.deb
Checksums-Sha256:
 9bc1f82f299da78d6e57944e3e473930672223613394d3119237f7f0ef4809bd 2243 
ltrace_0.7.91~git20230705.8eabf68-4.dsc
 da0317b2e6951a035fa606a89e82dc5f99623b6a30ef71bc08c5d23bf00b9ef1 272084 
ltrace_0.7.91~git20230705.8eabf68.orig.tar.xz
 156ce0f3b07eeed72aec1632891cc90a941c2798174862b08950650165cdbfbb 42028 
ltrace_0.7.91~git20230705.8eabf68-4.debian.tar.xz
 46793588142e0fc16bf7482a2e27a7a84f0f438e38671964b1291c607455aa3a 291776 
ltrace-dbgsym_0.7.91~git20230705.8eabf68-4_amd64.deb
 602bd55f8c26bbfa488068da7b1df7b3c7d4d457473bb3279c8aac183c968104 7751 
ltrace_0.7.91~git20230705.8eabf68-4_amd64.buildinfo
 6dd8de15fedbb81fdcc88358f26c605678b40dc021c141644cd576e61322cf70 149672 
ltrace_0.7.91~git20230705.8eabf68-4_amd64.deb
Files:
 d295bfaaf73d81b011254ce489ad11d1 2243 utils optional 
ltrace_0.7.91~git20230705.8eabf68-4.dsc
 078c6a958a95c0bedb138a5cda34ba5e 272084 utils optional 
ltrace_0.7.91~git20230705.8eabf68.orig.tar.xz
 81c58c35e55d6b9ffe9693d484cbb334 42028 utils optional 
ltrace_0.7.91~git20230705.8eabf68-4.debian.tar.xz
 a53e3fc4eece7773b21b556a3d6d7cca 291776 debug optional 
ltrace-dbgsym_0.7.91~git20230705.8eabf68-4_amd64.deb
 b2fca78caeb0c1012f4b9d191889b893 7751 utils optional 
ltrace_0.7.91~git20230705.8eabf68-4_amd64.buildinfo
 abcaa456d5c384e7ee56337de7a93c8d 149672 utils optional 
ltrace_0.7.91~git20230705.8eabf68-4_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQJWBAEBCgBAFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmfkHFoiHG5hYmlqYWN6
bGV3ZWxpQG5hYmlqYWN6bGV3ZWxpLnh5egAKCRC8/QsBjSZY8RtDD/9H+kUk67AH
YIvwxmBSkWoIXn5rQLwIg5uZE0FM8MsN2hYR1eoGhQbjDgIeu3xl+zi6Fd7GBhx9
U+s0mDOgdWxdoXeOxrqGFFKy5basrPO1J1NAtsMUiD+1k6jD9wGyGqLTXAGQyOxd
s4mJ2qaf+xnZ+B9vh9YWlqvYiBy0fpp1rC/Tk5+NT2Pj0hLswLOQRNPCfp7TVgnx
FTGLqnXzShu39L2/1ox6BDlCYsw4mugAUjZ0vB/e0pdhyDl5ffr8dym5VIIjbWvj
RyPZ/ihSnf9vnOd1sO3cm1B9evk/iaUCP8HRx1i/zTNFZVF5bWSbEasoV8DvJgbg
9+ogEPF2QCOc72vvEHdc57TsaScsritq7KksAByF6jqlyTrbMATPReHdnB9K4OFf
6jOzzTuVIw6PTNY6tIIhB1uhKvw7LMfmh6jxJUaa26fDfGijphMogYUj3m9507Mt
nOAzD3nWRZxRmE3D/MqZlfPA4xnVnpQUcmuOCEJdV79ZW7uwrMXI3zSVCV/DTW3y
H/7D/MrEmA4gNjYkSvhbzmgefo3YWoed/Vv9rdibr2wFTdLxQywPZU60bVW1i86Y
5D3fMhWnLp7VGYdADbNHntmAl+LeqiY3m9ES4rOyFI0eZ4O/p3MTWE6SK34FKTps
ppkZPawHA6B/F7ZtHmMbZ7OOuEbNi2M/Yw==
=Kdja
-----END PGP SIGNATURE-----

Attachment: pgpx1A1qOFWdf.pgp
Description: PGP signature


--- End Message ---

Reply via email to