Dislocations have been proposed to affect the performance and reliability of GaN power semiconductors by being conductive pathways for leakage current. However, no direct evidence of a link between their electrical behavior and physical nature in carbon-doped semi-insulating GaN buffer layers has been obtained. Therefore, we investigate the electrical activity of dislocations by conductive atomic force microscopy and electron beam induced current to distinguish electrically active dislocations from non-active ones. We investigated six electrically active dislocations and discovered distinct carbon enrichment in the vicinity of all six dislocations, based on cross-sectional scanning transmission electron microscopy using electron energy loss spectrometry. Electrically non-active dislocations, which are the vast majority, sometimes also showed carbon enrichment, however, in only two out of seven cases. Consequently, carbon segregation seems to be a requirement for electrical activity, but a carbon surplus is not sufficient for electrical activity. We also performed first-principles total-energy calculations for mixed type threading dislocations, which validates carbon accumulation in the dislocation vicinity. The electrical and physical characterization results, complemented by density functional theory simulations, support the previously hypothesized existence of a carbon defect band and add new details.