Skip to content

"getcontext failed" in a 32-bit Docker container #133

@andyli

Description

@andyli

With a Dockerfile as follows:

# FROM ubuntu:trusty # for reference, the 64-bit "ubuntu:trusty" works correctly

FROM osrf/ubuntu_32bit:trusty

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
        git \
        build-essential \
        libtool \
        pkg-config \
        autoconf \
        automake \
    && rm -r /var/lib/apt/lists/*

RUN git clone git://github.com/ivmai/bdwgc.git /bdwgc

WORKDIR /bdwgc

RUN git clone git://github.com/ivmai/libatomic_ops.git

RUN autoreconf -vif

RUN automake --add-missing

RUN ./configure

RUN make

CMD make check

Build it:

$ docker build . -t gc_docker

Run it:

$ docker run -it gc_docker bash
root@21a11fe7e22e:/bdwgc# make check
...
============================================================================
Testsuite summary for gc 7.5.0
============================================================================
# TOTAL: 14
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  14
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to bdwgc@lists.opendylan.org
============================================================================
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory `/bdwgc'
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory `/bdwgc'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/bdwgc'
make: *** [check-recursive] Error 1
root@21a11fe7e22e:/bdwgc# cat test-suite.log
================================
   gc 7.5.0: ./test-suite.log
================================

# TOTAL: 14
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  14
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: cordtest
==============

getcontext failed: Use another register retrieval method?

FAIL: gctest
============

getcontext failed: Use another register retrieval method?

FAIL: leaktest
==============

getcontext failed: Use another register retrieval method?

FAIL: middletest
================

getcontext failed: Use another register retrieval method?

FAIL: smashtest
===============

getcontext failed: Use another register retrieval method?

FAIL: hugetest
==============

getcontext failed: Use another register retrieval method?

FAIL: realloc_test
==================

getcontext failed: Use another register retrieval method?

FAIL: staticrootstest
=====================

getcontext failed: Use another register retrieval method?

FAIL: threadleaktest
====================

getcontext failed: Use another register retrieval method?

FAIL: threadkey_test
====================

getcontext failed: Use another register retrieval method?

FAIL: subthreadcreate_test
==========================

getcontext failed: Use another register retrieval method?

FAIL: initsecondarythread_test
==============================

getcontext failed: Use another register retrieval method?

FAIL: disclaim_test
===================

getcontext failed: Use another register retrieval method?

FAIL: disclaim_bench
====================

getcontext failed: Use another register retrieval method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions