Skip Menu |

This queue is for tickets about the App-Stacktrace CPAN distribution.

Report information
The Basics
Id: 121262
Status: open
Priority: 0/
Queue: App-Stacktrace

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc: gregoa [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.09
Fixed in: (no value)



Subject: t/unthreaded.t test fails on debian/stretch
On debian/stretch systems (various perl versions from 5.22.2 to 5.25.12) the test suite fails: ... # [Thread debugging using libthread_db enabled] # Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". # 0x00007fe4c8a6d273 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84 # 84 ../sysdeps/unix/syscall-template.S: No such file or directory. # /var/tmp/cpansmoker-1002/2017042021/_Hzpai8g9f.gdb:1761: Error in sourced command file: # Cannot access memory at address 0x21a04720 # Failed test at t/unthreaded.t line 55. # '[Thread debugging using libthread_db enabled] # Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". # 0x00007fe4c8a6d273 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84 # 84 ../sysdeps/unix/syscall-template.S: No such file or directory. # /var/tmp/cpansmoker-1002/2017042021/_Hzpai8g9f.gdb:1761: Error in sourced command file: # Cannot access memory at address 0x21a04720 # ' # doesn't match '(?^mx: # (?: # ^t/unthreaded\.t:\d+\n # ){10} # )' # Looks like you failed 1 test of 5. t/unthreaded.t ............ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests ... The tests run fine on earlier debian versions (jessie and older).
On 2017-04-21 02:11:39, SREZIC wrote: Show quoted text
> On debian/stretch systems (various perl versions from 5.22.2 to > 5.25.12) the test suite fails: > > ... > # [Thread debugging using libthread_db enabled] > # Using host libthread_db library "/lib/x86_64-linux- > gnu/libthread_db.so.1". > # 0x00007fe4c8a6d273 in __select_nocancel () at > ../sysdeps/unix/syscall-template.S:84 > # 84 ../sysdeps/unix/syscall-template.S: No such file or directory. > # /var/tmp/cpansmoker-1002/2017042021/_Hzpai8g9f.gdb:1761: Error in > sourced command file: > # Cannot access memory at address 0x21a04720 > > # Failed test at t/unthreaded.t line 55. > # '[Thread debugging using libthread_db enabled] > # Using host libthread_db library "/lib/x86_64-linux- > gnu/libthread_db.so.1". > # 0x00007fe4c8a6d273 in __select_nocancel () at > ../sysdeps/unix/syscall-template.S:84 > # 84 ../sysdeps/unix/syscall-template.S: No such file or directory. > # /var/tmp/cpansmoker-1002/2017042021/_Hzpai8g9f.gdb:1761: Error in > sourced command file: > # Cannot access memory at address 0x21a04720 > # ' > # doesn't match '(?^mx: > # (?: > # ^t/unthreaded\.t:\d+\n > # ){10} > # )' > # Looks like you failed 1 test of 5. > t/unthreaded.t ............ > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/5 subtests > ... > > > The tests run fine on earlier debian versions (jessie and older).
Same problem also on Debian/buster (current Debian/testing), and also with newer perl versions (up to 5.29.4). Currently the only method to get these tests passing is to run them in a docker container --- typically within a docker container there are no permissions to call ptrace, so the problematic test is skipped.
In addition to the old failures, t/unthreaded.t seems to consistently and differently fail with gdb 9.1. Cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=936055#20 ff.
On 2018-11-08 05:30:47, SREZIC wrote: Show quoted text
> On 2017-04-21 02:11:39, SREZIC wrote:
> > On debian/stretch systems (various perl versions from 5.22.2 to > > 5.25.12) the test suite fails: > > > > ... > > # [Thread debugging using libthread_db enabled] > > # Using host libthread_db library "/lib/x86_64-linux- > > gnu/libthread_db.so.1". > > # 0x00007fe4c8a6d273 in __select_nocancel () at > > ../sysdeps/unix/syscall-template.S:84 > > # 84 ../sysdeps/unix/syscall-template.S: No such file or > > directory. > > # /var/tmp/cpansmoker-1002/2017042021/_Hzpai8g9f.gdb:1761: Error in > > sourced command file: > > # Cannot access memory at address 0x21a04720 > > > > # Failed test at t/unthreaded.t line 55. > > # '[Thread debugging using libthread_db enabled] > > # Using host libthread_db library "/lib/x86_64-linux- > > gnu/libthread_db.so.1". > > # 0x00007fe4c8a6d273 in __select_nocancel () at > > ../sysdeps/unix/syscall-template.S:84 > > # 84 ../sysdeps/unix/syscall-template.S: No such file or > > directory. > > # /var/tmp/cpansmoker-1002/2017042021/_Hzpai8g9f.gdb:1761: Error in > > sourced command file: > > # Cannot access memory at address 0x21a04720 > > # ' > > # doesn't match '(?^mx: > > # (?: > > # ^t/unthreaded\.t:\d+\n > > # ){10} > > # )' > > # Looks like you failed 1 test of 5. > > t/unthreaded.t ............ > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/5 subtests > > ... > > > > > > The tests run fine on earlier debian versions (jessie and older).
> > Same problem also on Debian/buster (current Debian/testing), and also > with newer perl versions (up to 5.29.4). > > Currently the only method to get these tests passing is to run them in > a docker container --- typically within a docker container there are > no permissions to call ptrace, so the problematic test is skipped.
Or another possibility is to disable ptrace functionality before "make test": sudo sysctl kernel.yama.ptrace_scope=2 And enable it later again: sudo sysctl kernel.yama.ptrace_scope=0