[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#948613: wcc: autopkgtests try to dlopen PIE executables



Package: wcc
Version: 0.0.2+dfsg-3
Severity: serious

Dear wcc maintainers,

The wcc autopkgtests try to dlopen some PIE executables (namely
/usr/bin/ssh). This has never been really supported, and this fails with
an error message in recent glibc versions. This cause the autopkgtest to
fail:

| autopkgtest [11:11:14]: test command1: ./debian/tests/wsh-ssl.wsh /usr/bin/ssh
| autopkgtest [11:11:14]: test command1: [-----------------------
| ERROR: dlopen() /usr/bin/ssh: cannot dynamically load position-independent executable 
| ERROR: dlopen() of patched file! //tmp/.wsh-1902/ssh: cannot dynamically load position-independent executable 
| WARNING: No binary loaded in memory. Try loadbin(). For help type help("loadbin").
| lua_pcall() failed with ./debian/tests/wsh-ssl.wsh:6: attempt to call a nil value (global 'MD5_Init'), for: ./debian/tests/wsh-ssl.wsh
| init
|  ** libifying /usr/bin/ssh to //tmp/.wsh-1902/ssh (760616 bytes)
| -- input: my best friend is a little poney !
| -- md5 hexdump
| autopkgtest [11:11:15]: test command1: -----------------------]
| autopkgtest [11:11:15]: test command1:  - - - - - - - - - - results - - - - - - - - - -
| command1             FAIL non-zero exit status 42

(see https://ci.debian.net/data/autopkgtest/testing/amd64/w/wcc/3942223/log.gz)

You can see reason for disabling dlopening PIE binaries in this upstream
bug report:
https://sourceware.org/bugzilla/show_bug.cgi?id=24323

It is unclear to me what this change means for the wcc testsuite and for
the usability of the wcc package. Could you please explain me how is it
used?

Thanks,
Aurelien

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-3-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wcc depends on:
ii  libbinutils   2.33.1-6
ii  libc6         2.29-7
ii  libcapstone3  4.0.1+really+3.0.5-1+b1
ii  libelf1       0.176-1.1
ii  liblua5.3-0   5.3.3-1.1+b1

wcc recommends no packages.

Versions of packages wcc suggests:
pn  lua  <none>


Reply to: