Giter VIP home page Giter VIP logo

manybugs's Introduction

ManyBugs

TODO: Add a description of ManyBugs.

Installation

The ManyBugs dataset is compatible with BugZoo, a platform for studying historical software bugs. To install the ManyBugs dataset to your local machine, simply execute the following:

$ pip3 install --upgrade bugzoo
$ bugzoo source add manybugs https://github.com/squaresLab/ManyBugs
$ bugzoo source update

manybugs's People

Contributors

christimperley avatar afsafzal avatar pdreiter avatar

Stargazers

xrkk avatar  avatar David Carson avatar Zhang Yuntong avatar Adarsh Srivastava avatar Ferenc Horváth avatar Afnan Al-Subaihin avatar  avatar  avatar Satbek Abdyldayev avatar PtrMan avatar Yuki Ueda avatar  avatar zhaogang avatar  avatar Joe Renzullo avatar

Watchers

 avatar James Cloos avatar  avatar Joe Renzullo avatar

manybugs's Issues

`lighttpd-2661-2662` fails to build

mv -f .deps/connections.Tpo .deps/connections.Po
gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/usr/local/lib\"" -I. -I..   -D_REENTRANT -D__EXTENSIONS__  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -save-temps -Wall -W -Wshadow -pedantic -std=gnu99 -MT network.o -MD -MP -MF .deps/network.Tpo -c -o network.o network.c
mv -f .deps/network.Tpo .deps/network.Po
gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/usr/local/lib\"" -I. -I..   -D_REENTRANT -D__EXTENSIONS__  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -save-temps -Wall -W -Wshadow -pedantic -std=gnu99 -MT configfile.o -MD -MP -MF .deps/configfile.Tpo -c -o configfile.o configfile.c
�[91mconfigfile.c: In function 'config_setup_connection':
�[0m
�[91mconfigfile.c:329:11: error: 'specific_config' has no member named 'ssl_ctx'
  PATCH(ssl_ctx);
           ^
�[0m
�[91mconfigfile.c:329:23: error: 'specific_config' has no member named 'ssl_ctx'
  PATCH(ssl_ctx);
                       ^
�[0m
�[91mconfigfile.c: In function 'config_patch_connection':
�[0m
�[91mconfigfile.c:389:14: error: 'specific_config' has no member named 'ssl_ctx'
     PATCH(ssl_ctx);
              ^
configfile.c:389:26: error: 'specific_config' has no member named 'ssl_ctx'
     PATCH(ssl_ctx);
                          ^
�[0m
make[4]: Leaving directory `/experiment/src/src'
�[91mmake[4]: *** [configfile.o] Error 1
�[0m
�[91mmake[3]: *** [all-recursive] Error 1
�[0m
make[3]: Leaving directory `/experiment/src/src'
�[91mmake[2]: *** [all] Error 2
�[0m
make[2]: Leaving directory `/experiment/src/src'
�[91mmake[1]: *** [all-recursive] Error 1
�[0m
make[1]: Leaving directory `/experiment/src'
�[91mmake: *** [all] Error 2
�[0m
�[91mTraceback (most recent call last):
  File "./preprocess", line 35, in <module>
�[0m
�[91m    subprocess.check_call('make clean && make', shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
�[0m
�[91m    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make clean && make' returned non-zero exit status 2
�[0m
Traceback (most recent call last):
  File "/home/afsoon/BugZoo/bin/bugzoo", line 9, in <module>
    load_entry_point('bugzoo==1.1.4', 'console_scripts', 'bugzoo')()
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/cli.py", line 524, in main
    args.func(args)
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/cli.py", line 486, in <lambda>
    cmd.set_defaults(func=lambda args: build_bug(rbox, args.bug, args.force))
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/cli.py", line 94, in build_bug
    bug.build(force=force)
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/bug.py", line 309, in build
    self.__build_instructions.build(force=force, quiet=quiet)
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/build.py", line 230, in build
    raise ImageBuildFailed(self.tag, log)
bugzoo.errors.ImageBuildFailed: squareslab/manybugs:lighttpd-2661-2662

lighttpd fails sanity checks

docker@6ce0334bac9f:/experiment$ ./test.sh p17
basename: missing operand
Try 'basename --help' for more information.
./test.sh: line 5: [: =: unary operator expected
./symlink.t .. mod_proxy_core_address.c.158: (trace) resolving 127.0.0.1 on port 1026
mod_proxy_core_address.c.63: (trace) adding 127.0.0.1:1026 to the address-pool
mod_proxy_core_address.c.158: (trace) resolving 127.0.0.1 on port 1026
mod_proxy_core_address.c.63: (trace) adding 127.0.0.1:1026 to the address-pool
2018-02-07 00:03:27: (server.c.1445) WARNING: unknown config-key: auth.backend.ldap.url (ignored) 
./symlink.t .. 1/10 # status failed: expected '200', got '403'

#   Failed test 'allow: symlinked file'
#   at ./symlink.t line 56.
# status failed: expected '200', got '403'

#   Failed test 'allow: directly symlinked dir'
#   at ./symlink.t line 65.
# status failed: expected '200', got '403'

#   Failed test 'allow: symlinked dir in path'
#   at ./symlink.t line 74.
# Looks like you failed 3 tests of 10.
./symlink.t .. Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/10 subtests 

Test Summary Report
-------------------
./symlink.t (Wstat: 768 Tests: 10 Failed: 3)
  Failed tests:  3-5
  Non-zero exit status: 3
Files=1, Tests=10,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.04 cusr  0.00 csys =  0.06 CPU)
Result: FAIL
Failed 1/1 test programs. 3/10 subtests failed.

Note that identical behaviour is also observed on the reference ManyBugs virtual machine -- this isn't an issue with our Docker container images.

gmp:14166-14167 test cases assumed failed

Hello,

I am attempting to recreate a couple of the previously reported repairs on gmp:14166-14167 by running genprog with the previously defined --seed. However, when I run genprog configuration-default, genprog completes its sanity check, and coverage, but starts to report

cachingRep: test_cases: wait: Not_found
cachingRep: test_cases: p1 assumed failed
cachingRep: test_cases: p2 assumed failed

for each positive test when evaluating the individuals in a population. Genprog also reports a fitness of 1 next to each genome string. I am assuming this is unexpected behavior, is there a known fix?

My current working configuration is:

--multi-file
--search ga
--compiler-command ./compile.sh EXE_NAME > /dev/null
--test-command TEST_SCRIPT TEST_NAME >& /dev/null
--crossover subset
--rep cilpatch
--suffix-extension .c
--describe-machine
--pos-tests 144
--neg-tests 1
--program manifest.txt
--prefix preprocessed
--seed 4
--test-script ./test.sh
--popsize 40
--generations 10
--promut 1
--mutp 0
--fitness-in-parallel 2
--rep-cache default.cache
--skip-failed-sanity-check

Thanks for your time.

manybugs:gmp:13420-13421 sanity tests don't pass

running:
bugzoo source add manybugs https://github.com/squaresLab/ManyBugs.git
bugzoo bug build manybugs:gmp:13420-13421
bugzoo container launch --with genprog manybugs:gmp:13420-13421
..in container..
%> genprog configuration-default
<...stdout...>
p34: true (1)
p35: false (0)

ABORT:

cachingRepresentation: sanity check failed (p35)
Rep: saving test cache

Variant Test Case Queries: 0
"Test Suite Evaluations": 0

Compile Failures: 0
Wall-Clock Seconds Elapsed: 23.2172
Activity Name Count Seconds = Percent of Total Time
compile 1 3.074 = 13.3167%
test 38 20.006 = 86.6773%
TOTAL 23.081 = 99.3797% (avg CPU usage)
docker@3342f2c54005:/experiment$

php scenarios do not build with --enable-debug configuration

The php scenarios don't compile with --enable-debug

docker@e3c09a8785b8:/experiment/src$  make
Generating phar.phar

Fatal error: Unknown: Failed opening required 'ext/phar/phar.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0
Makefile:312: recipe for target 'ext/phar/phar.phar' failed
make: *** [ext/phar/phar.phar] Error 255
docker@e3c09a8785b8:/experiment/src$ 

Two PHP scenarios segfault during compilation

The two PHP scenarios I encountered this error on were 2011-04-30-9c285fddbb-93f65cdeac and 2011-02-19-356b619487-a3a5157286.

The same failure message appeared on both a desktop and a server; the only difference in the error message was the number of cores used by make.

It's unrelated to the other PHP issue that resulted from the AUFS symlink problem - both systems are using overlay2 as a storage driver.

Error message below - any advice you can provide would be much appreciated!

-Joe

/bin/sh: line 1: 13775 Segmentation fault (core dumped) if test -x "/experiment/src/sapi/cli/php"; then /experiment/src/build/shtool echo -n -- "/experiment/src/sapi/cli/php -n"; if test "x" != "x"; then /experiment/src/build/shtool echo -n -- " -d extension_dir=/experiment/src/modules"; for i in bz2 zlib phar; do if test -f "/experiment/src/modules/$i.la"; then . /experiment/src/modules/$i.la; /experiment/src/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /experiment/src/build/shtool echo -n -- "/experiment/src/sapi/cli/php"; fi; -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /experiment/src/ext/phar/build_precommand.php > ext/phar/phar.php

make: *** [ext/phar/phar.php] Error 139

Traceback (most recent call last):
File "/experiment/prepare.py", line 81, in

cmd('cd /experiment/src && make -j{}'.format(multiprocessing.cpu_count()))

File "/experiment/prepare.py", line 45, in cmd

subprocess.check_call(cmd, shell=True)

File "/usr/lib/python2.7/subprocess.py", line 540, in check_call

raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError
: Command 'cd /experiment/src && make -j4' returned non-zero exit status 2

Traceback (most recent call last):
File "/home/joe/.local/bin/bugzoo", line 11, in
sys.exit(main())
File "/home/joe/.local/lib/python3.6/site-packages/bugzoo/cli/init.py", line 541, in main
args.func(args)
File "/home/joe/.local/lib/python3.6/site-packages/bugzoo/cli/init.py", line 489, in
cmd.set_defaults(func=lambda args: build_bug(rbox, args.bug, args.force))
File "/home/joe/.local/lib/python3.6/site-packages/bugzoo/cli/init.py", line 103, in build_bug
rbox.bugs.build(bug, force=force)
File "/home/joe/.local/lib/python3.6/site-packages/bugzoo/mgr/bug.py", line 82, in build
quiet=quiet)
File "/home/joe/.local/lib/python3.6/site-packages/bugzoo/mgr/build.py", line 124, in build
raise ImageBuildFailed(name, log)
bugzoo.exceptions.ImageBuildFailed: failed to build Docker image: squareslab/manybugs:php-2011-04-30-9c285fddbb-93f65cdeac

lighttpd-2225-2266 fails to build

...
/bin/sh ../libtool --tag=CC   --mode=link gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99   -o spawn-fcgi spawn-fcgi.o -pthread -lgthread-2.0 -lglib-2.0
libtool: link: gcc -shared  .libs/mod_accesslog.o    -pthread   -pthread -Wl,-soname -Wl,mod_accesslog.so -o .libs/mod_accesslog.so
/bin/sh ../libtool --tag=CC   --mode=link gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99   -o proc_open proc_open-proc_open.o proc_open-buffer.o
libtool: link: ( cd ".libs" && rm -f "mod_auth.la" && ln -s "../mod_auth.la" "mod_auth.la" )
libtool: link: ( cd ".libs" && rm -f "mod_status.la" && ln -s "../mod_status.la" "mod_status.la" )
/bin/sh ../libtool --tag=CC   --mode=link gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99   -o lemon lemon.o  
libtool: link: ( cd ".libs" && rm -f "mod_compress.la" && ln -s "../mod_compress.la" "mod_compress.la" )
libtool: link: ( cd ".libs" && rm -f "mod_rewrite.la" && ln -s "../mod_rewrite.la" "mod_rewrite.la" )
rm -f configparser.h
../src/lemon -q ./configparser.y ./lempar.c
make[3]: ../src/lemon: Command not found

rm -f configparser.h
make[3]: *** [configparser.h] Error 127
make[3]: *** Waiting for unfinished jobs....

../src/lemon -q ./configparser.y ./lempar.c
make[3]: ../src/lemon: Command not found

make[3]: *** [configparser.c] Error 127

libtool: link: ( cd ".libs" && rm -f "mod_redirect.la" && ln -s "../mod_redirect.la" "mod_redirect.la" )
libtool: link: ( cd ".libs" && rm -f "mod_accesslog.la" && ln -s "../mod_accesslog.la" "mod_accesslog.la" )
libtool: link: gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -o lemon lemon.o  -pthread
libtool: link: gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -o proc_open proc_open-proc_open.o proc_open-buffer.o  -pthread
libtool: link: gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -o spawn-fcgi spawn-fcgi.o -pthread  -lgthread-2.0 -lglib-2.0 -pthread
make[3]: Leaving directory `/experiment/src/src'
make[2]: Leaving directory `/experiment/src/src'
make[2]: *** [all-recursive] Error 1

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/experiment/src'
make: *** [all] Error 2

Fix commit fails the negative test in `lighttpd-bug-1948-1949`

Fixed version running n1:

mod_proxy_core_address.c.63: (trace) adding 127.0.0.1:1026 to the address-pool
mod_proxy_core_address.c.158: (trace) resolving 127.0.0.1 on port 1026
mod_proxy_core_address.c.63: (trace) adding 127.0.0.1:1026 to the address-pool
2018-02-23 20:14:22: (server.c.1445) WARNING: unknown config-key: auth.backend.ldap.url (ignored) 
./request.t .. 1/43 # status failed: expected '200', got '400'

#   Failed test 'Hostname in first line as https url'
#   at ./request.t line 104.
# status failed: expected '400', got '200'
# status failed: expected '400', got '200'
# status failed: expected '400', got '200'
# status failed: expected '304', got '200'
# Looks like you failed 1 test of 43.
./request.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/43 subtests 
        (1 TODO test unexpectedly succeeded)

Test Summary Report
-------------------
./request.t (Wstat: 256 Tests: 43 Failed: 1)
  Failed test:  12
  TODO passed:   14
  Non-zero exit status: 1
Files=1, Tests=43,  0 wallclock secs ( 0.03 usr  0.00 sys +  0.03 cusr  0.03 csys =  0.09 CPU)
Result: FAIL
Failed 1/1 test programs. 1/43 subtests failed.
/experiment

manybugs:gzip:2009-10-09-1a085b1446-118a107f2d Test Cases Behave Non-Deterministically

Duplicating the Non-deterministic behavior

  1. bugzoo bug build manybugs:gzip:2009-10-09-1a085b1446-118a107f2d
  2. bugzoo container launch manybugs:gzip:2009-10-09-1a085b1446-118a107f2d
    In docker container:
    To run a single test case many times:
    for i in $(seq 0 100); do (pushd src && ../gzip-run-tests.pl 1 && popd) |& egrep log ; done
    and to run all test cases:
    for i in $(seq 0 100); do (./test.sh p1;./test.sh p2; ./test.sh p3; ./test.sh p4; ./test.sh p5; ./test.sh n1) |& grep log ; done
    In the docker container ONLY, the test cases behave inconsistently, i.e. they neither pass nor fail consistently.

Example non-deterministic output from docker container

docker@ef98ab6cce2d:/experiment$ (./test.sh p1;./test.sh p2; ./test.sh p3; ./test.sh p4; ./test.sh p5; ./test.sh n1) |& grep log
PASS: helin-segv.log
PASS: hufts.log
FAIL: memcpy-abuse.log
PASS: stdin.log
PASS: zdiff.log
FAIL: trailing-nul.log
docker@ef98ab6cce2d:/experiment$ (./test.sh p1;./test.sh p2; ./test.sh p3; ./test.sh p4; ./test.sh p5; ./test.sh n1) |& grep log
PASS: helin-segv.log
PASS: hufts.log
FAIL: memcpy-abuse.log
FAIL: stdin.log
PASS: zdiff.log
FAIL: trailing-nul.log
docker@ef98ab6cce2d:/experiment$

Some Debug information and potential workaround
I copied the test infrastructure from the docker container directly to my localhost's infrastructure [Ubuntu 16.04] and, strangely enough, the test results were consistent. I speculated that there may be some instability in the Ubuntu 14 build's libc.so, since it was the only dynamic library I found in the dynamic section of gzip. After updating the Docker infrastructure and specific gzip test case to use Ubuntu 16.04, the test behaved consistently on the docker container.

Cannot build subset of the PHP scenarios

I cannot build php scenarios. Tried a couple and all result in this:

mv: cannot create hard link '/experiment/bug-info/scenario-data.txt' to '/experiment/000000/main': Operation not permitted
mv: cannot create hard link '/experiment/bug-info/log-msg.txt' to '/experiment/000000/main/streams': Operation not permitted

mv: will not create hard link '/experiment/fixed/main' to directory '/experiment/diffs/main'

mv: will not create hard link '/experiment/preprocessed/main' to directory '/experiment/php/ext'

Traceback (most recent call last):
  File "/home/afsoon/BugZoo/bin/bugzoo", line 9, in <module>
    load_entry_point('bugzoo==2.0.3', 'console_scripts', 'bugzoo')()
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/cli/__init__.py", line 503, in main
    args.func(args)
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/cli/__init__.py", line 465, in <lambda>
    cmd.set_defaults(func=lambda args: build_bug(rbox, args.bug, args.force))
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/cli/__init__.py", line 79, in build_bug
    rbox.bugs.build(bug, force=force)
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/mgr/bug.py", line 82, in build
    quiet=quiet)
  File "/home/afsoon/BugZoo/lib/python3.5/site-packages/bugzoo/mgr/build.py", line 124, in build
    raise ImageBuildFailed(name, log)
bugzoo.core.errors.ImageBuildFailed: squareslab/manybugs:php-2011-12-10-74343ca506-52c36e60c4

Unexpected failure during build process for php:2011-01-23-bc049ccb62-a6c0a4e474

chris@clegoues-ubuntu-vm1:~/bugzoo$ bugzoo bug build -f manybugs:php:2011-01-23-bc049ccb62-a6c0a4e474
building bug: manybugs:php:2011-01-23-bc049ccb62-a6c0a4e474
...
Step 12/22 : RUN cd scenario &&     rm -rf  coverage*             configuration-oracle             local-root             limit*             php-tests-*             *.cache             *.debug.*             *~             php.tar.gz &&     mv test.sh test.sh.orig &&     mv bug-failures bug-info &&     cp bugged-program.txt manifest.txt &&     mv *.lines bug-info &&     mv fix-failures bug-info &&     cd ../ &&     mv scenario/* /experiment &&     rm -rf scenario &&     sudo chown -R docker /experiment &&     grep -o -P '(?<=")[^"]+.phpt(?=")' php-run-tests.c > tests.all.txt &&     grep -o -P '\d+(?= &&)' test.sh.orig > tests.indices.txt &&     rm -f php-run-tests.c test.sh.orig &&     mv php src &&     cd src &&     make distclean &> /dev/null &&     rm -rf  configure config.nice autom4te.cache aclocal.m4 php5.spec missing mkinstalldirs

 ---> Running in 74cb14e9a115
mv: will not create hard link '/experiment/fixed/ext' to directory '/experiment/diffs/ext'

mv: will not create hard link '/experiment/preprocessed/ext' to directory '/experiment/php/ext'

mv: will not create hard link '/experiment/sanity/ext' to directory '/experiment/php/.git'

libtiff:2005-12-14-6746b87-0d3d51d fails passing test due to compilation error

docker@8ad1a643b29a:/experiment$ ./test.sh p4
basename: missing operand
Try 'basename --help' for more information.
./test.sh: line 5: [: =: unary operator expected
rewrite_tag.c:142:19: error: unknown type name 'uint64'
                   uint64 base_value )
                   ^
rewrite_tag.c: In function 'main':
rewrite_tag.c:332:5: warning: implicit declaration of function 'rewrite_test' [-Wimplicit-function-declaration]
     failure |= rewrite_test( "rewrite1.tif", 10, 0, 100 );
     ^
make: *** [rewrite_tag.o] Error 1
lt-.*: no process found

Cannot build lighttpd:1913-1914

building bug: manybugs:lighttpd:1913-1914
Building image: squareslab/manybugs:base
Step 1/12 : FROM ubuntu:14.04

 ---> 2ff3b426bbaa
Step 2/12 : MAINTAINER Chris Timperley "[email protected]"

 ---> Using cache
 ---> 1640b372fd57
Step 3/12 : RUN apt-get update &&     apt-get install --no-install-recommends -y sudo &&     useradd -ms /bin/bash docker &&     echo 'docker ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers &&     adduser docker sudo &&     apt-get clean &&     mkdir -p /home/docker &&     sudo chown -R docker /home/docker &&     rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

 ---> Using cache
 ---> fe6c78721856
Step 4/12 : USER docker

 ---> Using cache
 ---> 7c4a7a993dfa
Step 5/12 : RUN sudo chown -R docker /usr/local/bin

 ---> Using cache
 ---> df229f8c11e6
Step 6/12 : RUN sudo apt-get update &&     sudo apt-get install  --no-install-recommends -y                           build-essential                           gcc                           patch                           curl                           libcap-dev                           git                           cmake                           vim                           jq                           tar                           psmisc                           moreutils                           wget                           zip                           unzip                           python3-setuptools                           python                           software-properties-common                           libncurses5-dev &&     sudo apt-get autoremove -y &&     sudo apt-get clean &&     sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

 ---> Using cache
 ---> a8c3de49f196
Step 7/12 : RUN sudo rm /bin/sh &&     sudo ln -s /bin/bash /bin/sh

 ---> Using cache
 ---> 290c5b222cd4
Step 8/12 : RUN sudo mkdir -p /experiment && sudo chown -R docker /experiment

 ---> Using cache
 ---> 7346f3f7a4fd
Step 9/12 : WORKDIR /experiment

 ---> Using cache
 ---> e7580fca529e
Step 10/12 : ADD base/preprocess /experiment/preprocess

 ---> Using cache
 ---> 940cf19e2006
Step 11/12 : ADD compile.sh /experiment/compile.sh

 ---> Using cache
 ---> 0fb211ba3a47
Step 12/12 : RUN sudo chown -R docker /experiment &&     sudo chmod +x compile.sh

 ---> Using cache
 ---> 0409eaf9ce6c
Successfully built 0409eaf9ce6c
Successfully tagged squareslab/manybugs:base
Built image: squareslab/manybugs:base
Building image: squareslab/manybugs:lighttpd
Step 1/3 : FROM squareslab/manybugs:base

 ---> 0409eaf9ce6c
Step 2/3 : MAINTAINER Chris Timperley "[email protected]"

 ---> Using cache
 ---> c19c0c3cb914
Step 3/3 : RUN sudo apt-get update &&     sudo apt-get install --no-install-recommends -y subversion                                                     m4                                                     libglib2.0-dev

 ---> Using cache
 ---> 2be49294a6b5
Successfully built 2be49294a6b5
Successfully tagged squareslab/manybugs:lighttpd
Built image: squareslab/manybugs:lighttpd
Building image: squareslab/manybugs:lighttpd-1913-1914
Step 1/14 : FROM squareslab/manybugs:lighttpd

 ---> 2be49294a6b5
Step 2/14 : ARG bug_commit

 ---> Using cache
 ---> e94a4ebc6cc3
Step 3/14 : ARG fix_commit

 ---> Using cache
 ---> f16987987561
Step 4/14 : ENV BUG_COMMIT ${bug_commit}

 ---> Using cache
 ---> 7a781b159857
Step 5/14 : ENV FIX_COMMIT ${fix_commit}

 ---> Using cache
 ---> 9e0858eb432d
Step 6/14 : ENV SCENARIO_NAME lighttpd-bug-${BUG_COMMIT}-${FIX_COMMIT}

 ---> Using cache
 ---> 264e0cd7413b
Step 7/14 : ENV OLD_LOCATION /root/mountpoint-genprog/genprog-many-bugs/${SCENARIO_NAME}

 ---> Using cache
 ---> a77366ac7729
Step 8/14 : RUN cd /experiment &&     wget  -nv http://repairbenchmarks.cs.umass.edu/ManyBugs/scenarios/${SCENARIO_NAME}.tar.gz           -O scenario.tar.gz &&     tar -xf scenario.tar.gz &&     mv ${SCENARIO_NAME} scenario &&     rm scenario.tar.gz &&     cd scenario &&     rm -rf  coverage*             configuration-oracle             local-root             limit*             *.cache             *.debug.*             sanity             compile.pl             *~             test             reconfigure             preprocessed             fixed-program.txt &&     mv bug-failures bug-info &&     mv bugged-program.txt manifest.txt &&     mv *.lines bug-info &&     mv fix-failures bug-info &&     mv lighttpd src &&     cd ../ &&     mv scenario/* /experiment &&     rm -rf scenario &&     cd /experiment &&     rm -rf tests &&     cd /experiment/src &&       make distclean &&       svn upgrade &&       svn revert $(cat /experiment/manifest.txt) &&     sudo chown -R docker /experiment

 ---> Using cache
 ---> 79c8ccb3d3f7
Step 9/14 : RUN sed -i "s#${OLD_LOCATION}#/experiment#g" test.sh &&     sed -i "s#cd gmp#cd src#g" test.sh &&     sed -i "s#/experiment/limit#timeout 5#g" test.sh &&     sed -i "s#/usr/bin/perl#perl#g" test.sh &&     sed -i 's#lt-\.\*#lt-\.\* \&\> /dev/null#g' test.sh &&     sed -i 's#cd lighttpd/tests#cd src/tests#g' test.sh

 ---> Using cache
 ---> 50261cc45408
Step 10/14 : RUN sed -i 's#image.JPG#image.jpg#g' src/tests/core-request.t

 ---> Using cache
 ---> 77fe128e4012
Step 11/14 : RUN cd src/tests/tmp/lighttpd/servers/www.example.org/pages &&     rm symlinked index.xhtml &&     ln -s expire symlinked &&     ln -s index.html index.xhtml

 ---> Using cache
 ---> 42113081dc7e
Step 12/14 : ADD mod-cgi.t /experiment/src/tests/mod-cgi.t

 ---> Using cache
 ---> 28dc420e092e
Step 13/14 : RUN ./preprocess &&     cd src &&     ./configure &&     make -j$(nproc)

 ---> Running in 79b91b02cf20
checking build system type...
x86_64-unknown-linux-gnu
checking host system type...

....

FAILS DURING COMPILATION

Traceback (most recent call last):
  File "/home/afsoon/BugZoo/bin/bugzoo", line 9, in <module>
    load_entry_point('bugzoo==1.1.4', 'console_scripts', 'bugzoo')()
  File "/home/afsoon/BugZoo/bugzoo/cli.py", line 524, in main
    args.func(args)
  File "/home/afsoon/BugZoo/bugzoo/cli.py", line 486, in <lambda>
    cmd.set_defaults(func=lambda args: build_bug(rbox, args.bug, args.force))
  File "/home/afsoon/BugZoo/bugzoo/cli.py", line 94, in build_bug
    bug.build(force=force)
  File "/home/afsoon/BugZoo/bugzoo/bug.py", line 309, in build
    self.__build_instructions.build(force=force, quiet=quiet)
  File "/home/afsoon/BugZoo/bugzoo/build.py", line 230, in build
    raise ImageBuildFailed(self.tag, log)
bugzoo.errors.ImageBuildFailed: squareslab/manybugs:lighttpd-1913-1914

Syntax error in Docker file

Hi!

I am getting following syntax error while building Php scenarios.

Step 3/9 : RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends autoconf libxml2-dev python psmisc && sudo apt-get clean && && sudo apt-get autoremove && && sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

---> Running in 546a725e4a8a
/bin/sh: -c: line 0: syntax error near unexpected token &&' /bin/sh: -c: line 0: sudo apt-get update && sudo apt-get install -y --no-install-recommends autoconf libxml2-dev python psmisc && sudo apt-get clean && && sudo apt-get autoremove && && sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*'

Please fix the docker file by removing duplicate && in lines 9-11.

https://github.com/squaresLab/ManyBugs/blob/master/php/Dockerfile

gmp-14166-14167 fails to build

Having a hard time building gmp-14166-14167.
The error is

/usr/bin/ld: mpn/.libs/invert_limb.o: relocation R_X86_64_PC32 against protected symbol `__gmpn_invert_limb_table' can not be used when making a shared object

Tried the following solutions:

  1. Adding -fPIC flag to CFLAGS and CXXFLAGS in Makefile
  2. Adding -no-pie flag to CFLAGS and CXXFLAGS in Makefile
  3. ./configure --with-pic

and none of them worked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.