Skip to content

Regression in LTTng behavior after upgrading to 1.10.2 #20818

@MichaelSimons

Description

@MichaelSimons

Output of docker version:

Client:
 Version:      1.10.2
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   c3959b1
 Built:        Mon Feb 22 22:37:33 2016
 OS/Arch:      darwin/amd64

Server:
 Version:      1.10.2
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   c3959b1
 Built:        Mon Feb 22 22:37:33 2016
 OS/Arch:      linux/amd64

Output of docker info:

Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 3
Server Version: 1.10.2
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 10
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Plugins: 
 Volume: local
 Network: bridge null host
Kernel Version: 4.1.18-boot2docker
Operating System: Boot2Docker 1.10.2 (TCL 6.4.1); master : 611be10 - Mon Feb 22 22:47:06 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.956 GiB
Name: default
ID: IJCF:IXCO:C32D:S3BP:3WRN:VFRE:DKKL:ZOPL:ZJAZ:ORJG:GJSV:K2WC
Debug mode (server): true
 File Descriptors: 10
 Goroutines: 22
 System Time: 2016-03-01T15:34:54.098983226Z
 EventsListeners: 0
 Init SHA1: 
 Init Path: /usr/local/bin/docker
 Docker Root Dir: /mnt/sda1/var/lib/docker
Username: msimons
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox

List the steps to reproduce the issue:

  1. Create a Dockerfile with the following content
FROM buildpack-deps:trusty-scm

RUN apt-get update
RUN apt-get install -y liblttng-ust0

RUN LD_PRELOAD=liblttng-ust-cyg-profile.so.0 ls
  1. Build the Dockerfile - docker built -t lttngAssert

Describe the results you received:
The RUN LD_PRELOAD=liblttng-ust-cyg-profile.so.0 ls command fails

Step 4 : RUN LD_PRELOAD=liblttng-ust-cyg-profile.so.0 ls
 ---> Running in 0c95e425c5c8
ls: lttng-ust-comm.c:1446: lttng_ust_init: Assertion `!ret' failed.
Aborted
The command '/bin/sh -c LD_PRELOAD=liblttng-ust-cyg-profile.so.0 ls' returned a non-zero code: 134

Describe the results you expected:
The behavior I see is a regression from Docker 1.9.1. The lttng library should load without failure.

This works in the following environment before the machine was upgraded to docker 1.10.2:

Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      darwin/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      linux/amd64

This docker file also works within the Ubuntu 14.04 environment I have with docker 1.10.2 installed. Could this issue possibly be boot2docker related?

Provide additional info you think is important:
The real scenario this issue was discovered with is dotnet/cli#1582

There is a more recent version of the LTTng library (http://lttng.org/) other than the one on the official repository (2.4). This yields the same result. The following Dockerfile can be used to get the latest version - 2.7.x

FROM buildpack-deps:trusty-scm

RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-add-repository -y ppa:lttng/ppa
RUN apt-get update
RUN apt-get install -y liblttng-ust0

RUN LD_PRELOAD=liblttng-ust-cyg-profile.so.0 ls

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions