Skip to content

Commit

Permalink
Upgrade valgrind Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorenc committed Feb 16, 2021
1 parent 3905842 commit 49522e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions docker/debugger.Dockerfile
@@ -1,4 +1,7 @@
FROM ubuntu:18.04

RUN apt-get update
RUN apt-get install -y gdb valgrind
RUN apt-get update && apt-get -y install build-essential libc6-dbg

ADD https://sourceware.org/pub/valgrind/valgrind-3.16.1.tar.bz2 /opt/valgrind-3.16.1.tar.bz2
RUN tar -C /opt -xf /opt/valgrind-3.16.1.tar.bz2
RUN cd /opt/valgrind-3.16.1 && ./configure --prefix=/usr && make -j8 && make install
2 changes: 1 addition & 1 deletion src/http_server.cpp
Expand Up @@ -14,7 +14,7 @@
HttpServer::HttpServer(const std::string & version, const std::string & listen_address,
uint32_t listen_port, const std::string & ssl_cert_path,
const std::string & ssl_cert_key_path, bool cors_enabled):
version(version), listen_address(listen_address), listen_port(listen_port),
exit_loop(false), version(version), listen_address(listen_address), listen_port(listen_port),
ssl_cert_path(ssl_cert_path), ssl_cert_key_path(ssl_cert_key_path), cors_enabled(cors_enabled) {
accept_ctx = new h2o_accept_ctx_t();
h2o_config_init(&config);
Expand Down

0 comments on commit 49522e2

Please sign in to comment.