Errors seen in LOGS/python-kaa-base-0.6.0-6.fc17

This is a summary of errors seen when compiling with an experimental static analysis tool

Raw build logs can be seen here

Unclassified errors

The triager didn't know how to classify these ones

src/extensions/shmmodule.c PyShmSemaphore_setgid passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:764
src/extensions/shmmodule.c PyShmSemaphore_setperm passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:792
src/extensions/shmmodule.c PyShm_create_semaphore passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:1277
src/extensions/shmmodule.c check_semaphore_identity passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:630
src/extensions/shmmodule.c PyShm_semaphore passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:1246
src/extensions/shmmodule.c PyShmSemaphore_setuid passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:818
src/extensions/shmmodule.c PyShmSemaphore_setval passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:864

Segfaults in normal paths

Code paths that will lead to a segmentatation fault

src/extensions/shmmodule.c PyShm_memory dereferencing NULL (MEM[(struct PyObject *)o].ob_refcnt) at src/extensions/shmmodule.c:1087
src/extensions/shmmodule.c PyShm_semaphore dereferencing NULL (MEM[(struct PyObject *)o].ob_refcnt) at src/extensions/shmmodule.c:1227

Reference count too low

Code paths in which the reference count of an object is left too low. This could lead to the object being deallocated too early, triggering segfaults when later accessed. Over repeated calls, these errors could accumulate, increasing the likelihood of a segfault.

src/extensions/shmmodule.c PyShm_memory ob_refcnt of return value is 1 too low
src/extensions/shmmodule.c PyShm_memory ob_refcnt of '*o' is 1 too low

Reference leaks

Code paths in which the reference count of an object is left too high, leading to memory leaks

src/extensions/shmmodule.c PyShm_create_memory ob_refcnt of new ref from call to Py_BuildValue is 1 too high
src/extensions/shmmodule.c PyShm_memory ob_refcnt of '*keyo' is 1 too high
src/extensions/shmmodule.c PyShmSemaphore_dealloc ob_refcnt of PyIntObject is 1 too high
src/extensions/shmmodule.c PyShm_getshmid ob_refcnt of PyIntObject is 1 too high
src/extensions/shmmodule.c PyShm_semaphore ob_refcnt of '*keyo' is 1 too high
src/extensions/shmmodule.c PyShmMemory_dealloc ob_refcnt of PyIntObject is 1 too high
src/extensions/shmmodule.c PyShm_getsemid ob_refcnt of PyIntObject is 1 too high

Reference leak within initialization

Code paths in which the reference count of an object is left too high, but within an initialization routine, and thus likely to only happen once

src/extensions/shmmodule.c initshm ob_refcnt of PyStringObject is 1 too high

Segfaults within error-handling paths

Code paths in error-handling that will lead to a segmentatation fault (e.g. under low memory conditions)

src/extensions/shmmodule.c PyShm_memory calling PyDict_GetItem with NULL as argument 2 (keyo) at src/extensions/shmmodule.c:1086
src/extensions/shmmodule.c PyShm_memory calling PyDict_SetItem with NULL as argument 2 (keyo) at src/extensions/shmmodule.c:1097
src/extensions/shmmodule.c PyShm_semaphore calling PyDict_GetItem with NULL as argument 2 (keyo) at src/extensions/shmmodule.c:1226
src/extensions/shmmodule.c PyShm_semaphore calling PyDict_SetItem with NULL as argument 2 (keyo) at src/extensions/shmmodule.c:1236
src/extensions/shmmodule.c initshm calling PyDict_SetItemString with NULL as argument 3 (D.10665) at src/extensions/shmmodule.c:1386