python testcpybuilder.py -v test_module_with_type (__main__.SimpleTest) ... ok test_simple_compilation (__main__.SimpleTest) ... ok test_version_parsing (__main__.SimpleTest) ... ok ---------------------------------------------------------------------- Ran 3 tests in 0.437s OK cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python.o gcc-python.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-cfg.o gcc-python-cfg.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-closure.o gcc-python-closure.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-function.o gcc-python-function.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-gimple.o gcc-python-gimple.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-location.o gcc-python-location.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-option.o gcc-python-option.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-parameter.o gcc-python-parameter.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-pass.o gcc-python-pass.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-pretty-printer.o gcc-python-pretty-printer.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-tree.o gcc-python-tree.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o gcc-python-variable.o gcc-python-variable.c python generate-cfg-c.py > autogenerated-cfg.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-cfg.o autogenerated-cfg.c python generate-option-c.py > autogenerated-option.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-option.o autogenerated-option.c python generate-function-c.py > autogenerated-function.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-function.o autogenerated-function.c cpp -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic gimple-types.txt.in -o autogenerated-gimple-types.txt python generate-gimple-c.py > autogenerated-gimple.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-gimple.o autogenerated-gimple.c python generate-location-c.py > autogenerated-location.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-location.o autogenerated-location.c python generate-parameter-c.py > autogenerated-parameter.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-parameter.o autogenerated-parameter.c python generate-pass-c.py > autogenerated-pass.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-pass.o autogenerated-pass.c python generate-pretty-printer-c.py > autogenerated-pretty-printer.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-pretty-printer.o autogenerated-pretty-printer.c cpp -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic tree-types.txt.in -o autogenerated-tree-types.txt python generate-tree-c.py > autogenerated-tree.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-tree.o autogenerated-tree.c python generate-variable-c.py > autogenerated-variable.c cc -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -I/home/denys/src/Gecode/install-3.5.0/include -I/home/denys/include -I/home/denys/include -c -o autogenerated-variable.o autogenerated-variable.c /usr/bin/i686-pc-linux-gnu-gcc-4.6.1 -I/home/denys/include -I/home/denys/include -I/home/denys/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/plugin/include -fPIC -O2 -Wall -Werror -g -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -pipe -fomit-frame-pointer -fwrapv -DNDEBUG -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -shared gcc-python.o gcc-python-cfg.o gcc-python-closure.o gcc-python-function.o gcc-python-gimple.o gcc-python-location.o gcc-python-option.o gcc-python-parameter.o gcc-python-pass.o gcc-python-pretty-printer.o gcc-python-tree.o gcc-python-variable.o autogenerated-cfg.o autogenerated-option.o autogenerated-function.o autogenerated-gimple.o autogenerated-location.o autogenerated-parameter.o autogenerated-pass.o autogenerated-pretty-printer.o autogenerated-tree.o autogenerated-variable.o -o python.so python run-test-suite.py tests/plugin/identifiers: OK tests/plugin/diagnostics: OK tests/plugin/initializers: OK tests/plugin/version: OK tests/plugin/types: OK tests/plugin/function-types: OK tests/plugin/callback-exception: OK tests/plugin/callback-args: OK tests/plugin/syntax-error: OK tests/plugin/options: FAIL returncode: 1 compiling: /usr/bin/i686-pc-linux-gnu-gcc-4.6.1 -c -o tests/plugin/options/output.o -fplugin=/home/denys/src/my-python-plugin/python.so -fplugin-arg-python-script=tests/plugin/options/script.py tests/plugin/options/input.c Stdout: Help on class Option in module gcc: class Option(__builtin__.object) | Methods defined here: | | __init__(...) | x.__init__(...) initializes x; see help(type(x)) for signature | | __repr__(...) | x.__repr__() <==> repr(x) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | help | (string) The help text shown for this option | | is_driver | (bool) Is this a driver option? | | is_enabled | True/False for whether or not this option is enabled, raising a NotImplementedError for options for which the plugin cannot tell | | is_optimization | (bool) Does this option control an optimization? | | is_target | (bool) Is this a target-specific option? | | is_warning | (bool) Does this option control a warning message? | | text | (string) The command-line text used to set this option | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __new__ = | T.__new__(S, ...) -> a new object with type S, a subtype of T gcc.Option('-funroll-loops') option.text: '-funroll-loops' option.help: 'Perform loop unrolling when iteration count is known' option.is_enabled: False option.is_warning: False option.is_optimization: True option.is_driver: False option.is_target: False gcc.Option('-fjump-tables') option.text: '-fjump-tables' option.help: 'Use jump tables for sufficiently large switch statements' option.is_enabled: True option.is_warning: False option.is_optimization: True option.is_driver: False option.is_target: False gcc.Option('-Wuninitialized') option.text: '-Wuninitialized' option.help: 'Warn about uninitialized automatic variables' option.is_enabled: True option.is_warning: True option.is_optimization: False option.is_driver: False option.is_target: False gcc.Option('-Wformat') option.text: '-Wformat' option.help: 'Warn about printf/scanf/strftime/strfmon format string anomalies' option.is_enabled: True option.is_warning: True option.is_optimization: False option.is_driver: False option.is_target: False Stderr: Traceback (most recent call last): File "tests/plugin/options/script.py", line 59, in option = gcc.Option('-foptimize-for-web-scale') ValueError: Could not find command line argument with text '-foptimize-for-web-scale'--- Expected stdout +++ Actual stdout @@ -66,7 +66,7 @@ gcc.Option('-Wformat') option.text: '-Wformat' option.help: 'Warn about printf/scanf/strftime/strfmon format string anomalies' - option.is_enabled: False + option.is_enabled: True option.is_warning: True option.is_optimization: False option.is_driver: False tests/plugin/parameters: OK tests/plugin/sys: OK tests/plugin/translation-units: OK tests/plugin/functions: OK tests/plugin/constants: OK tests/cpychecker/unknown-function: OK tests/cpychecker/PyArg_ParseTuple/typedefs: OK tests/cpychecker/PyArg_ParseTuple/keywords: OK tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U: FAIL returncode: 1 compiling: /usr/bin/i686-pc-linux-gnu-gcc-4.6.1 -c -o tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/output.o -fplugin=/home/denys/src/my-python-plugin/python.so -fplugin-arg-python-script=tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/script.py -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/input.c Stdout: Stderr: *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_PASS_EXECUTION | python tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/input.c: In function ‘less_rigid_code_U’: tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/input.c:68:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. tests/cpychecker/PyArg_ParseTuple/correct_converter: FAIL returncode: 1 compiling: /usr/bin/i686-pc-linux-gnu-gcc-4.6.1 -c -o tests/cpychecker/PyArg_ParseTuple/correct_converter/output.o -fplugin=/home/denys/src/my-python-plugin/python.so -fplugin-arg-python-script=tests/cpychecker/PyArg_ParseTuple/correct_converter/script.py -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/correct_converter/input.c Stdout: Stderr: *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_PASS_EXECUTION | python tests/cpychecker/PyArg_ParseTuple/correct_converter/input.c: In function ‘correct_usage_of_converter’: tests/cpychecker/PyArg_ParseTuple/correct_converter/input.c:34:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. tests/cpychecker/PyArg_ParseTuple/incorrect_converters: FAIL returncode: 1 compiling: /usr/bin/i686-pc-linux-gnu-gcc-4.6.1 -c -o tests/cpychecker/PyArg_ParseTuple/incorrect_converters/output.o -fplugin=/home/denys/src/my-python-plugin/python.so -fplugin-arg-python-script=tests/cpychecker/PyArg_ParseTuple/incorrect_converters/script.py -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c Stdout: Stderr: tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c: In function ‘incorrect_usages_of_converter’: tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:36:26: error: Not enough arguments in call to PyArg_ParseTuple with format string "O&" expected 2 extra arguments: "int (converter)(PyObject *, T*)" for some type T "T*" for some type T but got none [-fpermissive] tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:39:26: error: Not enough arguments in call to PyArg_ParseTuple with format string "O&" expected 2 extra arguments: "int (converter)(PyObject *, T*)" for some type T "T*" for some type T but got 1: "int" [-fpermissive] tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:44:26: error: Mismatching type in call to PyArg_ParseTuple with format code "O&" [-fpermissive] argument 3 ("42") had type "int" but was expecting "int (converter)(PyObject *, T*)" for some type T for format code "O&" tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:49:26: error: Mismatching type in call to PyArg_ParseTuple with format code "O&" [-fpermissive] argument 3 ("&i0") had type "int *" (pointing to 32 bits) but was expecting "int (converter)(PyObject *, T*)" for some type T for format code "O&" tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:54:26: error: Mismatching type in call to PyArg_ParseTuple with format code "O&" [-fpermissive] argument 3 ("not_returning_int") had type "void (*fn) ()" but was expecting "int (converter)(PyObject *, T*)" for some type T for format code "O&" tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:57:26: error: Mismatching type in call to PyArg_ParseTuple with format code "O&" [-fpermissive] argument 3 ("not_enough_args") had type "int (*fn) (struct PyObject *)" but was expecting "int (converter)(PyObject *, T*)" for some type T for format code "O&" tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:60:26: error: Mismatching type in call to PyArg_ParseTuple with format code "O&" [-fpermissive] argument 3 ("too_many_args") had type "int (*fn) (struct PyObject *, int *, int)" but was expecting "int (converter)(PyObject *, T*)" for some type T for format code "O&" tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:83: confused by earlier errors, bailing out--- Expected stderr +++ Actual stderr @@ -42,21 +42,4 @@ but was expecting "int (converter)(PyObject *, T*)" for some type T for format code "O&" -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:63:26: error: Mismatching type in call to PyArg_ParseTuple with format code "O&" [-fpermissive] - argument 3 ("not_taking_PyObjectPtr") had type - "int (*fn) (int, int)" - but was expecting - "int (converter)(PyObject *, T*)" for some type T - for format code "O&" -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:68:26: error: Mismatching type in call to PyArg_ParseTuple with format code "O&" [-fpermissive] - argument 4 ("42") had type - "int" - but was expecting - "Py_ssize_t *" (pointing to 64 bits) (from second argument of "int (*fn) (struct PyObject *, Py_ssize_t *)") - for format code "O&" -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:73:26: error: Mismatching type in call to PyArg_ParseTuple with format code "O&" [-fpermissive] - argument 4 ("&i0") had type - "int *" (pointing to 32 bits) - but was expecting - "Py_ssize_t *" (pointing to 64 bits) (from second argument of "int (*fn) (struct PyObject *, Py_ssize_t *)") - for format code "O&" +tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:83: confused by earlier errors, bailing out tests/cpychecker/PyArg_ParseTuple/codes_accepting_null: OK tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN: FAIL returncode: 1 compiling: /usr/bin/i686-pc-linux-gnu-gcc-4.6.1 -c -o tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/output.o -fplugin=/home/denys/src/my-python-plugin/python.so -fplugin-arg-python-script=tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/script.py -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c Stdout: Stderr: *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_PASS_EXECUTION | python tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c: In function ‘hash_format_codes’: tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c:29:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions.--- Expected stderr +++ Actual stderr @@ -1,49 +1,8 @@ +*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. +Event | Plugins +PLUGIN_PASS_EXECUTION | python tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c: In function ‘hash_format_codes’: -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:59:26: error: Mismatching type in call to PyArg_ParseTuple with format code "s#" [-fpermissive] - argument 4 ("&sval") had type - "Py_ssize_t *" (pointing to 64 bits) - but was expecting - "int *" (pointing to 32 bits) - for format code "s#" -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:62:37: error: Mismatching type in call to PyArg_ParseTupleAndKeywords with format code "s#" [-fpermissive] - argument 6 ("&sval") had type - "Py_ssize_t *" (pointing to 64 bits) - but was expecting - "int *" (pointing to 32 bits) - for format code "s#" -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:77:26: error: Mismatching type in call to PyArg_ParseTuple with format code "z#" [-fpermissive] - argument 4 ("&sval") had type - "Py_ssize_t *" (pointing to 64 bits) - but was expecting - "int *" (pointing to 32 bits) - for format code "z#" -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:88:26: error: Mismatching type in call to PyArg_ParseTuple with format code "u#" [-fpermissive] - argument 4 ("&sval") had type - "Py_ssize_t *" (pointing to 64 bits) - but was expecting - "int *" (pointing to 32 bits) - for format code "u#" -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:99:26: error: Mismatching type in call to PyArg_ParseTuple with format code "es#" [-fpermissive] - argument 5 ("&sval") had type - "Py_ssize_t *" (pointing to 64 bits) - but was expecting - "int *" (pointing to 32 bits) - for format code "es#" -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:110:26: error: Mismatching type in call to PyArg_ParseTuple with format code "et#" [-fpermissive] - argument 5 ("&sval") had type - "Py_ssize_t *" (pointing to 64 bits) - but was expecting - "int *" (pointing to 32 bits) - for format code "et#" -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:121:26: error: Mismatching type in call to PyArg_ParseTuple with format code "t#" [-fpermissive] - argument 4 ("&sval") had type - "Py_ssize_t *" (pointing to 64 bits) - but was expecting - "int *" (pointing to 32 bits) - for format code "t#" -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:132:26: error: Mismatching type in call to PyArg_ParseTuple with format code "w#" [-fpermissive] - argument 4 ("&sval") had type - "Py_ssize_t *" (pointing to 64 bits) - but was expecting - "int *" (pointing to 32 bits) - for format code "w#" +tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c:29:0: internal compiler error: Segmentation fault +Please submit a full bug report, +with preprocessed source if appropriate. +See for instructions. tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U: FAIL returncode: 1 compiling: /usr/bin/i686-pc-linux-gnu-gcc-4.6.1 -c -o tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/output.o -fplugin=/home/denys/src/my-python-plugin/python.so -fplugin-arg-python-script=tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/script.py -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c Stdout: Stderr: *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_PASS_EXECUTION | python tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c: In function ‘incorrect_usage_of_S_and_U’: tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:33:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions.--- Expected stderr +++ Actual stderr @@ -1,13 +1,8 @@ +*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. +Event | Plugins +PLUGIN_PASS_EXECUTION | python tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c: In function ‘incorrect_usage_of_S_and_U’: -tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:29:26: error: Mismatching type in call to PyArg_ParseTuple with format code "SU" [-fpermissive] - argument 3 ("&val1") had type - "int *" (pointing to 32 bits) - but was expecting - one of "PyStringObject * *" or "PyObject * *" - for format code "S" -tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:29:26: error: Mismatching type in call to PyArg_ParseTuple with format code "SU" [-fpermissive] - argument 4 ("&val2") had type - "int *" (pointing to 32 bits) - but was expecting - one of "PyUnicodeObject * *" or "PyObject * *" - for format code "U" +tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:33:1: internal compiler error: Segmentation fault +Please submit a full bug report, +with preprocessed source if appropriate. +See for instructions. tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash: OK tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN: FAIL returncode: 1 compiling: /usr/bin/i686-pc-linux-gnu-gcc-4.6.1 -c -o tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/output.o -fplugin=/home/denys/src/my-python-plugin/python.so -fplugin-arg-python-script=tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/script.py -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c Stdout: Stderr: *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_PASS_EXECUTION | python tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c: In function ‘hash_format_codes’: tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c:30:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions.--- Expected stderr +++ Actual stderr @@ -1,49 +1,8 @@ +*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. +Event | Plugins +PLUGIN_PASS_EXECUTION | python tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c: In function ‘hash_format_codes’: -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:49:26: error: Mismatching type in call to PyArg_ParseTuple with format code "s#" [-fpermissive] - argument 4 ("&ival") had type - "int *" (pointing to 32 bits) - but was expecting - "Py_ssize_t *" - for format code "s#" -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:52:37: error: Mismatching type in call to PyArg_ParseTupleAndKeywords with format code "s#" [-fpermissive] - argument 6 ("&ival") had type - "int *" (pointing to 32 bits) - but was expecting - "Py_ssize_t *" - for format code "s#" -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:72:26: error: Mismatching type in call to PyArg_ParseTuple with format code "z#" [-fpermissive] - argument 4 ("&ival") had type - "int *" (pointing to 32 bits) - but was expecting - "Py_ssize_t *" - for format code "z#" -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:83:26: error: Mismatching type in call to PyArg_ParseTuple with format code "u#" [-fpermissive] - argument 4 ("&ival") had type - "int *" (pointing to 32 bits) - but was expecting - "Py_ssize_t *" - for format code "u#" -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:94:26: error: Mismatching type in call to PyArg_ParseTuple with format code "es#" [-fpermissive] - argument 5 ("&ival") had type - "int *" (pointing to 32 bits) - but was expecting - "Py_ssize_t *" - for format code "es#" -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:105:26: error: Mismatching type in call to PyArg_ParseTuple with format code "et#" [-fpermissive] - argument 5 ("&ival") had type - "int *" (pointing to 32 bits) - but was expecting - "Py_ssize_t *" - for format code "et#" -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:116:26: error: Mismatching type in call to PyArg_ParseTuple with format code "t#" [-fpermissive] - argument 4 ("&ival") had type - "int *" (pointing to 32 bits) - but was expecting - "Py_ssize_t *" - for format code "t#" -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:127:26: error: Mismatching type in call to PyArg_ParseTuple with format code "w#" [-fpermissive] - argument 4 ("&ival") had type - "int *" (pointing to 32 bits) - but was expecting - "Py_ssize_t *" - for format code "w#" +tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c:30:0: internal compiler error: Segmentation fault +Please submit a full bug report, +with preprocessed source if appropriate. +See for instructions. tests/cpychecker/fileptr-missing-error-check: OK tests/cpychecker/locate-methods: OK tests/cpychecker/refcounts/correct_py_none: OK tests/cpychecker/refcounts/correct_object_ctor: OK tests/cpychecker/refcounts/incorrect_py_none: OK tests/cpychecker/refcounts/too_many_increfs: OK tests/cpychecker/refcounts/unrecognized_function: OK tests/cpychecker/refcounts/missing_decref: OK tests/cpychecker/refcounts/fold_conditional: FAIL returncode: 0 compiling: /usr/bin/i686-pc-linux-gnu-gcc-4.6.1 -c -o tests/cpychecker/refcounts/fold_conditional/output.o -fplugin=/home/denys/src/my-python-plugin/python.so -fplugin-arg-python-script=tests/cpychecker/refcounts/fold_conditional/script.py -I/usr/include/python2.7 tests/cpychecker/refcounts/fold_conditional/input.c Stdout: Trace 0: returned: RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/fold_conditional/input.c', line=26)) r->ob_refcnt: RefcountValue(1) r->ob_size: ConcreteValue(gcctype='int', loc=None, value=5L) r->ob_type: RegionForGlobal(gcc.VarDecl('PyList_Type')) Trace 1: returned: (struct PyObject *)0L Stderr: --- Expected stdout +++ Actual stdout @@ -1,7 +1,7 @@ Trace 0: returned: RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/fold_conditional/input.c', line=26)) r->ob_refcnt: RefcountValue(1) - r->ob_size: ConcreteValue(gcctype='Py_ssize_t', loc=None, value=5L) + r->ob_size: ConcreteValue(gcctype='int', loc=None, value=5L) r->ob_type: RegionForGlobal(gcc.VarDecl('PyList_Type')) Trace 1: returned: (struct PyObject *)0L tests/cpychecker/refcounts/object_leak: OK tests/examples/hello-world: OK 29 successes; 8 failures Failed tests: tests/plugin/options tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U tests/cpychecker/PyArg_ParseTuple/correct_converter tests/cpychecker/PyArg_ParseTuple/incorrect_converters tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN tests/cpychecker/refcounts/fold_conditional make: *** [test-suite] Error 1