Success Stories

If you use the gcc python plugin to improve your code, we’d love to hear about it.

If you want to share a success story here, please email the plugin’s mailing list.

The GNU Debugger

Bugs found in gdb by compiling it with the plugin’s gcc-with-cpychecker script:

Tom Tromey also wrote specialized Python scripts to use the GCC plugin to locate bugs within GDB.

One of his scripts analyzes gdb’s resource-management code, which found some resource leaks and a possible crasher:

The other generates a whole-program call-graph, annotated with information on gdb’s own exception-handling mechanism. A script then finds places where these exceptions were not properly integrated with gdb’s embedded Python support:

LibreOffice

Stephan Bergmann wrote a script to analyze LibreOffice’s source code, detecting a particular usage pattern of C++ method calls:

psycopg

Daniele Varrazzo used the plugin’s gcc-with-cpychecker script on psycopg, the popular Python interface to PostgreSQL, and was able to find and fix numerous subtle errors:

pycups

Bugs found in the Python bindings for the CUPS API by compiling it with the plugin’s gcc-with-cpychecker script:

python-krbV

Bug found in the Python bindings for the Kerberos 5 API by compiling it with the plugin’s gcc-with-cpychecker script: