Skip to content

Tests failed on Ubuntu 22.04, but work on 20.04 #128

@molind

Description

@molind

I'm building prime_server as a valhalla dependency in docker image. Tried to upgrade base docker image to ubuntu:22.04 and it's failed to build.

make[2]: Entering directory '/prime_server'
PASS: test/zmq
./test-driver: line 112: 13924 Segmentation fault      "$@" >> "$log_file" 2>&1
FAIL: test/interrupt
PASS: test/shaping
PASS: test/netstring
PASS: test/http
============================================================================
Testsuite summary for prime_server 0.7.0
============================================================================
# TOTAL: 5
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to https://github.com/kevinkreiser/prime_server/issues
============================================================================
make[2]: *** [Makefile:1334: test-suite.log] Error 1
make[2]: Leaving directory '/prime_server'
make[1]: *** [Makefile:1442: check-TESTS] Error 2
make[1]: Leaving directory '/prime_server'
make: *** [Makefile:1682: check-am] Error 2
root@1e11fa145e70:/prime_server# cat test-suite.log 
==========================================
   prime_server 0.7.0: ./test-suite.log
==========================================

# TOTAL: 5
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test/interrupt
====================

=== Testing interrupt ===
                      test_earlyFAIL test/interrupt (exit status: 139)

There is sample Dockerfile to reproduce failure:

FROM ubuntu:22.04 as builder

RUN apt-get update -y && \
    apt-get install -y \
      software-properties-common

RUN apt-get update -y && \
    apt-get install -y cmake make libtool pkg-config clang curl unzip jq \
                       lcov protobuf-compiler vim-common locales libboost-all-dev \
                       libcurl4-openssl-dev zlib1g-dev liblz4-dev \
                       libprotobuf-dev libsqlite3-dev libsqlite3-mod-spatialite \
                       libspatialite-dev libluajit-5.1-dev liblua5.1-dev libgeos++-dev spatialite-bin \
                       git supervisor

RUN git clone \
  --depth=1 \
  --recurse-submodules \
  --single-branch \
  --branch=master \
  https://github.com/kevinkreiser/prime_server.git prime_server

RUN apt-get install -y libzmq3-dev libczmq-dev

RUN cd prime_server && \
  ./autogen.sh && \
  ./configure && \
  make test -j && \
  make install

It works without issues if you change 22.04 to 20.04 in first line of the Dockerfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions