test list

This commit is contained in:
anil
2020-08-19 15:07:37 +02:00
parent bfcd2aacc5
commit cb293de686
242 changed files with 370216 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
## Running `gmp` bugs
After running the container you need to follow the following
steps to prepare `SOSRepair` for running:
1. Copy `makeout`, `compile.sh`, `test.sh` and `tests-list` to
the container's `/experiment/`.
2. Copy `settings.py` to the container's `/opt/sosrepair/sosrepair`.
3. In the container, reconfigure the project with coverage flags:
```
cd /experiment/src
./configure "CFLAGS=-fprofile-arcs -ftest-coverage" "CXXFLAGS=-fprofile-arcs -ftest-coverage" "LDFLAGS=-lgcov --coverage"
make clean
make
```
4. Run `/opt/sosrepair/prepare/setup.sh`.
5. Set proper permissions by running `sudo chmod -R 777 /opt/sosrepair/sosrepair`.
6. Setup environment variables:
```
export PYTHONPATH="/opt/sosrepair/bindings:${PYTHONPATH}"
export CPATH=":/opt/sosrepair/include"
export PATH="/opt/sosrepair/bin:$PATH"
```
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $DIR/src
#make clean
(make && exit 0)|| exit 1
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
CONTAINER=$1
BUG=$2
docker cp compile.sh $CONTAINER:/experiment/
docker cp $BUG/test.sh $CONTAINER:/experiment/
docker cp $BUG/tests-list.txt $CONTAINER:/experiment/
docker cp $BUG/settings.py $CONTAINER:/opt/sosrepair/sosrepair/
@@ -0,0 +1,3 @@
For running SOS+ on this bug, we manually helped in finding
correct set of live variables. Number of live variables are
very high. So we limit that to `b2p`, `n`, `rp`, and `tp`.
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/mpn/generic/powm.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (144, 483)
# IF SOS+
# METHOD_RANGE = (212, 213)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/mpn/.libs/"
+165
View File
@@ -0,0 +1,165 @@
#!/bin/bash
run_abbrev=False
bugrev=13420
time_limit=25
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
../gmp-run-tests.pl $1 $run_abbrev
if [ $? = 0 ] ; then
echo ""
echo "PASS"
else
echo ""
echo "FAIL"
fi
popd > /dev/null
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 5 && exit 0 ;;
p6) run_test 6 && exit 0 ;;
p7) run_test 7 && exit 0 ;;
p8) run_test 8 && exit 0 ;;
p9) run_test 9 && exit 0 ;;
p10) run_test 10 && exit 0 ;;
p11) run_test 11 && exit 0 ;;
p12) run_test 12 && exit 0 ;;
p13) run_test 13 && exit 0 ;;
p14) run_test 14 && exit 0 ;;
p15) run_test 15 && exit 0 ;;
p16) run_test 16 && exit 0 ;;
p17) run_test 17 && exit 0 ;;
p18) run_test 18 && exit 0 ;;
p19) run_test 19 && exit 0 ;;
p20) run_test 20 && exit 0 ;;
p21) run_test 21 && exit 0 ;;
p22) run_test 22 && exit 0 ;;
p23) run_test 23 && exit 0 ;;
p24) run_test 24 && exit 0 ;;
p25) run_test 25 && exit 0 ;;
p26) run_test 26 && exit 0 ;;
p27) run_test 27 && exit 0 ;;
p28) run_test 28 && exit 0 ;;
p29) run_test 29 && exit 0 ;;
p30) run_test 31 && exit 0 ;;
p31) run_test 32 && exit 0 ;;
p32) run_test 33 && exit 0 ;;
p33) run_test 35 && exit 0 ;;
p34) run_test 36 && exit 0 ;;
p35) run_test 37 && exit 0 ;;
p36) run_test 39 && exit 0 ;;
p37) run_test 40 && exit 0 ;;
p38) run_test 41 && exit 0 ;;
p39) run_test 42 && exit 0 ;;
p40) run_test 43 && exit 0 ;;
p41) run_test 44 && exit 0 ;;
p42) run_test 45 && exit 0 ;;
p43) run_test 46 && exit 0 ;;
p44) run_test 47 && exit 0 ;;
p45) run_test 48 && exit 0 ;;
p46) run_test 49 && exit 0 ;;
p47) run_test 50 && exit 0 ;;
p48) run_test 51 && exit 0 ;;
p49) run_test 52 && exit 0 ;;
p50) run_test 53 && exit 0 ;;
p51) run_test 54 && exit 0 ;;
p52) run_test 55 && exit 0 ;;
p53) run_test 56 && exit 0 ;;
p54) run_test 57 && exit 0 ;;
p55) run_test 58 && exit 0 ;;
p56) run_test 59 && exit 0 ;;
p57) run_test 60 && exit 0 ;;
p58) run_test 61 && exit 0 ;;
p59) run_test 62 && exit 0 ;;
p60) run_test 63 && exit 0 ;;
p61) run_test 64 && exit 0 ;;
p62) run_test 65 && exit 0 ;;
p63) run_test 66 && exit 0 ;;
p64) run_test 67 && exit 0 ;;
p65) run_test 68 && exit 0 ;;
p66) run_test 69 && exit 0 ;;
p67) run_test 70 && exit 0 ;;
p68) run_test 71 && exit 0 ;;
p69) run_test 72 && exit 0 ;;
p70) run_test 73 && exit 0 ;;
p71) run_test 74 && exit 0 ;;
p72) run_test 75 && exit 0 ;;
p73) run_test 76 && exit 0 ;;
p74) run_test 77 && exit 0 ;;
p75) run_test 78 && exit 0 ;;
p76) run_test 79 && exit 0 ;;
p77) run_test 80 && exit 0 ;;
p78) run_test 81 && exit 0 ;;
p79) run_test 82 && exit 0 ;;
p80) run_test 83 && exit 0 ;;
p81) run_test 84 && exit 0 ;;
p82) run_test 85 && exit 0 ;;
p83) run_test 86 && exit 0 ;;
p84) run_test 87 && exit 0 ;;
p85) run_test 88 && exit 0 ;;
p86) run_test 89 && exit 0 ;;
p87) run_test 90 && exit 0 ;;
p88) run_test 91 && exit 0 ;;
p89) run_test 92 && exit 0 ;;
p90) run_test 93 && exit 0 ;;
p91) run_test 94 && exit 0 ;;
p92) run_test 95 && exit 0 ;;
p93) run_test 96 && exit 0 ;;
p94) run_test 97 && exit 0 ;;
p95) run_test 98 && exit 0 ;;
p96) run_test 99 && exit 0 ;;
p97) run_test 100 && exit 0 ;;
p98) run_test 101 && exit 0 ;;
p99) run_test 102 && exit 0 ;;
p100) run_test 103 && exit 0 ;;
p101) run_test 104 && exit 0 ;;
p102) run_test 105 && exit 0 ;;
p103) run_test 106 && exit 0 ;;
p104) run_test 107 && exit 0 ;;
p105) run_test 108 && exit 0 ;;
p106) run_test 109 && exit 0 ;;
p107) run_test 110 && exit 0 ;;
p108) run_test 111 && exit 0 ;;
p109) run_test 112 && exit 0 ;;
p110) run_test 113 && exit 0 ;;
p111) run_test 114 && exit 0 ;;
p112) run_test 115 && exit 0 ;;
p113) run_test 116 && exit 0 ;;
p114) run_test 117 && exit 0 ;;
p115) run_test 118 && exit 0 ;;
p116) run_test 119 && exit 0 ;;
p117) run_test 120 && exit 0 ;;
p118) run_test 121 && exit 0 ;;
p119) run_test 122 && exit 0 ;;
p120) run_test 123 && exit 0 ;;
p121) run_test 124 && exit 0 ;;
p122) run_test 125 && exit 0 ;;
p123) run_test 126 && exit 0 ;;
p124) run_test 127 && exit 0 ;;
p125) run_test 128 && exit 0 ;;
p126) run_test 129 && exit 0 ;;
p127) run_test 130 && exit 0 ;;
p128) run_test 131 && exit 0 ;;
p129) run_test 132 && exit 0 ;;
p130) run_test 133 && exit 0 ;;
p131) run_test 134 && exit 0 ;;
p132) run_test 135 && exit 0 ;;
p133) run_test 136 && exit 0 ;;
p134) run_test 139 && exit 0 ;;
p135) run_test 140 && exit 0 ;;
p136) run_test 141 && exit 0 ;;
p137) run_test 142 && exit 0 ;;
p138) run_test 143 && exit 0 ;;
p139) run_test 144 && exit 0 ;;
p140) run_test 146 && exit 0 ;;
n1) run_test 30 && exit 0 ;;
n2) run_test 34 && exit 0 ;;
n3) run_test 38 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,140 @@
n1
n2
p1
p2
p3
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
p32
p33
p34
p36
p37
p38
p39
p40
p41
p42
p43
p44
p46
p47
p48
p49
p50
p51
p52
p53
p54
p55
p56
p57
p58
p59
p60
p61
p62
p63
p64
p65
p66
p67
p68
p69
p70
p71
p72
p73
p74
p75
p76
p77
p78
p79
p80
p81
p82
p83
p84
p85
p86
p87
p88
p89
p90
p91
p92
p93
p94
p95
p96
p97
p98
p99
p100
p101
p102
p103
p104
p105
p106
p107
p108
p109
p110
p111
p112
p113
p114
p115
p116
p117
p118
p119
p120
p121
p122
p123
p124
p125
p126
p127
p128
p129
p130
p131
p132
p133
p134
p135
p136
p137
p138
p139
p140
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/mpz/gcdext.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (29, 119)
# IF SOS+
# METHOD_RANGE = (56, 57)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/mpz/.libs"
+167
View File
@@ -0,0 +1,167 @@
#!/bin/bash
run_abbrev=False
bugrev=13420
time_limit=25
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
../gmp-run-tests.pl $1 $run_abbrev
if [ $? = 0 ] ; then
echo ""
echo "PASS"
else
echo ""
echo "FAIL"
fi
popd > /dev/null
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 5 && exit 0 ;;
p6) run_test 6 && exit 0 ;;
p7) run_test 7 && exit 0 ;;
p8) run_test 8 && exit 0 ;;
p9) run_test 9 && exit 0 ;;
p10) run_test 10 && exit 0 ;;
p11) run_test 11 && exit 0 ;;
p12) run_test 12 && exit 0 ;;
p13) run_test 13 && exit 0 ;;
p14) run_test 14 && exit 0 ;;
p15) run_test 15 && exit 0 ;;
p16) run_test 16 && exit 0 ;;
p17) run_test 17 && exit 0 ;;
p18) run_test 18 && exit 0 ;;
p19) run_test 20 && exit 0 ;;
p20) run_test 21 && exit 0 ;;
p21) run_test 22 && exit 0 ;;
p22) run_test 23 && exit 0 ;;
p23) run_test 24 && exit 0 ;;
p24) run_test 25 && exit 0 ;;
p25) run_test 26 && exit 0 ;;
p26) run_test 27 && exit 0 ;;
p27) run_test 28 && exit 0 ;;
p28) run_test 29 && exit 0 ;;
p29) run_test 30 && exit 0 ;;
p30) run_test 31 && exit 0 ;;
p31) run_test 32 && exit 0 ;;
p32) run_test 33 && exit 0 ;;
p33) run_test 34 && exit 0 ;;
p34) run_test 35 && exit 0 ;;
p35) run_test 36 && exit 0 ;;
p36) run_test 37 && exit 0 ;;
p37) run_test 38 && exit 0 ;;
p38) run_test 39 && exit 0 ;;
p39) run_test 40 && exit 0 ;;
p40) run_test 41 && exit 0 ;;
p41) run_test 42 && exit 0 ;;
p42) run_test 43 && exit 0 ;;
p43) run_test 44 && exit 0 ;;
p44) run_test 45 && exit 0 ;;
p45) run_test 46 && exit 0 ;;
p46) run_test 47 && exit 0 ;;
p47) run_test 48 && exit 0 ;;
p48) run_test 49 && exit 0 ;;
p49) run_test 50 && exit 0 ;;
p50) run_test 52 && exit 0 ;;
p51) run_test 53 && exit 0 ;;
p52) run_test 54 && exit 0 ;;
p53) run_test 55 && exit 0 ;;
p54) run_test 56 && exit 0 ;;
p55) run_test 57 && exit 0 ;;
p56) run_test 58 && exit 0 ;;
p57) run_test 59 && exit 0 ;;
p58) run_test 60 && exit 0 ;;
p59) run_test 61 && exit 0 ;;
p60) run_test 62 && exit 0 ;;
p61) run_test 63 && exit 0 ;;
p62) run_test 64 && exit 0 ;;
p63) run_test 65 && exit 0 ;;
p64) run_test 66 && exit 0 ;;
p65) run_test 67 && exit 0 ;;
p66) run_test 68 && exit 0 ;;
p67) run_test 69 && exit 0 ;;
p68) run_test 70 && exit 0 ;;
p69) run_test 71 && exit 0 ;;
p70) run_test 72 && exit 0 ;;
p71) run_test 73 && exit 0 ;;
p72) run_test 74 && exit 0 ;;
p73) run_test 75 && exit 0 ;;
p74) run_test 76 && exit 0 ;;
p75) run_test 77 && exit 0 ;;
p76) run_test 78 && exit 0 ;;
p77) run_test 79 && exit 0 ;;
p78) run_test 80 && exit 0 ;;
p79) run_test 81 && exit 0 ;;
p80) run_test 82 && exit 0 ;;
p81) run_test 83 && exit 0 ;;
p82) run_test 84 && exit 0 ;;
p83) run_test 85 && exit 0 ;;
p84) run_test 86 && exit 0 ;;
p85) run_test 87 && exit 0 ;;
p86) run_test 88 && exit 0 ;;
p87) run_test 89 && exit 0 ;;
p88) run_test 90 && exit 0 ;;
p89) run_test 91 && exit 0 ;;
p90) run_test 92 && exit 0 ;;
p91) run_test 93 && exit 0 ;;
p92) run_test 94 && exit 0 ;;
p93) run_test 95 && exit 0 ;;
p94) run_test 96 && exit 0 ;;
p95) run_test 97 && exit 0 ;;
p96) run_test 98 && exit 0 ;;
p97) run_test 99 && exit 0 ;;
p98) run_test 100 && exit 0 ;;
p99) run_test 101 && exit 0 ;;
p100) run_test 102 && exit 0 ;;
p101) run_test 103 && exit 0 ;;
p102) run_test 104 && exit 0 ;;
p103) run_test 105 && exit 0 ;;
p104) run_test 106 && exit 0 ;;
p105) run_test 107 && exit 0 ;;
p106) run_test 108 && exit 0 ;;
p107) run_test 109 && exit 0 ;;
p108) run_test 110 && exit 0 ;;
p109) run_test 111 && exit 0 ;;
p110) run_test 112 && exit 0 ;;
p111) run_test 113 && exit 0 ;;
p112) run_test 114 && exit 0 ;;
p113) run_test 115 && exit 0 ;;
p114) run_test 116 && exit 0 ;;
p115) run_test 117 && exit 0 ;;
p116) run_test 118 && exit 0 ;;
p117) run_test 119 && exit 0 ;;
p118) run_test 120 && exit 0 ;;
p119) run_test 121 && exit 0 ;;
p120) run_test 122 && exit 0 ;;
p121) run_test 123 && exit 0 ;;
p122) run_test 124 && exit 0 ;;
p123) run_test 125 && exit 0 ;;
p124) run_test 126 && exit 0 ;;
p125) run_test 127 && exit 0 ;;
p126) run_test 128 && exit 0 ;;
p127) run_test 129 && exit 0 ;;
p128) run_test 130 && exit 0 ;;
p129) run_test 131 && exit 0 ;;
p130) run_test 132 && exit 0 ;;
p131) run_test 133 && exit 0 ;;
p132) run_test 134 && exit 0 ;;
p133) run_test 135 && exit 0 ;;
p134) run_test 136 && exit 0 ;;
p135) run_test 137 && exit 0 ;;
p136) run_test 138 && exit 0 ;;
p137) run_test 139 && exit 0 ;;
p138) run_test 140 && exit 0 ;;
p139) run_test 141 && exit 0 ;;
p140) run_test 142 && exit 0 ;;
p141) run_test 143 && exit 0 ;;
p142) run_test 144 && exit 0 ;;
p143) run_test 145 && exit 0 ;;
p144) run_test 146 && exit 0 ;;
n1) run_test 19 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,142 @@
n1
p1
p2
p3
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
p32
p33
p34
p36
p37
p38
p39
p40
p41
p42
p43
p44
p46
p48
p49
p50
p51
p52
p53
p54
p55
p56
p57
p58
p59
p60
p61
p62
p63
p64
p65
p66
p67
p68
p69
p70
p71
p72
p73
p74
p75
p76
p77
p78
p79
p80
p81
p82
p83
p84
p85
p86
p87
p88
p89
p90
p91
p92
p93
p94
p95
p96
p97
p98
p99
p100
p101
p102
p103
p104
p105
p106
p107
p108
p109
p110
p111
p112
p113
p114
p115
p116
p117
p118
p119
p120
p121
p122
p123
p124
p125
p126
p127
p128
p129
p130
p131
p132
p133
p134
p135
p136
p137
p138
p139
p140
p141
p142
p143
p144
File diff suppressed because one or more lines are too long
+23
View File
@@ -0,0 +1,23 @@
## Running `gzip` bugs
After running the container you need to follow the following
steps to prepare `SOSRepair` for running:
1. Copy `makeout`, `compile.sh`, `test.sh` and `tests-list` to
the container's `/experiment/`.
2. Copy `settings.py` to the container's `/opt/sosrepair/sosrepair`.
3. In the container, reconfigure the project with coverage flags:
```
cd /experiment/src
./configure "CFLAGS=-m32 -fprofile-arcs -ftest-coverage" "CXXFLAGS=-m32 -fprofile-arcs -ftest-coverage" "LDFLAGS=-m32 -lgcov"
make clean
make
```
4. Run `/opt/sosrepair/prepare/setup.sh`.
5. Set proper permissions by running `sudo chmod -R 777 /opt/sosrepair/sosrepair`.
6. Setup environment variables:
```
export PYTHONPATH="/opt/sosrepair/bindings:${PYTHONPATH}"
export CPATH=":/opt/sosrepair/include"
export PATH="/opt/sosrepair/bin:$PATH"
```
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
TIME_LIMIT=60
HERE_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
PATCH_EXE=$1
PATCH_DIR=$(dirname "$PATCH_EXE")
PROJECT_DIR="$HERE_DIR/src"
# Remove the object file for the affected source code file
# cp "$PATCH_DIR/inflate.c" "$PROJECT_DIR/inflate.c" && \
pushd "$PROJECT_DIR" && \
rm -f inflate.o && \
# Clear the results of any test executions for any previous patches
# pushd tests && \
# make clean && \
# popd && \
# Rebuild the rest of the project
timeout $TIME_LIMIT make || exit 1
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
CONTAINER=$1
BUG=$2
docker cp compile.sh $CONTAINER:/experiment/
docker cp $BUG/test.sh $CONTAINER:/experiment/
docker cp $BUG/tests-list.txt $CONTAINER:/experiment/
docker cp $BUG/settings.py $CONTAINER:/opt/sosrepair/sosrepair/
@@ -0,0 +1,80 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/inflate.c"
COMPILE_EXTRA_ARGS = [
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (300, 492)
# IF SOS+
# METHOD_RANGE = (338, 339)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
@@ -0,0 +1,24 @@
#!/bin/bash
TEST_ID=$1
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $DIR/src
timeout 5 perl $DIR/gzip-run-tests.pl $1
RESULT=$?
if [ $RESULT = 0 ] ; then
echo "PASS"
else
echo "FAIL"
fi
cd ..
return 0
}
case $TEST_ID in
p1) run_test 1 && exit 0 ;;
p2) run_test 4 && exit 0 ;;
n1) run_test 3 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,5 @@
For running SOS+ on this bug, we manually helped in finding
correct set of live variables. Variable `ifd` is global variable
therefore not considered by SOS+ as a live variable.
We manually changed code in `fault_localization/suspicious_block.py`
to include `ifd` as a variable.
@@ -0,0 +1,80 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/gzip.c"
COMPILE_EXTRA_ARGS = [
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (608, 692)
# IF SOS+
# METHOD_RANGE = (653, 654)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
@@ -0,0 +1,25 @@
#!/bin/bash
TEST_ID=$1
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $DIR/src
timeout 5 /usr/bin/perl $DIR/gzip-run-tests.pl $1
RESULT=$?
if [ $RESULT = 0 ] ; then
echo "PASS"
else
echo "FAIL"
fi
cd ..
return 0
}
case $TEST_ID in
p1) run_test 1 && exit 0 ;;
p2) run_test 3 && exit 0 ;;
p3) run_test 4 && exit 0 ;;
n1) run_test 7 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,80 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/gzip.c"
COMPILE_EXTRA_ARGS = [
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (1254, 1438)
# IF SOS+
# METHOD_RANGE = (1269,1270)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
@@ -0,0 +1,27 @@
#!/bin/bash
TEST_ID=$1
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $DIR/src
timeout 5 perl $DIR/gzip-run-tests.pl $1
RESULT=$?
if [ $RESULT = 0 ] ; then
echo "PASS"
else
echo "FAIL"
fi
cd ..
return 0
}
case $TEST_ID in
p1) run_test 1 && exit 0 ;;
p2) run_test 3 && exit 0 ;;
p3) run_test 4 && exit 0 ;;
p4) run_test 7 && exit 0 ;;
p5) run_test 9 && exit 0 ;;
n1) run_test 8 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,6 @@
n1
p1
p2
p3
p4
p5
@@ -0,0 +1,80 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/gzip.c"
COMPILE_EXTRA_ARGS = [
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (409, 585)
# IF SOS+
# METHOD_RANGE = (546, 547)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
@@ -0,0 +1,30 @@
#!/bin/bash
TEST_ID=$1
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $DIR/src
timeout 5 perl $DIR/gzip-run-tests.pl $1
RESULT=$?
if [ $RESULT = 0 ] ; then
echo "PASS"
else
echo "FAIL"
fi
cd ..
return 0
}
case $TEST_ID in
p1) run_test 1 && exit 0 ;;
p2) run_test 3 && exit 0 ;;
p3) run_test 4 && exit 0 ;;
p4) run_test 5 && exit 0 ;;
p5) run_test 7 && exit 0 ;;
p6) run_test 8 && exit 0 ;;
p7) run_test 9 && exit 0 ;;
p8) run_test 12 && exit 0 ;;
n1) run_test 6 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,9 @@
n1
p1
p2
p3
p4
p5
p6
p7
p8
+79
View File
@@ -0,0 +1,79 @@
Making all in lib
make[1]: Entering directory `/experiment/src/lib'
GEN arg-nonnull.h
GEN c++defs.h
GEN configmake.h
GEN warn-on-use.h
GEN fcntl.h
GEN stdio.h
GEN string.h
GEN sys/stat.h
GEN sys/time.h
GEN time.h
GEN unistd.h
GEN wchar.h
GEN wctype.h
make all-recursive
make[2]: Entering directory `/experiment/src/lib'
make[3]: Entering directory `/experiment/src/lib'
GEN charset.alias
GEN ref-add.sed
GEN ref-del.sed
CC exitfail.o
CC freadahead.o
CC freading.o
CC localcharset.o
CC close-stream.o
CC xalloc-die.o
CC closein.o
CC closeout.o
CC creat-safer.o
CC dup-safer.o
CC fcntl.o
CC fd-safer.o
CC fflush.o
CC fpurge.o
CC fseeko.o
CC gettime.o
CC open-safer.o
CC pipe-safer.o
CC quotearg.o
CC utimens.o
CC xmalloc.o
CC yesno.o
AR libgzip.a
make[3]: Leaving directory `/experiment/src/lib'
make[2]: Leaving directory `/experiment/src/lib'
make[1]: Leaving directory `/experiment/src/lib'
Making all in doc
make[1]: Entering directory `/experiment/src/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/experiment/src/doc'
make[1]: Entering directory `/experiment/src'
CC bits.o
CC crypt.o
CC deflate.o
CC gzip.o
CC inflate.o
CC lzw.o
CC trees.o
CC unlzh.o
CC unlzw.o
CC unpack.o
CC unzip.o
CC util.o
CC zip.o
GEN gunzip
GEN gzexe
GEN zcat
GEN zcmp
GEN zdiff
GEN zegrep
GEN zfgrep
GEN zforce
GEN zgrep
GEN zless
GEN zmore
GEN znew
CCLD gzip
make[1]: Leaving directory `/experiment/src'
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
TEST_ID=$1
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $DIR/src
timeout 5 perl $DIR/gzip-run-tests.pl $1
RESULT=$?
if [ $RESULT = 0 ] ; then
echo "PASS"
else
echo "FAIL"
fi
cd ..
return 0
}
case $TEST_ID in
p1) run_test 1 && exit 0 ;;
p2) run_test 4 && exit 0 ;;
n1) run_test 3 && exit 0 ;;
esac
exit 1
+23
View File
@@ -0,0 +1,23 @@
## Running `libtiff` bugs
After running the container you need to follow the following
steps to prepare `SOSRepair` for running:
1. Copy `makeout`, `compile.sh`, `test.sh` and `tests-list` to
the container's `/experiment/`.
2. Copy `settings.py` to the container's `/opt/sosrepair/sosrepair`.
3. In the container, reconfigure the project with coverage flags:
```
cd /experiment/src
./configure "CFLAGS=-fprofile-arcs -ftest-coverage" "CXXFLAGS=-fprofile-arcs -ftest-coverage" "LDFLAGS=-lgcov"
make clean
make
```
4. Run `/opt/sosrepair/prepare/setup.sh`.
5. Set proper permissions by running `sudo chmod -R 777 /opt/sosrepair/sosrepair`.
6. Setup environment variables:
```
export PYTHONPATH="/opt/sosrepair/bindings:${PYTHONPATH}"
export CPATH=":/opt/sosrepair/include"
export PATH="/opt/sosrepair/bin:$PATH"
```
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $DIR/src
#make clean
(make && exit 0)|| exit 1
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
CONTAINER=$1
BUG=$2
docker cp compile.sh $CONTAINER:/experiment/
docker cp $BUG/test.sh $CONTAINER:/experiment/
docker cp $BUG/tests-list.txt $CONTAINER:/experiment/
docker cp $BUG/settings.py $CONTAINER:/opt/sosrepair/sosrepair/
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/libtiff/tif_dirread.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (72, 683)
# IF SOS+
# METHOD_RANGE = (589, 590)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/libtiff/.libs"
@@ -0,0 +1,63 @@
#!/bin/bash
bugrev=3b848a7
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
/usr/bin/perl $dir/libtiff-run-tests.pl $1
RESULT=$?
cd ..
return 0
}
run_test1()
{
pushd $dir/src/test > /dev/null
test_script=$(sed "$1q;d" $dir/TESTS)
test_script_log="$test_script.log"
rm -f $test_script_log
timeout $timeout make $test_script_log
#timeout $timeout ./$test_script
return $?
}
case $1 in
p1) run_test 2 && exit 0 ;;
p2) run_test 3 && exit 0 ;;
p3) run_test 4 && exit 0 ;;
p4) run_test 5 && exit 0 ;;
p5) run_test 6 && exit 0 ;;
p6) run_test 7 && exit 0 ;;
p7) run_test 8 && exit 0 ;;
p8) run_test 10 && exit 0 ;;
p9) run_test 11 && exit 0 ;;
p10) run_test 12 && exit 0 ;;
p11) run_test 13 && exit 0 ;;
p12) run_test 14 && exit 0 ;;
p13) run_test 15 && exit 0 ;;
p14) run_test 16 && exit 0 ;;
p15) run_test 17 && exit 0 ;;
p16) run_test 19 && exit 0 ;;
p17) run_test 20 && exit 0 ;;
p18) run_test 21 && exit 0 ;;
p19) run_test 24 && exit 0 ;;
p20) run_test 25 && exit 0 ;;
p21) run_test 26 && exit 0 ;;
p22) run_test 27 && exit 0 ;;
p23) run_test 28 && exit 0 ;;
p24) run_test 69 && exit 0 ;;
p25) run_test 70 && exit 0 ;;
p26) run_test 71 && exit 0 ;;
p27) run_test 72 && exit 0 ;;
p28) run_test 73 && exit 0 ;;
p29) run_test 74 && exit 0 ;;
p30) run_test 75 && exit 0 ;;
p31) run_test 76 && exit 0 ;;
p32) run_test 77 && exit 0 ;;
p33) run_test 78 && exit 0 ;;
n1) run_test 22 && exit 0 ;;
n2) run_test 23 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,34 @@
n1
n2
p1
p2
p3
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
p32
p33
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/libtiff/tif_dirwrite.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (83, 403)
# IF SOS+
# METHOD_RANGE = (338, 339)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/libtiff/.libs"
@@ -0,0 +1,52 @@
#!/bin/bash
bugrev=b2ce5d8
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
/usr/bin/perl $dir/libtiff-run-tests.pl $1
RESULT=$?
cd ..
return 0
}
case $1 in
p1) run_test 2 && exit 0 ;;
p2) run_test 4 && exit 0 ;;
p3) run_test 5 && exit 0 ;;
p4) run_test 6 && exit 0 ;;
p5) run_test 7 && exit 0 ;;
p6) run_test 8 && exit 0 ;;
p7) run_test 10 && exit 0 ;;
p8) run_test 11 && exit 0 ;;
p9) run_test 12 && exit 0 ;;
p10) run_test 13 && exit 0 ;;
p11) run_test 14 && exit 0 ;;
p12) run_test 15 && exit 0 ;;
p13) run_test 16 && exit 0 ;;
p14) run_test 17 && exit 0 ;;
p15) run_test 19 && exit 0 ;;
p16) run_test 20 && exit 0 ;;
p17) run_test 21 && exit 0 ;;
p18) run_test 22 && exit 0 ;;
p19) run_test 23 && exit 0 ;;
p20) run_test 24 && exit 0 ;;
p21) run_test 25 && exit 0 ;;
p22) run_test 26 && exit 0 ;;
p23) run_test 27 && exit 0 ;;
p24) run_test 28 && exit 0 ;;
p25) run_test 69 && exit 0 ;;
p26) run_test 70 && exit 0 ;;
p27) run_test 71 && exit 0 ;;
p28) run_test 72 && exit 0 ;;
p29) run_test 73 && exit 0 ;;
p30) run_test 74 && exit 0 ;;
p31) run_test 75 && exit 0 ;;
p32) run_test 76 && exit 0 ;;
p33) run_test 77 && exit 0 ;;
p34) run_test 78 && exit 0 ;;
n1) run_test 3 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,34 @@
n1
p1
p2
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
p32
p33
p34
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/libtiff/tif_dirread.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (972, 1018)
# IF SOS+
# METHOD_RANGE = (976, 977)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/libtiff/.libs"
@@ -0,0 +1,53 @@
#!/bin/bash
bugrev=a72cf60
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
/usr/bin/perl $dir/libtiff-run-tests.pl $1
RESULT=$?
cd ..
return 0
}
case $1 in
p1) run_test 5 && exit 0 ;;
p2) run_test 6 && exit 0 ;;
p3) run_test 7 && exit 0 ;;
p4) run_test 8 && exit 0 ;;
p5) run_test 9 && exit 0 ;;
p6) run_test 10 && exit 0 ;;
p7) run_test 11 && exit 0 ;;
p8) run_test 12 && exit 0 ;;
p9) run_test 13 && exit 0 ;;
p10) run_test 14 && exit 0 ;;
p11) run_test 15 && exit 0 ;;
p12) run_test 16 && exit 0 ;;
p13) run_test 17 && exit 0 ;;
p14) run_test 19 && exit 0 ;;
p15) run_test 20 && exit 0 ;;
p16) run_test 21 && exit 0 ;;
p17) run_test 24 && exit 0 ;;
p18) run_test 25 && exit 0 ;;
p19) run_test 26 && exit 0 ;;
p20) run_test 27 && exit 0 ;;
p21) run_test 28 && exit 0 ;;
p22) run_test 69 && exit 0 ;;
p23) run_test 70 && exit 0 ;;
p24) run_test 71 && exit 0 ;;
p25) run_test 72 && exit 0 ;;
p26) run_test 73 && exit 0 ;;
p27) run_test 74 && exit 0 ;;
p28) run_test 75 && exit 0 ;;
p29) run_test 76 && exit 0 ;;
p30) run_test 77 && exit 0 ;;
p31) run_test 78 && exit 0 ;;
n1) run_test 2 && exit 0 ;;
n2) run_test 3 && exit 0 ;;
n3) run_test 4 && exit 0 ;;
n4) run_test 22 && exit 0 ;;
n5) run_test 23 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,35 @@
n1
n2
n3
n4
n5
p2
p3
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
@@ -0,0 +1,79 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/libtiff/tif_dirread.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (972, 1018)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
@@ -0,0 +1,63 @@
#!/bin/bash
bugrev=a72cf60
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
#Check if coverage is being run. If so, don't use time limit.
if [ `basename $1` = "coverage" ] ; then
cov=0
else
cov=1
fi
run_test()
{
cd $dir/src
if [ $cov -eq 0 ] ; then
/usr/bin/perl $dir/libtiff-run-tests.pl $1
else
$dir/limit /usr/bin/perl $dir/libtiff-run-tests.pl $1
fi
RESULT=$?
cd ..
return 0
}
case $2 in
p1) run_test 5 && exit 0 ;;
p2) run_test 6 && exit 0 ;;
p3) run_test 7 && exit 0 ;;
p4) run_test 8 && exit 0 ;;
p5) run_test 9 && exit 0 ;;
p6) run_test 10 && exit 0 ;;
p7) run_test 11 && exit 0 ;;
p8) run_test 12 && exit 0 ;;
p9) run_test 13 && exit 0 ;;
p10) run_test 14 && exit 0 ;;
p11) run_test 15 && exit 0 ;;
p12) run_test 16 && exit 0 ;;
p13) run_test 17 && exit 0 ;;
p14) run_test 19 && exit 0 ;;
p15) run_test 20 && exit 0 ;;
p16) run_test 21 && exit 0 ;;
p17) run_test 24 && exit 0 ;;
p18) run_test 25 && exit 0 ;;
p19) run_test 26 && exit 0 ;;
p20) run_test 27 && exit 0 ;;
p21) run_test 28 && exit 0 ;;
p22) run_test 69 && exit 0 ;;
p23) run_test 70 && exit 0 ;;
p24) run_test 71 && exit 0 ;;
p25) run_test 72 && exit 0 ;;
p26) run_test 73 && exit 0 ;;
p27) run_test 74 && exit 0 ;;
p28) run_test 75 && exit 0 ;;
p29) run_test 76 && exit 0 ;;
p30) run_test 77 && exit 0 ;;
p31) run_test 78 && exit 0 ;;
n1) run_test 2 && exit 0 ;;
n2) run_test 3 && exit 0 ;;
n3) run_test 4 && exit 0 ;;
n4) run_test 22 && exit 0 ;;
n5) run_test 23 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,35 @@
n1
n2
n3
n4
n5
p2
p3
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/libtiff/tif_dirread.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (972, 1018)
# IF SOS+
# METHOD_RANGE = (976, 977)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/libtiff/.libs"
@@ -0,0 +1,55 @@
#!/bin/bash
bugrev=eec4c06
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
/usr/bin/perl $dir/libtiff-run-tests.pl $1
RESULT=$?
cd ..
return 0
}
case $1 in
p1) run_test 5 && exit 0 ;;
p2) run_test 6 && exit 0 ;;
p3) run_test 7 && exit 0 ;;
p4) run_test 8 && exit 0 ;;
p5) run_test 9 && exit 0 ;;
p6) run_test 10 && exit 0 ;;
p7) run_test 11 && exit 0 ;;
p8) run_test 12 && exit 0 ;;
p9) run_test 13 && exit 0 ;;
p10) run_test 14 && exit 0 ;;
p11) run_test 15 && exit 0 ;;
p12) run_test 16 && exit 0 ;;
p13) run_test 17 && exit 0 ;;
p14) run_test 19 && exit 0 ;;
p15) run_test 20 && exit 0 ;;
p16) run_test 21 && exit 0 ;;
p17) run_test 24 && exit 0 ;;
p18) run_test 25 && exit 0 ;;
p19) run_test 26 && exit 0 ;;
p20) run_test 27 && exit 0 ;;
p21) run_test 28 && exit 0 ;;
p22) run_test 69 && exit 0 ;;
p23) run_test 70 && exit 0 ;;
p24) run_test 71 && exit 0 ;;
p25) run_test 72 && exit 0 ;;
p26) run_test 73 && exit 0 ;;
p27) run_test 74 && exit 0 ;;
p28) run_test 75 && exit 0 ;;
p29) run_test 76 && exit 0 ;;
p30) run_test 77 && exit 0 ;;
p31) run_test 78 && exit 0 ;;
n1) run_test 2 && exit 0 ;;
n2) run_test 3 && exit 0 ;;
n3) run_test 4 && exit 0 ;;
n4) run_test 22 && exit 0 ;;
n5) run_test 23 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,35 @@
n1
n2
n3
n4
n5
p2
p3
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
@@ -0,0 +1,3 @@
To allow SOS+ to find the perfect patch you need to run it with
flag `--all_patches`. Also limit the considered variables for
insertion to `size` and `stripsize`.
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/libtiff/tif_read.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (126, 168)
# IF SOS+
# METHOD_RANGE = (164, 165)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/libtiff/.libs"
@@ -0,0 +1,78 @@
#!/bin/bash
bugrev=09e8220
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
/usr/bin/perl $dir/libtiff-run-tests.pl $1
RESULT=$?
cd ..
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 5 && exit 0 ;;
p4) run_test 6 && exit 0 ;;
p5) run_test 7 && exit 0 ;;
p6) run_test 8 && exit 0 ;;
p7) run_test 9 && exit 0 ;;
p8) run_test 10 && exit 0 ;;
p9) run_test 11 && exit 0 ;;
p10) run_test 12 && exit 0 ;;
p11) run_test 13 && exit 0 ;;
p12) run_test 14 && exit 0 ;;
p13) run_test 15 && exit 0 ;;
p14) run_test 16 && exit 0 ;;
p15) run_test 17 && exit 0 ;;
p16) run_test 20 && exit 0 ;;
p17) run_test 21 && exit 0 ;;
p18) run_test 22 && exit 0 ;;
p19) run_test 24 && exit 0 ;;
p20) run_test 25 && exit 0 ;;
p21) run_test 26 && exit 0 ;;
p22) run_test 27 && exit 0 ;;
p23) run_test 28 && exit 0 ;;
p24) run_test 39 && exit 0 ;;
p25) run_test 40 && exit 0 ;;
p26) run_test 41 && exit 0 ;;
p27) run_test 43 && exit 0 ;;
p28) run_test 44 && exit 0 ;;
p29) run_test 45 && exit 0 ;;
p30) run_test 46 && exit 0 ;;
p31) run_test 47 && exit 0 ;;
p32) run_test 48 && exit 0 ;;
p33) run_test 49 && exit 0 ;;
p34) run_test 50 && exit 0 ;;
p35) run_test 51 && exit 0 ;;
p36) run_test 53 && exit 0 ;;
p37) run_test 54 && exit 0 ;;
p38) run_test 55 && exit 0 ;;
p39) run_test 56 && exit 0 ;;
p40) run_test 57 && exit 0 ;;
p41) run_test 58 && exit 0 ;;
p42) run_test 59 && exit 0 ;;
p43) run_test 60 && exit 0 ;;
p44) run_test 61 && exit 0 ;;
p45) run_test 63 && exit 0 ;;
p46) run_test 64 && exit 0 ;;
p47) run_test 65 && exit 0 ;;
p48) run_test 66 && exit 0 ;;
p49) run_test 67 && exit 0 ;;
p50) run_test 68 && exit 0 ;;
p51) run_test 69 && exit 0 ;;
p52) run_test 70 && exit 0 ;;
p53) run_test 71 && exit 0 ;;
p54) run_test 72 && exit 0 ;;
p55) run_test 73 && exit 0 ;;
p56) run_test 74 && exit 0 ;;
p57) run_test 75 && exit 0 ;;
p58) run_test 76 && exit 0 ;;
p59) run_test 77 && exit 0 ;;
p60) run_test 78 && exit 0 ;;
n1) run_test 4 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,60 @@
n1
p1
p2
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
p32
p33
p34
p35
p36
p37
p38
p39
p40
p41
p42
p43
p44
p45
p46
p47
p48
p49
p50
p51
p52
p53
p54
p55
p56
p57
p58
p59
p60
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/libtiff/tif_dirwrite.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (311, 853)
# IF SOS+
# METHOD_RANGE = (346, 347)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/libtiff/.libs"
@@ -0,0 +1,77 @@
#!/bin/bash
bugrev=371336d
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
/usr/bin/perl $dir/libtiff-run-tests.pl $1
RESULT=$?
cd ..
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 4 && exit 0 ;;
p4) run_test 5 && exit 0 ;;
p5) run_test 6 && exit 0 ;;
p6) run_test 7 && exit 0 ;;
p7) run_test 8 && exit 0 ;;
p8) run_test 9 && exit 0 ;;
p9) run_test 10 && exit 0 ;;
p10) run_test 11 && exit 0 ;;
p11) run_test 12 && exit 0 ;;
p12) run_test 13 && exit 0 ;;
p13) run_test 14 && exit 0 ;;
p14) run_test 15 && exit 0 ;;
p15) run_test 16 && exit 0 ;;
p16) run_test 17 && exit 0 ;;
p17) run_test 20 && exit 0 ;;
p18) run_test 21 && exit 0 ;;
p19) run_test 24 && exit 0 ;;
p20) run_test 25 && exit 0 ;;
p21) run_test 26 && exit 0 ;;
p22) run_test 27 && exit 0 ;;
p23) run_test 28 && exit 0 ;;
p24) run_test 39 && exit 0 ;;
p25) run_test 40 && exit 0 ;;
p26) run_test 41 && exit 0 ;;
p27) run_test 43 && exit 0 ;;
p28) run_test 44 && exit 0 ;;
p29) run_test 45 && exit 0 ;;
p30) run_test 46 && exit 0 ;;
p31) run_test 47 && exit 0 ;;
p32) run_test 48 && exit 0 ;;
p33) run_test 49 && exit 0 ;;
p34) run_test 50 && exit 0 ;;
p35) run_test 51 && exit 0 ;;
p36) run_test 53 && exit 0 ;;
p37) run_test 54 && exit 0 ;;
p38) run_test 55 && exit 0 ;;
p39) run_test 56 && exit 0 ;;
p40) run_test 57 && exit 0 ;;
p41) run_test 58 && exit 0 ;;
p42) run_test 59 && exit 0 ;;
p43) run_test 60 && exit 0 ;;
p44) run_test 61 && exit 0 ;;
p45) run_test 63 && exit 0 ;;
p46) run_test 64 && exit 0 ;;
p47) run_test 65 && exit 0 ;;
p48) run_test 66 && exit 0 ;;
p49) run_test 67 && exit 0 ;;
p50) run_test 68 && exit 0 ;;
p51) run_test 69 && exit 0 ;;
p52) run_test 70 && exit 0 ;;
p53) run_test 71 && exit 0 ;;
p54) run_test 72 && exit 0 ;;
p55) run_test 73 && exit 0 ;;
p56) run_test 74 && exit 0 ;;
p57) run_test 75 && exit 0 ;;
p58) run_test 76 && exit 0 ;;
p59) run_test 77 && exit 0 ;;
p60) run_test 78 && exit 0 ;;
n1) run_test 22 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,60 @@
n1
p1
p2
p3
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
p32
p33
p34
p35
p36
p37
p38
p39
p40
p41
p42
p43
p44
p45
p46
p47
p48
p49
p50
p51
p52
p53
p54
p55
p56
p57
p58
p59
p60
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/tools/tiffcrop.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/libtiff",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (4950, 5131)
# IF SOS+
# METHOD_RANGE = (4969, 4970)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = ""
@@ -0,0 +1,90 @@
#!/bin/bash
bugrev=764dbba
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
/usr/bin/perl $dir/libtiff-run-tests.pl $1
RESULT=$?
cd ..
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 5 && exit 0 ;;
p6) run_test 6 && exit 0 ;;
p7) run_test 7 && exit 0 ;;
p8) run_test 8 && exit 0 ;;
p9) run_test 9 && exit 0 ;;
p10) run_test 10 && exit 0 ;;
p11) run_test 11 && exit 0 ;;
p12) run_test 12 && exit 0 ;;
p13) run_test 13 && exit 0 ;;
p14) run_test 14 && exit 0 ;;
p15) run_test 15 && exit 0 ;;
p16) run_test 16 && exit 0 ;;
p17) run_test 17 && exit 0 ;;
p18) run_test 19 && exit 0 ;;
p19) run_test 20 && exit 0 ;;
p20) run_test 21 && exit 0 ;;
p21) run_test 22 && exit 0 ;;
p22) run_test 23 && exit 0 ;;
p23) run_test 24 && exit 0 ;;
p24) run_test 25 && exit 0 ;;
p25) run_test 26 && exit 0 ;;
p26) run_test 27 && exit 0 ;;
p27) run_test 28 && exit 0 ;;
p28) run_test 29 && exit 0 ;;
p29) run_test 30 && exit 0 ;;
p30) run_test 31 && exit 0 ;;
p31) run_test 33 && exit 0 ;;
p32) run_test 34 && exit 0 ;;
p33) run_test 35 && exit 0 ;;
p34) run_test 36 && exit 0 ;;
p35) run_test 37 && exit 0 ;;
p36) run_test 38 && exit 0 ;;
p37) run_test 49 && exit 0 ;;
p38) run_test 50 && exit 0 ;;
p39) run_test 51 && exit 0 ;;
p40) run_test 53 && exit 0 ;;
p41) run_test 54 && exit 0 ;;
p42) run_test 55 && exit 0 ;;
p43) run_test 56 && exit 0 ;;
p44) run_test 57 && exit 0 ;;
p45) run_test 58 && exit 0 ;;
p46) run_test 59 && exit 0 ;;
p47) run_test 60 && exit 0 ;;
p48) run_test 61 && exit 0 ;;
p49) run_test 63 && exit 0 ;;
p50) run_test 64 && exit 0 ;;
p51) run_test 65 && exit 0 ;;
p52) run_test 66 && exit 0 ;;
p53) run_test 67 && exit 0 ;;
p54) run_test 68 && exit 0 ;;
p55) run_test 69 && exit 0 ;;
p56) run_test 70 && exit 0 ;;
p57) run_test 71 && exit 0 ;;
p58) run_test 72 && exit 0 ;;
p59) run_test 73 && exit 0 ;;
p60) run_test 74 && exit 0 ;;
p61) run_test 75 && exit 0 ;;
p62) run_test 76 && exit 0 ;;
p63) run_test 77 && exit 0 ;;
p64) run_test 78 && exit 0 ;;
n1) run_test 39 && exit 0 ;;
n2) run_test 40 && exit 0 ;;
n3) run_test 41 && exit 0 ;;
n4) run_test 43 && exit 0 ;;
n5) run_test 44 && exit 0 ;;
n6) run_test 45 && exit 0 ;;
n7) run_test 46 && exit 0 ;;
n8) run_test 47 && exit 0 ;;
n9) run_test 48 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,72 @@
n1
n2
n3
n4
n5
n6
n7
n8
n9
p1
p2
p3
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p23
p24
p25
p26
p27
p28
p29
p30
p31
p32
p33
p34
p35
p36
p37
p38
p39
p40
p41
p42
p43
p44
p45
p46
p47
p48
p49
p50
p51
p52
p53
p54
p55
p56
p57
p58
p59
p60
p61
p62
p63
p64
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/tools/tiffinfo.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (69, 161)
# IF SOS+
# METHOD_RANGE = (132, 134)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = ""
@@ -0,0 +1,91 @@
#!/bin/bash
bugrev=e8a47d4
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
/usr/bin/perl $dir/libtiff-run-tests.pl $1
RESULT=$?
cd ..
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 5 && exit 0 ;;
p6) run_test 6 && exit 0 ;;
p7) run_test 7 && exit 0 ;;
p8) run_test 8 && exit 0 ;;
p9) run_test 9 && exit 0 ;;
p10) run_test 10 && exit 0 ;;
p11) run_test 11 && exit 0 ;;
p12) run_test 12 && exit 0 ;;
p13) run_test 13 && exit 0 ;;
p14) run_test 14 && exit 0 ;;
p15) run_test 15 && exit 0 ;;
p16) run_test 16 && exit 0 ;;
p17) run_test 17 && exit 0 ;;
p18) run_test 18 && exit 0 ;;
p19) run_test 19 && exit 0 ;;
p20) run_test 20 && exit 0 ;;
p21) run_test 21 && exit 0 ;;
p22) run_test 22 && exit 0 ;;
p23) run_test 23 && exit 0 ;;
p24) run_test 24 && exit 0 ;;
p25) run_test 25 && exit 0 ;;
p26) run_test 26 && exit 0 ;;
p27) run_test 27 && exit 0 ;;
p28) run_test 28 && exit 0 ;;
p29) run_test 29 && exit 0 ;;
p30) run_test 30 && exit 0 ;;
p31) run_test 31 && exit 0 ;;
p32) run_test 33 && exit 0 ;;
p33) run_test 34 && exit 0 ;;
p34) run_test 35 && exit 0 ;;
p35) run_test 36 && exit 0 ;;
p36) run_test 37 && exit 0 ;;
p37) run_test 38 && exit 0 ;;
p38) run_test 39 && exit 0 ;;
p39) run_test 40 && exit 0 ;;
p40) run_test 41 && exit 0 ;;
p41) run_test 43 && exit 0 ;;
p42) run_test 44 && exit 0 ;;
p43) run_test 45 && exit 0 ;;
p44) run_test 46 && exit 0 ;;
p45) run_test 47 && exit 0 ;;
p46) run_test 48 && exit 0 ;;
p47) run_test 50 && exit 0 ;;
p48) run_test 51 && exit 0 ;;
p49) run_test 53 && exit 0 ;;
p50) run_test 54 && exit 0 ;;
p51) run_test 55 && exit 0 ;;
p52) run_test 56 && exit 0 ;;
p53) run_test 57 && exit 0 ;;
p54) run_test 58 && exit 0 ;;
p55) run_test 59 && exit 0 ;;
p56) run_test 60 && exit 0 ;;
p57) run_test 61 && exit 0 ;;
p58) run_test 63 && exit 0 ;;
p59) run_test 64 && exit 0 ;;
p60) run_test 65 && exit 0 ;;
p61) run_test 66 && exit 0 ;;
p62) run_test 67 && exit 0 ;;
p63) run_test 68 && exit 0 ;;
p64) run_test 69 && exit 0 ;;
p65) run_test 70 && exit 0 ;;
p66) run_test 71 && exit 0 ;;
p67) run_test 72 && exit 0 ;;
p68) run_test 73 && exit 0 ;;
p69) run_test 74 && exit 0 ;;
p70) run_test 75 && exit 0 ;;
p71) run_test 76 && exit 0 ;;
p72) run_test 77 && exit 0 ;;
p73) run_test 78 && exit 0 ;;
n1) run_test 49 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,74 @@
n1
p1
p2
p3
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p22
p23
p24
p25
p26
p27
p28
p29
p30
p31
p32
p33
p34
p35
p36
p37
p38
p39
p40
p41
p42
p43
p44
p45
p46
p47
p48
p49
p50
p51
p52
p53
p54
p55
p56
p57
p58
p59
p60
p61
p62
p63
p64
p65
p66
p67
p68
p69
p70
p71
p72
p73
@@ -0,0 +1,83 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/tools/tiff2pdf.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (559, 784)
# IF SOS+
# METHOD_RANGE = (769, 770)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = ""
@@ -0,0 +1,93 @@
#!/bin/bash
bugrev=eb326f9
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src
/usr/bin/perl $dir/libtiff-run-tests.pl $1
RESULT=$?
cd ..
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 5 && exit 0 ;;
p6) run_test 6 && exit 0 ;;
p7) run_test 7 && exit 0 ;;
p8) run_test 8 && exit 0 ;;
p9) run_test 9 && exit 0 ;;
p10) run_test 10 && exit 0 ;;
p11) run_test 11 && exit 0 ;;
p12) run_test 12 && exit 0 ;;
p13) run_test 13 && exit 0 ;;
p14) run_test 14 && exit 0 ;;
p15) run_test 15 && exit 0 ;;
p16) run_test 16 && exit 0 ;;
p17) run_test 17 && exit 0 ;;
p18) run_test 18 && exit 0 ;;
p19) run_test 19 && exit 0 ;;
p20) run_test 20 && exit 0 ;;
p21) run_test 21 && exit 0 ;;
p22) run_test 22 && exit 0 ;;
p23) run_test 23 && exit 0 ;;
p24) run_test 24 && exit 0 ;;
p25) run_test 25 && exit 0 ;;
p26) run_test 26 && exit 0 ;;
p27) run_test 27 && exit 0 ;;
p28) run_test 29 && exit 0 ;;
p29) run_test 30 && exit 0 ;;
p30) run_test 31 && exit 0 ;;
p31) run_test 32 && exit 0 ;;
p32) run_test 33 && exit 0 ;;
p33) run_test 34 && exit 0 ;;
p34) run_test 35 && exit 0 ;;
p35) run_test 36 && exit 0 ;;
p36) run_test 37 && exit 0 ;;
p37) run_test 38 && exit 0 ;;
p38) run_test 39 && exit 0 ;;
p39) run_test 40 && exit 0 ;;
p40) run_test 41 && exit 0 ;;
p41) run_test 42 && exit 0 ;;
p42) run_test 43 && exit 0 ;;
p43) run_test 44 && exit 0 ;;
p44) run_test 45 && exit 0 ;;
p45) run_test 46 && exit 0 ;;
p46) run_test 47 && exit 0 ;;
p47) run_test 48 && exit 0 ;;
p48) run_test 50 && exit 0 ;;
p49) run_test 51 && exit 0 ;;
p50) run_test 52 && exit 0 ;;
p51) run_test 53 && exit 0 ;;
p52) run_test 54 && exit 0 ;;
p53) run_test 55 && exit 0 ;;
p54) run_test 56 && exit 0 ;;
p55) run_test 57 && exit 0 ;;
p56) run_test 58 && exit 0 ;;
p57) run_test 59 && exit 0 ;;
p58) run_test 60 && exit 0 ;;
p59) run_test 61 && exit 0 ;;
p60) run_test 62 && exit 0 ;;
p61) run_test 63 && exit 0 ;;
p62) run_test 64 && exit 0 ;;
p63) run_test 65 && exit 0 ;;
p64) run_test 66 && exit 0 ;;
p65) run_test 67 && exit 0 ;;
p66) run_test 68 && exit 0 ;;
p67) run_test 69 && exit 0 ;;
p68) run_test 70 && exit 0 ;;
p69) run_test 71 && exit 0 ;;
p70) run_test 72 && exit 0 ;;
p71) run_test 73 && exit 0 ;;
p72) run_test 74 && exit 0 ;;
p73) run_test 75 && exit 0 ;;
p74) run_test 76 && exit 0 ;;
p75) run_test 77 && exit 0 ;;
p76) run_test 78 && exit 0 ;;
n1) run_test 28 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,76 @@
n1
p1
p2
p3
p4
p5
p6
p7
p8
p9
p10
p11
p12
p13
p14
p15
p16
p17
p18
p19
p20
p21
p23
p24
p25
p26
p27
p28
p29
p30
p31
p32
p33
p34
p35
p36
p37
p38
p39
p40
p41
p42
p43
p44
p45
p46
p47
p48
p49
p50
p51
p52
p53
p54
p55
p56
p57
p58
p59
p60
p61
p62
p63
p64
p65
p66
p67
p68
p69
p70
p71
p72
p73
p74
p75
p76
+675
View File
@@ -0,0 +1,675 @@
Making all in port
make[1]: Entering directory `/experiment/src/port'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -m32 -Wall -MT dummy.lo -MD -MP -MF ".deps/dummy.Tpo" -c -o dummy.lo dummy.c; \
then mv -f ".deps/dummy.Tpo" ".deps/dummy.Plo"; else rm -f ".deps/dummy.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -m32 -Wall -MT dummy.lo -MD -MP -MF .deps/dummy.Tpo -c dummy.c -fPIC -DPIC -o .libs/dummy.o
dummy.c:8:1: warning: 'libport_dummy_function' defined but not used [-Wunused-function]
libport_dummy_function()
^
gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -m32 -Wall -MT dummy.lo -MD -MP -MF .deps/dummy.Tpo -c dummy.c -o dummy.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o libport.la dummy.lo -lm -lc
ar cru .libs/libport.a .libs/dummy.o
ranlib .libs/libport.a
creating libport.la
(cd .libs && rm -f libport.la && ln -s ../libport.la libport.la)
make[1]: Leaving directory `/experiment/src/port'
Making all in libtiff
make[1]: Entering directory `/experiment/src/libtiff'
make all-am
make[2]: Entering directory `/experiment/src/libtiff'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_aux.lo -MD -MP -MF ".deps/tif_aux.Tpo" -c -o tif_aux.lo tif_aux.c; \
then mv -f ".deps/tif_aux.Tpo" ".deps/tif_aux.Plo"; else rm -f ".deps/tif_aux.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_aux.lo -MD -MP -MF .deps/tif_aux.Tpo -c tif_aux.c -fPIC -DPIC -o .libs/tif_aux.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_aux.lo -MD -MP -MF .deps/tif_aux.Tpo -c tif_aux.c -o tif_aux.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_close.lo -MD -MP -MF ".deps/tif_close.Tpo" -c -o tif_close.lo tif_close.c; \
then mv -f ".deps/tif_close.Tpo" ".deps/tif_close.Plo"; else rm -f ".deps/tif_close.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_close.lo -MD -MP -MF .deps/tif_close.Tpo -c tif_close.c -fPIC -DPIC -o .libs/tif_close.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_close.lo -MD -MP -MF .deps/tif_close.Tpo -c tif_close.c -o tif_close.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_codec.lo -MD -MP -MF ".deps/tif_codec.Tpo" -c -o tif_codec.lo tif_codec.c; \
then mv -f ".deps/tif_codec.Tpo" ".deps/tif_codec.Plo"; else rm -f ".deps/tif_codec.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_codec.lo -MD -MP -MF .deps/tif_codec.Tpo -c tif_codec.c -fPIC -DPIC -o .libs/tif_codec.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_codec.lo -MD -MP -MF .deps/tif_codec.Tpo -c tif_codec.c -o tif_codec.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_color.lo -MD -MP -MF ".deps/tif_color.Tpo" -c -o tif_color.lo tif_color.c; \
then mv -f ".deps/tif_color.Tpo" ".deps/tif_color.Plo"; else rm -f ".deps/tif_color.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_color.lo -MD -MP -MF .deps/tif_color.Tpo -c tif_color.c -fPIC -DPIC -o .libs/tif_color.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_color.lo -MD -MP -MF .deps/tif_color.Tpo -c tif_color.c -o tif_color.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_compress.lo -MD -MP -MF ".deps/tif_compress.Tpo" -c -o tif_compress.lo tif_compress.c; \
then mv -f ".deps/tif_compress.Tpo" ".deps/tif_compress.Plo"; else rm -f ".deps/tif_compress.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_compress.lo -MD -MP -MF .deps/tif_compress.Tpo -c tif_compress.c -fPIC -DPIC -o .libs/tif_compress.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_compress.lo -MD -MP -MF .deps/tif_compress.Tpo -c tif_compress.c -o tif_compress.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dir.lo -MD -MP -MF ".deps/tif_dir.Tpo" -c -o tif_dir.lo tif_dir.c; \
then mv -f ".deps/tif_dir.Tpo" ".deps/tif_dir.Plo"; else rm -f ".deps/tif_dir.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dir.lo -MD -MP -MF .deps/tif_dir.Tpo -c tif_dir.c -fPIC -DPIC -o .libs/tif_dir.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dir.lo -MD -MP -MF .deps/tif_dir.Tpo -c tif_dir.c -o tif_dir.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dirinfo.lo -MD -MP -MF ".deps/tif_dirinfo.Tpo" -c -o tif_dirinfo.lo tif_dirinfo.c; \
then mv -f ".deps/tif_dirinfo.Tpo" ".deps/tif_dirinfo.Plo"; else rm -f ".deps/tif_dirinfo.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dirinfo.lo -MD -MP -MF .deps/tif_dirinfo.Tpo -c tif_dirinfo.c -fPIC -DPIC -o .libs/tif_dirinfo.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dirinfo.lo -MD -MP -MF .deps/tif_dirinfo.Tpo -c tif_dirinfo.c -o tif_dirinfo.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dirread.lo -MD -MP -MF ".deps/tif_dirread.Tpo" -c -o tif_dirread.lo tif_dirread.c; \
then mv -f ".deps/tif_dirread.Tpo" ".deps/tif_dirread.Plo"; else rm -f ".deps/tif_dirread.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dirread.lo -MD -MP -MF .deps/tif_dirread.Tpo -c tif_dirread.c -fPIC -DPIC -o .libs/tif_dirread.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dirread.lo -MD -MP -MF .deps/tif_dirread.Tpo -c tif_dirread.c -o tif_dirread.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dirwrite.lo -MD -MP -MF ".deps/tif_dirwrite.Tpo" -c -o tif_dirwrite.lo tif_dirwrite.c; \
then mv -f ".deps/tif_dirwrite.Tpo" ".deps/tif_dirwrite.Plo"; else rm -f ".deps/tif_dirwrite.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dirwrite.lo -MD -MP -MF .deps/tif_dirwrite.Tpo -c tif_dirwrite.c -fPIC -DPIC -o .libs/tif_dirwrite.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dirwrite.lo -MD -MP -MF .deps/tif_dirwrite.Tpo -c tif_dirwrite.c -o tif_dirwrite.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dumpmode.lo -MD -MP -MF ".deps/tif_dumpmode.Tpo" -c -o tif_dumpmode.lo tif_dumpmode.c; \
then mv -f ".deps/tif_dumpmode.Tpo" ".deps/tif_dumpmode.Plo"; else rm -f ".deps/tif_dumpmode.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dumpmode.lo -MD -MP -MF .deps/tif_dumpmode.Tpo -c tif_dumpmode.c -fPIC -DPIC -o .libs/tif_dumpmode.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_dumpmode.lo -MD -MP -MF .deps/tif_dumpmode.Tpo -c tif_dumpmode.c -o tif_dumpmode.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_error.lo -MD -MP -MF ".deps/tif_error.Tpo" -c -o tif_error.lo tif_error.c; \
then mv -f ".deps/tif_error.Tpo" ".deps/tif_error.Plo"; else rm -f ".deps/tif_error.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_error.lo -MD -MP -MF .deps/tif_error.Tpo -c tif_error.c -fPIC -DPIC -o .libs/tif_error.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_error.lo -MD -MP -MF .deps/tif_error.Tpo -c tif_error.c -o tif_error.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_extension.lo -MD -MP -MF ".deps/tif_extension.Tpo" -c -o tif_extension.lo tif_extension.c; \
then mv -f ".deps/tif_extension.Tpo" ".deps/tif_extension.Plo"; else rm -f ".deps/tif_extension.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_extension.lo -MD -MP -MF .deps/tif_extension.Tpo -c tif_extension.c -fPIC -DPIC -o .libs/tif_extension.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_extension.lo -MD -MP -MF .deps/tif_extension.Tpo -c tif_extension.c -o tif_extension.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_fax3.lo -MD -MP -MF ".deps/tif_fax3.Tpo" -c -o tif_fax3.lo tif_fax3.c; \
then mv -f ".deps/tif_fax3.Tpo" ".deps/tif_fax3.Plo"; else rm -f ".deps/tif_fax3.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_fax3.lo -MD -MP -MF .deps/tif_fax3.Tpo -c tif_fax3.c -fPIC -DPIC -o .libs/tif_fax3.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_fax3.lo -MD -MP -MF .deps/tif_fax3.Tpo -c tif_fax3.c -o tif_fax3.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_fax3sm.lo -MD -MP -MF ".deps/tif_fax3sm.Tpo" -c -o tif_fax3sm.lo tif_fax3sm.c; \
then mv -f ".deps/tif_fax3sm.Tpo" ".deps/tif_fax3sm.Plo"; else rm -f ".deps/tif_fax3sm.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_fax3sm.lo -MD -MP -MF .deps/tif_fax3sm.Tpo -c tif_fax3sm.c -fPIC -DPIC -o .libs/tif_fax3sm.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_fax3sm.lo -MD -MP -MF .deps/tif_fax3sm.Tpo -c tif_fax3sm.c -o tif_fax3sm.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_flush.lo -MD -MP -MF ".deps/tif_flush.Tpo" -c -o tif_flush.lo tif_flush.c; \
then mv -f ".deps/tif_flush.Tpo" ".deps/tif_flush.Plo"; else rm -f ".deps/tif_flush.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_flush.lo -MD -MP -MF .deps/tif_flush.Tpo -c tif_flush.c -fPIC -DPIC -o .libs/tif_flush.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_flush.lo -MD -MP -MF .deps/tif_flush.Tpo -c tif_flush.c -o tif_flush.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_getimage.lo -MD -MP -MF ".deps/tif_getimage.Tpo" -c -o tif_getimage.lo tif_getimage.c; \
then mv -f ".deps/tif_getimage.Tpo" ".deps/tif_getimage.Plo"; else rm -f ".deps/tif_getimage.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_getimage.lo -MD -MP -MF .deps/tif_getimage.Tpo -c tif_getimage.c -fPIC -DPIC -o .libs/tif_getimage.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_getimage.lo -MD -MP -MF .deps/tif_getimage.Tpo -c tif_getimage.c -o tif_getimage.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_jpeg.lo -MD -MP -MF ".deps/tif_jpeg.Tpo" -c -o tif_jpeg.lo tif_jpeg.c; \
then mv -f ".deps/tif_jpeg.Tpo" ".deps/tif_jpeg.Plo"; else rm -f ".deps/tif_jpeg.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_jpeg.lo -MD -MP -MF .deps/tif_jpeg.Tpo -c tif_jpeg.c -fPIC -DPIC -o .libs/tif_jpeg.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_jpeg.lo -MD -MP -MF .deps/tif_jpeg.Tpo -c tif_jpeg.c -o tif_jpeg.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_luv.lo -MD -MP -MF ".deps/tif_luv.Tpo" -c -o tif_luv.lo tif_luv.c; \
then mv -f ".deps/tif_luv.Tpo" ".deps/tif_luv.Plo"; else rm -f ".deps/tif_luv.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_luv.lo -MD -MP -MF .deps/tif_luv.Tpo -c tif_luv.c -fPIC -DPIC -o .libs/tif_luv.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_luv.lo -MD -MP -MF .deps/tif_luv.Tpo -c tif_luv.c -o tif_luv.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_lzw.lo -MD -MP -MF ".deps/tif_lzw.Tpo" -c -o tif_lzw.lo tif_lzw.c; \
then mv -f ".deps/tif_lzw.Tpo" ".deps/tif_lzw.Plo"; else rm -f ".deps/tif_lzw.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_lzw.lo -MD -MP -MF .deps/tif_lzw.Tpo -c tif_lzw.c -fPIC -DPIC -o .libs/tif_lzw.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_lzw.lo -MD -MP -MF .deps/tif_lzw.Tpo -c tif_lzw.c -o tif_lzw.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_next.lo -MD -MP -MF ".deps/tif_next.Tpo" -c -o tif_next.lo tif_next.c; \
then mv -f ".deps/tif_next.Tpo" ".deps/tif_next.Plo"; else rm -f ".deps/tif_next.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_next.lo -MD -MP -MF .deps/tif_next.Tpo -c tif_next.c -fPIC -DPIC -o .libs/tif_next.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_next.lo -MD -MP -MF .deps/tif_next.Tpo -c tif_next.c -o tif_next.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_ojpeg.lo -MD -MP -MF ".deps/tif_ojpeg.Tpo" -c -o tif_ojpeg.lo tif_ojpeg.c; \
then mv -f ".deps/tif_ojpeg.Tpo" ".deps/tif_ojpeg.Plo"; else rm -f ".deps/tif_ojpeg.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_ojpeg.lo -MD -MP -MF .deps/tif_ojpeg.Tpo -c tif_ojpeg.c -fPIC -DPIC -o .libs/tif_ojpeg.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_ojpeg.lo -MD -MP -MF .deps/tif_ojpeg.Tpo -c tif_ojpeg.c -o tif_ojpeg.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_open.lo -MD -MP -MF ".deps/tif_open.Tpo" -c -o tif_open.lo tif_open.c; \
then mv -f ".deps/tif_open.Tpo" ".deps/tif_open.Plo"; else rm -f ".deps/tif_open.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_open.lo -MD -MP -MF .deps/tif_open.Tpo -c tif_open.c -fPIC -DPIC -o .libs/tif_open.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_open.lo -MD -MP -MF .deps/tif_open.Tpo -c tif_open.c -o tif_open.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_packbits.lo -MD -MP -MF ".deps/tif_packbits.Tpo" -c -o tif_packbits.lo tif_packbits.c; \
then mv -f ".deps/tif_packbits.Tpo" ".deps/tif_packbits.Plo"; else rm -f ".deps/tif_packbits.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_packbits.lo -MD -MP -MF .deps/tif_packbits.Tpo -c tif_packbits.c -fPIC -DPIC -o .libs/tif_packbits.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_packbits.lo -MD -MP -MF .deps/tif_packbits.Tpo -c tif_packbits.c -o tif_packbits.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_pixarlog.lo -MD -MP -MF ".deps/tif_pixarlog.Tpo" -c -o tif_pixarlog.lo tif_pixarlog.c; \
then mv -f ".deps/tif_pixarlog.Tpo" ".deps/tif_pixarlog.Plo"; else rm -f ".deps/tif_pixarlog.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_pixarlog.lo -MD -MP -MF .deps/tif_pixarlog.Tpo -c tif_pixarlog.c -fPIC -DPIC -o .libs/tif_pixarlog.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_pixarlog.lo -MD -MP -MF .deps/tif_pixarlog.Tpo -c tif_pixarlog.c -o tif_pixarlog.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_predict.lo -MD -MP -MF ".deps/tif_predict.Tpo" -c -o tif_predict.lo tif_predict.c; \
then mv -f ".deps/tif_predict.Tpo" ".deps/tif_predict.Plo"; else rm -f ".deps/tif_predict.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_predict.lo -MD -MP -MF .deps/tif_predict.Tpo -c tif_predict.c -fPIC -DPIC -o .libs/tif_predict.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_predict.lo -MD -MP -MF .deps/tif_predict.Tpo -c tif_predict.c -o tif_predict.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_print.lo -MD -MP -MF ".deps/tif_print.Tpo" -c -o tif_print.lo tif_print.c; \
then mv -f ".deps/tif_print.Tpo" ".deps/tif_print.Plo"; else rm -f ".deps/tif_print.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_print.lo -MD -MP -MF .deps/tif_print.Tpo -c tif_print.c -fPIC -DPIC -o .libs/tif_print.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_print.lo -MD -MP -MF .deps/tif_print.Tpo -c tif_print.c -o tif_print.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_read.lo -MD -MP -MF ".deps/tif_read.Tpo" -c -o tif_read.lo tif_read.c; \
then mv -f ".deps/tif_read.Tpo" ".deps/tif_read.Plo"; else rm -f ".deps/tif_read.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_read.lo -MD -MP -MF .deps/tif_read.Tpo -c tif_read.c -fPIC -DPIC -o .libs/tif_read.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_read.lo -MD -MP -MF .deps/tif_read.Tpo -c tif_read.c -o tif_read.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_strip.lo -MD -MP -MF ".deps/tif_strip.Tpo" -c -o tif_strip.lo tif_strip.c; \
then mv -f ".deps/tif_strip.Tpo" ".deps/tif_strip.Plo"; else rm -f ".deps/tif_strip.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_strip.lo -MD -MP -MF .deps/tif_strip.Tpo -c tif_strip.c -fPIC -DPIC -o .libs/tif_strip.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_strip.lo -MD -MP -MF .deps/tif_strip.Tpo -c tif_strip.c -o tif_strip.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_swab.lo -MD -MP -MF ".deps/tif_swab.Tpo" -c -o tif_swab.lo tif_swab.c; \
then mv -f ".deps/tif_swab.Tpo" ".deps/tif_swab.Plo"; else rm -f ".deps/tif_swab.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_swab.lo -MD -MP -MF .deps/tif_swab.Tpo -c tif_swab.c -fPIC -DPIC -o .libs/tif_swab.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_swab.lo -MD -MP -MF .deps/tif_swab.Tpo -c tif_swab.c -o tif_swab.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_thunder.lo -MD -MP -MF ".deps/tif_thunder.Tpo" -c -o tif_thunder.lo tif_thunder.c; \
then mv -f ".deps/tif_thunder.Tpo" ".deps/tif_thunder.Plo"; else rm -f ".deps/tif_thunder.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_thunder.lo -MD -MP -MF .deps/tif_thunder.Tpo -c tif_thunder.c -fPIC -DPIC -o .libs/tif_thunder.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_thunder.lo -MD -MP -MF .deps/tif_thunder.Tpo -c tif_thunder.c -o tif_thunder.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_tile.lo -MD -MP -MF ".deps/tif_tile.Tpo" -c -o tif_tile.lo tif_tile.c; \
then mv -f ".deps/tif_tile.Tpo" ".deps/tif_tile.Plo"; else rm -f ".deps/tif_tile.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_tile.lo -MD -MP -MF .deps/tif_tile.Tpo -c tif_tile.c -fPIC -DPIC -o .libs/tif_tile.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_tile.lo -MD -MP -MF .deps/tif_tile.Tpo -c tif_tile.c -o tif_tile.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_unix.lo -MD -MP -MF ".deps/tif_unix.Tpo" -c -o tif_unix.lo tif_unix.c; \
then mv -f ".deps/tif_unix.Tpo" ".deps/tif_unix.Plo"; else rm -f ".deps/tif_unix.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_unix.lo -MD -MP -MF .deps/tif_unix.Tpo -c tif_unix.c -fPIC -DPIC -o .libs/tif_unix.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_unix.lo -MD -MP -MF .deps/tif_unix.Tpo -c tif_unix.c -o tif_unix.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_version.lo -MD -MP -MF ".deps/tif_version.Tpo" -c -o tif_version.lo tif_version.c; \
then mv -f ".deps/tif_version.Tpo" ".deps/tif_version.Plo"; else rm -f ".deps/tif_version.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_version.lo -MD -MP -MF .deps/tif_version.Tpo -c tif_version.c -fPIC -DPIC -o .libs/tif_version.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_version.lo -MD -MP -MF .deps/tif_version.Tpo -c tif_version.c -o tif_version.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_warning.lo -MD -MP -MF ".deps/tif_warning.Tpo" -c -o tif_warning.lo tif_warning.c; \
then mv -f ".deps/tif_warning.Tpo" ".deps/tif_warning.Plo"; else rm -f ".deps/tif_warning.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_warning.lo -MD -MP -MF .deps/tif_warning.Tpo -c tif_warning.c -fPIC -DPIC -o .libs/tif_warning.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_warning.lo -MD -MP -MF .deps/tif_warning.Tpo -c tif_warning.c -o tif_warning.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_write.lo -MD -MP -MF ".deps/tif_write.Tpo" -c -o tif_write.lo tif_write.c; \
then mv -f ".deps/tif_write.Tpo" ".deps/tif_write.Plo"; else rm -f ".deps/tif_write.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_write.lo -MD -MP -MF .deps/tif_write.Tpo -c tif_write.c -fPIC -DPIC -o .libs/tif_write.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_write.lo -MD -MP -MF .deps/tif_write.Tpo -c tif_write.c -o tif_write.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_zip.lo -MD -MP -MF ".deps/tif_zip.Tpo" -c -o tif_zip.lo tif_zip.c; \
then mv -f ".deps/tif_zip.Tpo" ".deps/tif_zip.Plo"; else rm -f ".deps/tif_zip.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_zip.lo -MD -MP -MF .deps/tif_zip.Tpo -c tif_zip.c -fPIC -DPIC -o .libs/tif_zip.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT tif_zip.lo -MD -MP -MF .deps/tif_zip.Tpo -c tif_zip.c -o tif_zip.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o libtiff.la -rpath /usr/local/lib -no-undefined -version-number 3:7:4 tif_aux.lo tif_close.lo tif_codec.lo tif_color.lo tif_compress.lo tif_dir.lo tif_dirinfo.lo tif_dirread.lo tif_dirwrite.lo tif_dumpmode.lo tif_error.lo tif_extension.lo tif_fax3.lo tif_fax3sm.lo tif_flush.lo tif_getimage.lo tif_jpeg.lo tif_luv.lo tif_lzw.lo tif_next.lo tif_ojpeg.lo tif_open.lo tif_packbits.lo tif_pixarlog.lo tif_predict.lo tif_print.lo tif_read.lo tif_strip.lo tif_swab.lo tif_thunder.lo tif_tile.lo tif_unix.lo tif_version.lo tif_warning.lo tif_write.lo tif_zip.lo ../port/libport.la -lm -lc
gcc -shared .libs/tif_aux.o .libs/tif_close.o .libs/tif_codec.o .libs/tif_color.o .libs/tif_compress.o .libs/tif_dir.o .libs/tif_dirinfo.o .libs/tif_dirread.o .libs/tif_dirwrite.o .libs/tif_dumpmode.o .libs/tif_error.o .libs/tif_extension.o .libs/tif_fax3.o .libs/tif_fax3sm.o .libs/tif_flush.o .libs/tif_getimage.o .libs/tif_jpeg.o .libs/tif_luv.o .libs/tif_lzw.o .libs/tif_next.o .libs/tif_ojpeg.o .libs/tif_open.o .libs/tif_packbits.o .libs/tif_pixarlog.o .libs/tif_predict.o .libs/tif_print.o .libs/tif_read.o .libs/tif_strip.o .libs/tif_swab.o .libs/tif_thunder.o .libs/tif_tile.o .libs/tif_unix.o .libs/tif_version.o .libs/tif_warning.o .libs/tif_write.o .libs/tif_zip.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive -lm -lc -m32 -m32 -Wl,-soname -Wl,libtiff.so.3 -o .libs/libtiff.so.3.7.4
(cd .libs && rm -f libtiff.so.3 && ln -s libtiff.so.3.7.4 libtiff.so.3)
(cd .libs && rm -f libtiff.so && ln -s libtiff.so.3.7.4 libtiff.so)
rm -fr .libs/libtiff.lax
mkdir .libs/libtiff.lax
rm -fr .libs/libtiff.lax/libport.a
mkdir .libs/libtiff.lax/libport.a
(cd .libs/libtiff.lax/libport.a && ar x /experiment/src/libtiff/../port/.libs/libport.a)
ar cru .libs/libtiff.a tif_aux.o tif_close.o tif_codec.o tif_color.o tif_compress.o tif_dir.o tif_dirinfo.o tif_dirread.o tif_dirwrite.o tif_dumpmode.o tif_error.o tif_extension.o tif_fax3.o tif_fax3sm.o tif_flush.o tif_getimage.o tif_jpeg.o tif_luv.o tif_lzw.o tif_next.o tif_ojpeg.o tif_open.o tif_packbits.o tif_pixarlog.o tif_predict.o tif_print.o tif_read.o tif_strip.o tif_swab.o tif_thunder.o tif_tile.o tif_unix.o tif_version.o tif_warning.o tif_write.o tif_zip.o .libs/libtiff.lax/libport.a/dummy.o
ranlib .libs/libtiff.a
rm -fr .libs/libtiff.lax
creating libtiff.la
(cd .libs && rm -f libtiff.la && ln -s ../libtiff.la libtiff.la)
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -MT tif_stream.lo -MD -MP -MF ".deps/tif_stream.Tpo" -c -o tif_stream.lo tif_stream.cxx; \
then mv -f ".deps/tif_stream.Tpo" ".deps/tif_stream.Plo"; else rm -f ".deps/tif_stream.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -MT tif_stream.lo -MD -MP -MF .deps/tif_stream.Tpo -c tif_stream.cxx -fPIC -DPIC -o .libs/tif_stream.o
In file included from tiffiop.h:61:0,
from tif_stream.cxx:30:
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
};
^
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
};
^
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
tif_dir.h:602:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -MT tif_stream.lo -MD -MP -MF .deps/tif_stream.Tpo -c tif_stream.cxx -o tif_stream.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=link g++ -m32 -m32 -o libtiffxx.la -rpath /usr/local/lib -no-undefined -version-number 3:7:4 tif_stream.lo ../libtiff/libtiff.la ../port/libport.la -lm -lc
g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib32/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/32/crtbeginS.o .libs/tif_stream.o -Wl,--whole-archive ../port/.libs/libport.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/experiment/src/libtiff/.libs ../libtiff/.libs/libtiff.so -L/usr/lib/gcc/x86_64-linux-gnu/4.8/32 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib32 -L/lib/../lib32 -L/usr/lib/../lib32 -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.8/32/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib32/crtn.o -m32 -m32 -Wl,-soname -Wl,libtiffxx.so.3 -o .libs/libtiffxx.so.3.7.4
(cd .libs && rm -f libtiffxx.so.3 && ln -s libtiffxx.so.3.7.4 libtiffxx.so.3)
(cd .libs && rm -f libtiffxx.so && ln -s libtiffxx.so.3.7.4 libtiffxx.so)
rm -fr .libs/libtiffxx.lax
mkdir .libs/libtiffxx.lax
rm -fr .libs/libtiffxx.lax/libport.a
mkdir .libs/libtiffxx.lax/libport.a
(cd .libs/libtiffxx.lax/libport.a && ar x /experiment/src/libtiff/../port/.libs/libport.a)
ar cru .libs/libtiffxx.a tif_stream.o .libs/libtiffxx.lax/libport.a/dummy.o
ranlib .libs/libtiffxx.a
rm -fr .libs/libtiffxx.lax
creating libtiffxx.la
(cd .libs && rm -f libtiffxx.la && ln -s ../libtiffxx.la libtiffxx.la)
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -m32 -Wall -MT mkg3states.o -MD -MP -MF ".deps/mkg3states.Tpo" -c -o mkg3states.o mkg3states.c; \
then mv -f ".deps/mkg3states.Tpo" ".deps/mkg3states.Po"; else rm -f ".deps/mkg3states.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o mkg3states mkg3states.o ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o mkg3states mkg3states.o ../port/.libs/libport.a -lm -lc
make[2]: Leaving directory `/experiment/src/libtiff'
make[1]: Leaving directory `/experiment/src/libtiff'
Making all in tools
make[1]: Entering directory `/experiment/src/tools'
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT bmp2tiff.o -MD -MP -MF ".deps/bmp2tiff.Tpo" -c -o bmp2tiff.o bmp2tiff.c; \
then mv -f ".deps/bmp2tiff.Tpo" ".deps/bmp2tiff.Po"; else rm -f ".deps/bmp2tiff.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o bmp2tiff bmp2tiff.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
mkdir .libs
gcc -m32 -Wall -m32 -o .libs/bmp2tiff bmp2tiff.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating bmp2tiff
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT fax2ps.o -MD -MP -MF ".deps/fax2ps.Tpo" -c -o fax2ps.o fax2ps.c; \
then mv -f ".deps/fax2ps.Tpo" ".deps/fax2ps.Po"; else rm -f ".deps/fax2ps.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o fax2ps fax2ps.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/fax2ps fax2ps.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating fax2ps
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT fax2tiff.o -MD -MP -MF ".deps/fax2tiff.Tpo" -c -o fax2tiff.o fax2tiff.c; \
then mv -f ".deps/fax2tiff.Tpo" ".deps/fax2tiff.Po"; else rm -f ".deps/fax2tiff.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o fax2tiff fax2tiff.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/fax2tiff fax2tiff.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating fax2tiff
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT gif2tiff.o -MD -MP -MF ".deps/gif2tiff.Tpo" -c -o gif2tiff.o gif2tiff.c; \
then mv -f ".deps/gif2tiff.Tpo" ".deps/gif2tiff.Po"; else rm -f ".deps/gif2tiff.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o gif2tiff gif2tiff.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/gif2tiff gif2tiff.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating gif2tiff
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT pal2rgb.o -MD -MP -MF ".deps/pal2rgb.Tpo" -c -o pal2rgb.o pal2rgb.c; \
then mv -f ".deps/pal2rgb.Tpo" ".deps/pal2rgb.Po"; else rm -f ".deps/pal2rgb.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o pal2rgb pal2rgb.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/pal2rgb pal2rgb.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating pal2rgb
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT ppm2tiff.o -MD -MP -MF ".deps/ppm2tiff.Tpo" -c -o ppm2tiff.o ppm2tiff.c; \
then mv -f ".deps/ppm2tiff.Tpo" ".deps/ppm2tiff.Po"; else rm -f ".deps/ppm2tiff.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o ppm2tiff ppm2tiff.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/ppm2tiff ppm2tiff.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating ppm2tiff
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT ras2tiff.o -MD -MP -MF ".deps/ras2tiff.Tpo" -c -o ras2tiff.o ras2tiff.c; \
then mv -f ".deps/ras2tiff.Tpo" ".deps/ras2tiff.Po"; else rm -f ".deps/ras2tiff.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o ras2tiff ras2tiff.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/ras2tiff ras2tiff.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating ras2tiff
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT raw2tiff.o -MD -MP -MF ".deps/raw2tiff.Tpo" -c -o raw2tiff.o raw2tiff.c; \
then mv -f ".deps/raw2tiff.Tpo" ".deps/raw2tiff.Po"; else rm -f ".deps/raw2tiff.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o raw2tiff raw2tiff.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/raw2tiff raw2tiff.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating raw2tiff
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT rgb2ycbcr.o -MD -MP -MF ".deps/rgb2ycbcr.Tpo" -c -o rgb2ycbcr.o rgb2ycbcr.c; \
then mv -f ".deps/rgb2ycbcr.Tpo" ".deps/rgb2ycbcr.Po"; else rm -f ".deps/rgb2ycbcr.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o rgb2ycbcr rgb2ycbcr.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/rgb2ycbcr rgb2ycbcr.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating rgb2ycbcr
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT thumbnail.o -MD -MP -MF ".deps/thumbnail.Tpo" -c -o thumbnail.o thumbnail.c; \
then mv -f ".deps/thumbnail.Tpo" ".deps/thumbnail.Po"; else rm -f ".deps/thumbnail.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o thumbnail thumbnail.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/thumbnail thumbnail.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating thumbnail
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiff2bw.o -MD -MP -MF ".deps/tiff2bw.Tpo" -c -o tiff2bw.o tiff2bw.c; \
then mv -f ".deps/tiff2bw.Tpo" ".deps/tiff2bw.Po"; else rm -f ".deps/tiff2bw.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiff2bw tiff2bw.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiff2bw tiff2bw.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiff2bw
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiff2pdf.o -MD -MP -MF ".deps/tiff2pdf.Tpo" -c -o tiff2pdf.o tiff2pdf.c; \
then mv -f ".deps/tiff2pdf.Tpo" ".deps/tiff2pdf.Po"; else rm -f ".deps/tiff2pdf.Tpo"; exit 1; fi
tiff2pdf.c: In function 'main':
tiff2pdf.c:528:10: warning: variable 'written' set but not used [-Wunused-but-set-variable]
tsize_t written=0;
^
tiff2pdf.c: In function 't2p_readwrite_pdf_image_tile':
tiff2pdf.c:2675:10: warning: variable 'tilesize' set but not used [-Wunused-but-set-variable]
tsize_t tilesize=0;
^
tiff2pdf.c: In function 't2p_write_pdf_info':
tiff2pdf.c:3947:6: warning: variable 'buflen' set but not used [-Wunused-but-set-variable]
int buflen=0;
^
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiff2pdf tiff2pdf.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiff2pdf tiff2pdf.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiff2pdf
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiff2ps.o -MD -MP -MF ".deps/tiff2ps.Tpo" -c -o tiff2ps.o tiff2ps.c; \
then mv -f ".deps/tiff2ps.Tpo" ".deps/tiff2ps.Po"; else rm -f ".deps/tiff2ps.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiff2ps tiff2ps.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiff2ps tiff2ps.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiff2ps
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiff2rgba.o -MD -MP -MF ".deps/tiff2rgba.Tpo" -c -o tiff2rgba.o tiff2rgba.c; \
then mv -f ".deps/tiff2rgba.Tpo" ".deps/tiff2rgba.Po"; else rm -f ".deps/tiff2rgba.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiff2rgba tiff2rgba.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiff2rgba tiff2rgba.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiff2rgba
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiffcmp.o -MD -MP -MF ".deps/tiffcmp.Tpo" -c -o tiffcmp.o tiffcmp.c; \
then mv -f ".deps/tiffcmp.Tpo" ".deps/tiffcmp.Po"; else rm -f ".deps/tiffcmp.Tpo"; exit 1; fi
tiffcmp.c: In function 'CheckLongTag':
tiffcmp.c:605:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32' [-Wformat=]
CHECK(v1 == v2, "%s: %lu %lu\n");
^
tiffcmp.c:605:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint32' [-Wformat=]
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiffcmp tiffcmp.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiffcmp tiffcmp.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiffcmp
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiffcp.o -MD -MP -MF ".deps/tiffcp.Tpo" -c -o tiffcp.o tiffcp.c; \
then mv -f ".deps/tiffcp.Tpo" ".deps/tiffcp.Po"; else rm -f ".deps/tiffcp.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiffcp tiffcp.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiffcp tiffcp.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiffcp
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiffdither.o -MD -MP -MF ".deps/tiffdither.Tpo" -c -o tiffdither.o tiffdither.c; \
then mv -f ".deps/tiffdither.Tpo" ".deps/tiffdither.Po"; else rm -f ".deps/tiffdither.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiffdither tiffdither.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiffdither tiffdither.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiffdither
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiffdump.o -MD -MP -MF ".deps/tiffdump.Tpo" -c -o tiffdump.o tiffdump.c; \
then mv -f ".deps/tiffdump.Tpo" ".deps/tiffdump.Po"; else rm -f ".deps/tiffdump.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiffdump tiffdump.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiffdump tiffdump.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiffdump
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiffinfo.o -MD -MP -MF ".deps/tiffinfo.Tpo" -c -o tiffinfo.o tiffinfo.c; \
then mv -f ".deps/tiffinfo.Tpo" ".deps/tiffinfo.Po"; else rm -f ".deps/tiffinfo.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiffinfo tiffinfo.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiffinfo tiffinfo.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiffinfo
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiffmedian.o -MD -MP -MF ".deps/tiffmedian.Tpo" -c -o tiffmedian.o tiffmedian.c; \
then mv -f ".deps/tiffmedian.Tpo" ".deps/tiffmedian.Po"; else rm -f ".deps/tiffmedian.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiffmedian tiffmedian.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiffmedian tiffmedian.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiffmedian
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiffset.o -MD -MP -MF ".deps/tiffset.Tpo" -c -o tiffset.o tiffset.c; \
then mv -f ".deps/tiffset.Tpo" ".deps/tiffset.Po"; else rm -f ".deps/tiffset.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiffset tiffset.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiffset tiffset.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiffset
if gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff -m32 -Wall -MT tiffsplit.o -MD -MP -MF ".deps/tiffsplit.Tpo" -c -o tiffsplit.o tiffsplit.c; \
then mv -f ".deps/tiffsplit.Tpo" ".deps/tiffsplit.Po"; else rm -f ".deps/tiffsplit.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiffsplit tiffsplit.o ../libtiff/libtiff.la ../port/libport.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiffsplit tiffsplit.o ../libtiff/.libs/libtiff.so ../port/.libs/libport.a -lm -lc
creating tiffsplit
make[1]: Leaving directory `/experiment/src/tools'
Making all in contrib
make[1]: Entering directory `/experiment/src/contrib'
Making all in acorn
make[2]: Entering directory `/experiment/src/contrib/acorn'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/acorn'
Making all in addtiffo
make[2]: Entering directory `/experiment/src/contrib/addtiffo'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../libtiff -I../../libtiff -I../../libtiff -m32 -Wall -MT addtiffo.o -MD -MP -MF ".deps/addtiffo.Tpo" -c -o addtiffo.o addtiffo.c; \
then mv -f ".deps/addtiffo.Tpo" ".deps/addtiffo.Po"; else rm -f ".deps/addtiffo.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../libtiff -I../../libtiff -I../../libtiff -m32 -Wall -MT tif_overview.o -MD -MP -MF ".deps/tif_overview.Tpo" -c -o tif_overview.o tif_overview.c; \
then mv -f ".deps/tif_overview.Tpo" ".deps/tif_overview.Po"; else rm -f ".deps/tif_overview.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../libtiff -I../../libtiff -I../../libtiff -m32 -Wall -MT tif_ovrcache.o -MD -MP -MF ".deps/tif_ovrcache.Tpo" -c -o tif_ovrcache.o tif_ovrcache.c; \
then mv -f ".deps/tif_ovrcache.Tpo" ".deps/tif_ovrcache.Po"; else rm -f ".deps/tif_ovrcache.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o addtiffo addtiffo.o tif_overview.o tif_ovrcache.o ../../libtiff/libtiff.la -lm -lc
mkdir .libs
gcc -m32 -Wall -m32 -o .libs/addtiffo addtiffo.o tif_overview.o tif_ovrcache.o ../../libtiff/.libs/libtiff.so -lm -lc
creating addtiffo
make[2]: Leaving directory `/experiment/src/contrib/addtiffo'
Making all in dbs
make[2]: Entering directory `/experiment/src/contrib/dbs'
Making all in xtiff
make[3]: Entering directory `/experiment/src/contrib/dbs/xtiff'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/experiment/src/contrib/dbs/xtiff'
make[3]: Entering directory `/experiment/src/contrib/dbs'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../libtiff -I../../libtiff -I../../libtiff -m32 -Wall -MT tiff-bi.o -MD -MP -MF ".deps/tiff-bi.Tpo" -c -o tiff-bi.o tiff-bi.c; \
then mv -f ".deps/tiff-bi.Tpo" ".deps/tiff-bi.Po"; else rm -f ".deps/tiff-bi.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiff-bi tiff-bi.o ../../libtiff/libtiff.la -lm -lc
mkdir .libs
gcc -m32 -Wall -m32 -o .libs/tiff-bi tiff-bi.o ../../libtiff/.libs/libtiff.so -lm -lc
creating tiff-bi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../libtiff -I../../libtiff -I../../libtiff -m32 -Wall -MT tiff-grayscale.o -MD -MP -MF ".deps/tiff-grayscale.Tpo" -c -o tiff-grayscale.o tiff-grayscale.c; \
then mv -f ".deps/tiff-grayscale.Tpo" ".deps/tiff-grayscale.Po"; else rm -f ".deps/tiff-grayscale.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiff-grayscale tiff-grayscale.o ../../libtiff/libtiff.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiff-grayscale tiff-grayscale.o ../../libtiff/.libs/libtiff.so -lm -lc
creating tiff-grayscale
if gcc -DHAVE_CONFIG_H -I. -I. -I../../libtiff -I../../libtiff -I../../libtiff -m32 -Wall -MT tiff-palette.o -MD -MP -MF ".deps/tiff-palette.Tpo" -c -o tiff-palette.o tiff-palette.c; \
then mv -f ".deps/tiff-palette.Tpo" ".deps/tiff-palette.Po"; else rm -f ".deps/tiff-palette.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiff-palette tiff-palette.o ../../libtiff/libtiff.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiff-palette tiff-palette.o ../../libtiff/.libs/libtiff.so -lm -lc
creating tiff-palette
if gcc -DHAVE_CONFIG_H -I. -I. -I../../libtiff -I../../libtiff -I../../libtiff -m32 -Wall -MT tiff-rgb.o -MD -MP -MF ".deps/tiff-rgb.Tpo" -c -o tiff-rgb.o tiff-rgb.c; \
then mv -f ".deps/tiff-rgb.Tpo" ".deps/tiff-rgb.Po"; else rm -f ".deps/tiff-rgb.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o tiff-rgb tiff-rgb.o ../../libtiff/libtiff.la -lm -lc
gcc -m32 -Wall -m32 -o .libs/tiff-rgb tiff-rgb.o ../../libtiff/.libs/libtiff.so -lm -lc
creating tiff-rgb
make[3]: Leaving directory `/experiment/src/contrib/dbs'
make[2]: Leaving directory `/experiment/src/contrib/dbs'
Making all in iptcutil
make[2]: Entering directory `/experiment/src/contrib/iptcutil'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../libtiff -I../../libtiff -I../../libtiff -m32 -Wall -MT iptcutil.o -MD -MP -MF ".deps/iptcutil.Tpo" -c -o iptcutil.o iptcutil.c; \
then mv -f ".deps/iptcutil.Tpo" ".deps/iptcutil.Po"; else rm -f ".deps/iptcutil.Tpo"; exit 1; fi
iptcutil.c: In function 'main':
iptcutil.c:388:7: warning: format not a string literal and no format arguments [-Wformat-security]
printf(usage);
^
iptcutil.c:447:9: warning: format not a string literal and no format arguments [-Wformat-security]
printf(usage);
^
iptcutil.c:372:6: warning: variable 'buffer' set but not used [-Wunused-but-set-variable]
*buffer;
^
iptcutil.c:369:5: warning: variable 'length' set but not used [-Wunused-but-set-variable]
length;
^
/bin/sh ../../libtool --tag=CC --mode=link gcc -m32 -Wall -m32 -o iptcutil iptcutil.o ../../libtiff/libtiff.la -lm -lc
mkdir .libs
gcc -m32 -Wall -m32 -o .libs/iptcutil iptcutil.o ../../libtiff/.libs/libtiff.so -lm -lc
creating iptcutil
make[2]: Leaving directory `/experiment/src/contrib/iptcutil'
Making all in mac-cw
make[2]: Entering directory `/experiment/src/contrib/mac-cw'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/mac-cw'
Making all in mac-mpw
make[2]: Entering directory `/experiment/src/contrib/mac-mpw'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/mac-mpw'
Making all in mfs
make[2]: Entering directory `/experiment/src/contrib/mfs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/mfs'
Making all in ojpeg
make[2]: Entering directory `/experiment/src/contrib/ojpeg'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/ojpeg'
Making all in pds
make[2]: Entering directory `/experiment/src/contrib/pds'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/pds'
Making all in ras
make[2]: Entering directory `/experiment/src/contrib/ras'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/ras'
Making all in stream
make[2]: Entering directory `/experiment/src/contrib/stream'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/stream'
Making all in tags
make[2]: Entering directory `/experiment/src/contrib/tags'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/tags'
Making all in win_dib
make[2]: Entering directory `/experiment/src/contrib/win_dib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/contrib/win_dib'
make[2]: Entering directory `/experiment/src/contrib'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/experiment/src/contrib'
make[1]: Leaving directory `/experiment/src/contrib'
Making all in test
make[1]: Entering directory `/experiment/src/test'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/experiment/src/test'
Making all in man
make[1]: Entering directory `/experiment/src/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/experiment/src/man'
Making all in html
make[1]: Entering directory `/experiment/src/html'
Making all in images
make[2]: Entering directory `/experiment/src/html/images'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/html/images'
Making all in man
make[2]: Entering directory `/experiment/src/html/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/experiment/src/html/man'
make[2]: Entering directory `/experiment/src/html'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/experiment/src/html'
make[1]: Leaving directory `/experiment/src/html'
make[1]: Entering directory `/experiment/src'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/experiment/src'
+27
View File
@@ -0,0 +1,27 @@
## Running `lighttpd` bugs
After running the container you need to follow the following
steps to prepare `SOSRepair` for running:
1. Copy `makeout`, `compile.sh`, `test.sh` and `tests-list` to
the container's `/experiment/`.
2. Copy `settings.py` to the container's `/opt/sosrepair/sosrepair`.
3. In the container, reconfigure the project with coverage flags:
```
cd /experiment/src
./configure "CFLAGS=-fprofile-arcs -ftest-coverage" "CXXFLAGS=-fprofile-arcs -ftest-coverage" "LDFLAGS=-lgcov" --with-ldap --with-bzip2 --with-openssl --with-gdbm --with-memcache --with-webdav-props --with-webdav-locks
make clean
make
```
4. Run `/opt/sosrepair/prepare/setup.sh`.
5. Set proper permissions by running `sudo chmod -R 777 /opt/sosrepair/sosrepair`.
6. Setup environment variables:
```
export PYTHONPATH="/opt/sosrepair/bindings:${PYTHONPATH}"
export CPATH=":/opt/sosrepair/include"
export PATH="/opt/sosrepair/bin:$PATH"
```
Pay attention that `lighttpd` tests occupy a single port. Therefore, you can only
run on a single bug at a time if you're sharing ports. Otherwise, the tests will
fail.
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $DIR/src
#make clean
(make && exit 0)|| exit 1
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
CONTAINER=$1
BUG=$2
docker cp compile.sh $CONTAINER:/experiment/
docker cp $BUG/test.sh $CONTAINER:/experiment/
docker cp $BUG/tests-list.txt $CONTAINER:/experiment/
docker cp $BUG/settings.py $CONTAINER:/opt/sosrepair/sosrepair/
@@ -0,0 +1,86 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234',
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/src/mod_cgi.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
# "-I/usr/include",
"-I/usr/include/glib-2.0",
"-I/usr/lib/x86_64-linux-gnu/glib-2.0/include",
"-I/opt/sosrepair/llvm/lib/clang/5.0.2/include"
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (584, 918)
# IF SOS+
# METHOD_RANGE = (747, 749)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/src/.libs"
@@ -0,0 +1,52 @@
#!/bin/bash
bugrev=1913
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
#Check if coverage is being run. If so, don't use time limit.
#if [ `basename $2` = "coverage" ] ; then
# cov=0
#else
cov=0
#fi
run_test()
{
cd $dir/src/tests
if [ $cov -eq 0 ] ; then
perl /experiment/lighttpd-run-tests.pl $1
else
timeout 5 perl /experiment/lighttpd-run-tests.pl $1
fi
RESULT=$?
if [ $RESULT = 0 ] ; then
echo ""
echo "PASS"
else
echo ""
echo "FAIL"
fi
killall -9 lighttpd &> /dev/null
cd ../../
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 6 && exit 0 ;;
p6) run_test 7 && exit 0 ;;
p7) run_test 8 && exit 0 ;;
p8) run_test 10 && exit 0 ;;
p9) run_test 11 && exit 0 ;;
p10) run_test 12 && exit 0 ;;
p11) run_test 14 && exit 0 ;;
p12) run_test 15 && exit 0 ;;
p13) run_test 16 && exit 0 ;;
p14) run_test 17 && exit 0 ;;
p15) run_test 18 && exit 0 ;;
p16) run_test 20 && exit 0 ;;
p17) run_test 21 && exit 0 ;;
n1) run_test 9 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,17 @@
n1
p1
p2
p3
p4
p5
p6
p7
p8
p9
p10
p12
p13
p14
p15
p16
p17
@@ -0,0 +1,82 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/src/response.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
# "-I/usr/include",
"-I/usr/include/glib-2.0",
"-I/usr/lib/x86_64-linux-gnu/glib-2.0/include",
"-I/opt/sosrepair/llvm/lib/clang/5.0.2/include"
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (32, 134)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
@@ -0,0 +1,39 @@
#!/bin/bash
bugrev=1948
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src/tests
perl ../../lighttpd-run-tests.pl $1
if [ $? = 0 ] ; then
echo ""
echo "PASS"
else
echo ""
echo "FAIL"
fi
popd > /dev/null
killall -9 lighttpd &> /dev/null
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 6 && exit 0 ;;
p6) run_test 7 && exit 0 ;;
p7) run_test 8 && exit 0 ;;
p8) run_test 10 && exit 0 ;;
p9) run_test 11 && exit 0 ;;
p10) run_test 12 && exit 0 ;;
p11) run_test 14 && exit 0 ;;
p12) run_test 15 && exit 0 ;;
p13) run_test 16 && exit 0 ;;
p14) run_test 17 && exit 0 ;;
p15) run_test 18 && exit 0 ;;
p16) run_test 20 && exit 0 ;;
p17) run_test 21 && exit 0 ;;
n1) run_test 19 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,14 @@
n1
p1
p2
p3
p4
p5
p6
p7
p8
p10
p11
p13
p14
p15
@@ -0,0 +1,86 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/src/mod_secure_download.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
# "-I/usr/include",
"-I/usr/include/glib-2.0",
"-I/usr/lib/x86_64-linux-gnu/glib-2.0/include",
"-I/opt/sosrepair/llvm/lib/clang/5.0.2/include"
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (198, 328)
# IF SOS+
# METHOD_RANGE = (278, 280)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
GCOV_OBJECTS = "/experiment/src/src/.libs"
@@ -0,0 +1,40 @@
#!/bin/bash
bugrev=2254
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src/tests
perl ../../lighttpd-run-tests.pl $1
if [ $? = 0 ] ; then
echo ""
echo "PASS"
else
echo ""
echo "FAIL"
fi
popd > /dev/null
killall -9 lighttpd &> /dev/null
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 6 && exit 0 ;;
p6) run_test 7 && exit 0 ;;
p7) run_test 8 && exit 0 ;;
p8) run_test 9 && exit 0 ;;
p9) run_test 10 && exit 0 ;;
p10) run_test 11 && exit 0 ;;
p11) run_test 12 && exit 0 ;;
p12) run_test 14 && exit 0 ;;
p13) run_test 15 && exit 0 ;;
p14) run_test 16 && exit 0 ;;
p15) run_test 17 && exit 0 ;;
p16) run_test 18 && exit 0 ;;
p17) run_test 20 && exit 0 ;;
p18) run_test 21 && exit 0 ;;
n1) run_test 5 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,16 @@
n1
p1
p2
p3
p4
p5
p6
p7
p9
p11
p12
p13
p14
p15
p16
p17
@@ -0,0 +1,3 @@
For this bug both SOS and SOS+ can generate perfect patch
but they won't if you return the first patch. If
`--all_patches` is used the perfect patch will be generated.
@@ -0,0 +1,54 @@
#!/bin/bash
bugrev=1913
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
#Check if coverage is being run. If so, don't use time limit.
#if [ `basename $2` = "coverage" ] ; then
# cov=0
#else
cov=0
#fi
run_test()
{
cd $dir/src/tests
if [ $cov -eq 0 ] ; then
perl /experiment/lighttpd-run-tests.pl $1
else
timeout 5 perl /experiment/lighttpd-run-tests.pl $1
fi
RESULT=$?
if [ $RESULT = 0 ] ; then
echo ""
echo "PASS"
else
echo ""
echo "FAIL"
fi
killall -9 lighttpd &> /dev/null
cd ../../
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 5 && exit 0 ;;
p6) run_test 6 && exit 0 ;;
p7) run_test 7 && exit 0 ;;
p8) run_test 8 && exit 0 ;;
p9) run_test 9 && exit 0 ;;
p10) run_test 12 && exit 0 ;;
p11) run_test 13 && exit 0 ;;
p12) run_test 14 && exit 0 ;;
p13) run_test 15 && exit 0 ;;
p14) run_test 16 && exit 0 ;;
p15) run_test 17 && exit 0 ;;
p16) run_test 18 && exit 0 ;;
p17) run_test 20 && exit 0 ;;
p18) run_test 21 && exit 0 ;;
n1) run_test 10 && exit 0 ;;
n2) run_test 11 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,19 @@
n1
n2
p1
p2
p3
p4
p5
p6
p7
p8
p9
p10
p12
p13
p14
p15
p16
p17
p18
@@ -0,0 +1,45 @@
#!/bin/bash
bugrev=1913
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
run_test()
{
cd $dir/src/tests
timeout 20 perl /experiment/lighttpd-run-tests.pl $1
RESULT=$?
if [ $RESULT = 0 ] ; then
echo ""
echo "PASS"
else
echo ""
echo "FAIL"
fi
killall -9 lighttpd &> /dev/null
cd ../../
return 0
}
case $1 in
p1) run_test 1 && exit 0 ;;
p2) run_test 2 && exit 0 ;;
p3) run_test 3 && exit 0 ;;
p4) run_test 4 && exit 0 ;;
p5) run_test 5 && exit 0 ;;
p6) run_test 6 && exit 0 ;;
p7) run_test 7 && exit 0 ;;
p8) run_test 8 && exit 0 ;;
p9) run_test 9 && exit 0 ;;
p10) run_test 10 && exit 0 ;;
p11) run_test 11 && exit 0 ;;
p12) run_test 12 && exit 0 ;;
p13) run_test 13 && exit 0 ;;
p14) run_test 14 && exit 0 ;;
p15) run_test 15 && exit 0 ;;
p16) run_test 16 && exit 0 ;;
p17) run_test 17 && exit 0 ;;
p18) run_test 18 && exit 0 ;;
p19) run_test 20 && exit 0 ;;
p20) run_test 21 && exit 0 ;;
n1) run_test 19 && exit 0 ;;
esac
exit 1
@@ -0,0 +1,18 @@
n1
p2
p4
p5
p6
p7
p8
p9
p10
p12
p13
p14
p15
p16
p17
p18
p19
p20
File diff suppressed because it is too large Load Diff
+23
View File
@@ -0,0 +1,23 @@
## Running `php` bugs
After running the container you need to follow the following
steps to prepare `SOSRepair` for running:
1. Copy `makeout`, `compile.sh` and `tests-list` to
the container's `/experiment/`.
2. Copy `settings.py` to the container's `/opt/sosrepair/sosrepair`.
3. In the container, reconfigure the project with coverage flags:
```
cd /experiment/src
./configure "CFLAGS=-fprofile-arcs -ftest-coverage" "CXXFLAGS=-fprofile-arcs -ftest-coverage" "LDFLAGS=-lgcov"
make clean
make
```
4. Run `/opt/sosrepair/prepare/setup.sh`.
5. Set proper permissions by running `sudo chmod -R 777 /opt/sosrepair/sosrepair`.
6. Setup environment variables:
```
export PYTHONPATH="/opt/sosrepair/bindings:${PYTHONPATH}"
export CPATH=":/opt/sosrepair/include"
export PATH="/opt/sosrepair/bin:$PATH"
```
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $DIR/src
#make clean
(make && exit 0)|| exit 1
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
CONTAINER=$1
BUG=$2
docker cp compile.sh $CONTAINER:/experiment/
#docker cp $BUG/test.sh $CONTAINER:/experiment/
docker cp $BUG/tests-list.txt $CONTAINER:/experiment/
docker cp $BUG/settings.py $CONTAINER:/opt/sosrepair/sosrepair/
File diff suppressed because one or more lines are too long
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/date/php_date.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (3076, 3095)
# IF SOS+
# METHOD_RANGE = (3088, 3088)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,13 @@
n1
p2414
p2378
p2327
p2315
p2298
p2256
p2156
p2102
p2087
p2054
p2042
p2031
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/main/streams/userspace.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (854, 893)
# IF SOS+
# METHOD_RANGE = (858, 859)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,6 @@
n1
p7273
p1845
p1609
p1298
p59
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/phar/phar.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (1246, 1318)
# IF SOS+
# METHOD_RANGE = (1268, 1268)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,230 @@
n2
n1
p2559
p2558
p2557
p2556
p2555
p2554
p2553
p2552
p2551
p2550
p2549
p2548
p2547
p2546
p2545
p2544
p2543
p2542
p2541
p2540
p2539
p2538
p2537
p2536
p2535
p2534
p2532
p2531
p2530
p2526
p2525
p2524
p2523
p2522
p2521
p2519
p2518
p2517
p2516
p2515
p2514
p2513
p2512
p2511
p2510
p2509
p2508
p2507
p2506
p2502
p2501
p2500
p2499
p2496
p2495
p2494
p2493
p2492
p2491
p2490
p2489
p2488
p2487
p2486
p2485
p2484
p2483
p2482
p2481
p2480
p2479
p2478
p2477
p2476
p2475
p2474
p2473
p2472
p2471
p2470
p2469
p2467
p2466
p2465
p2464
p2463
p2442
p2441
p2440
p2439
p2438
p2437
p2435
p2434
p2433
p2432
p2431
p2430
p2429
p2428
p2427
p2426
p2425
p2424
p2423
p2422
p2421
p2420
p2419
p2418
p2416
p2415
p2414
p2413
p2412
p2411
p2410
p2409
p2408
p2407
p2406
p2405
p2404
p2403
p2402
p2401
p2400
p2399
p2398
p2397
p2396
p2395
p2394
p2393
p2392
p2390
p2389
p2388
p2387
p2386
p2385
p2384
p2383
p2382
p2380
p2377
p2376
p2375
p2374
p2373
p2371
p2370
p2369
p2368
p2367
p2366
p2365
p2364
p2363
p2362
p2361
p2360
p2359
p2358
p2357
p2356
p2355
p2354
p2353
p2352
p2351
p2350
p2349
p2348
p2345
p2342
p2341
p2340
p2339
p2338
p2337
p2336
p2335
p2331
p2296
p2295
p2294
p2293
p2292
p2290
p2286
p2285
p2284
p2282
p2281
p2280
p2246
p2245
p2244
p2243
p2242
p2239
p2238
p2237
p2236
p2235
p2234
p2233
p2232
p2231
p2230
p2229
p2228
p2227
p2226
p2225
p2224
p2223
p2222
p2221
p2220
p2219
p2218
p2217
p2216
p2215
p2212
p2211
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/tokenizer/tokenizer.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (104, 158)
# IF SOS+
# METHOD_RANGE = (154, 154)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,24 @@
n2
n1
p5596
p5595
p5594
p5593
p5592
p5591
p5590
p5589
p5588
p5586
p5585
p5584
p5583
p5581
p5580
p5579
p5578
p5577
p5576
p5575
p5574
p5573
@@ -0,0 +1,2 @@
For running SOS+ you need to limit the variables to the set of
`s`, `pp`, and `ret` for it to be able to find the perfect repair.
@@ -0,0 +1,84 @@
"""
This file includes all the settings that could be modified for running SearchRepair/SOSRepair
* LIBCLANG_PATH: The path to libclang build. It should be either a .so or .dylib file.
* GENERATE_DB_PATH: The path where the DB should be built from. SR will enumerate all C files in this path to build the
DB
* Z3_COMMAND: The z3 command on this machine.
* LARGEST_SNIPPET: The maximum number of lines that is considered as a snippet.
* SMALLEST_SNIPPET: The minimum number of lines that is considered as a snippet.
* DATABASE: Information about the database.
* LOGGING: Settings for logging.
* MAX_SUSPICIOUS_LINES: The number of suspicious lines tried before giving up.
* VALID_TYPES: The variable types that are right now supported by SR.
------ Settings related to file under repair -------
* TESTS_LIST: The path to a list of the tests that could be run on the file
* TEST_SCRIPT: The path to a script that will run the test
* COMPILE_SCRIPT: The path to a script that will compile the code
* FAULTY_CODE: The path to the faulty code (a C file)
* COMPILE_EXTRA_ARGS: The list of necessary arguments that should be passed to clang to properly parse the code
* MAKE_OUTPUT: The output of running `make` stored in a file (for the purpose of finding necessary arguments for compilation
automatically)
* METHOD_RANGE: The tuple of beginning and end of method with the fault (limits the search to the area)
* SOSREPAIR: If set to False it will only run SearchRepair features
* NUMBER_OF_TIMES_RERUNNING_TESTS: The number of times that the tests should be run to assure patch's correctness
* EXCLUDE_SCANF: If removing/replacing scanf in buggy code is going to be a problem, set this to True
"""
__author__ = 'Afsoon Afzal'
import logging
LIBCLANG_PATH = '/opt/sosrepair/llvm/lib/libclang.so'
GENERATE_DB_PATH = '/experiment/src'
Z3_COMMAND = '/opt/sosrepair/bin/z3'
LARGEST_SNIPPET = 7
SMALLEST_SNIPPET = 3
DATABASE = {
'db_name': 'testdocker',
'user': 'docker',
'password': '1234'
}
LOGGING = {
'filename': 'logs/repair.log',
'level': logging.DEBUG
}
logging.basicConfig(**LOGGING)
MAX_SUSPICIOUS_LINES = 10
VALID_TYPES = ['int', 'short', 'long', 'char', 'float', 'double', 'long long', 'size_t']
TESTS_LIST = "/experiment/tests-list.txt"
TEST_SCRIPT = "/experiment/test.sh"
TEST_SCRIPT_TYPE = "/bin/bash"
COMPILE_SCRIPT = "/experiment/compile.sh"
FAULTY_CODE = "/experiment/src/ext/standard/url.c"
COMPILE_EXTRA_ARGS = [
"-I/experiment/src",
"-I/experiment/src/include",
"-I/experiment/src/main",
"-I/experiment/src/ext",
"-I/usr/include",
]
MAKE_OUTPUT = "/experiment/makeout"
METHOD_RANGE = (99, 364)
# IF SOS+
# METHOD_RANGE = (319, 320)
SOSREPAIR = True
NUMBER_OF_TIMES_RERUNNING_TESTS = 1
EXCLUDE_SCANF = False
BULK_RUN_PATH = ""

Some files were not shown because too many files have changed in this diff Show More