Created attachment 83963 [details]
According to the manual¹, after a surface is finished, "Further
drawing to the surface will [...] trigger a
CAIRO_STATUS_SURFACE_FINISHED error." However the attached code
shows that cairo_stroke aborts the program instead of setting the
Patches for this are on the mailing list: http://lists.cairographics.org/archives/cairo/2013-August/024546.html
Fixed with commit 18633b081026eb88931af6130b3e716fdb954e19.