GNOME Bugzilla – Bug 546601
File.copy Segmentation faults when file exists and told to overwrite
Last modified: 2008-08-06 14:59:21 UTC
Hi, The following program causes a Segmentation fault. import gio class A: def __init__(self): self.s = gio.File("http://www.gnome.org/~jstowers/conduit_test_data/Image.png") self.d = gio.File("b.png") self.canc = gio.Cancellable() def progress(self, current, total): print current,total def copy(self): ok = self.s.copy( destination=self.d, flags=gio.FILE_COPY_OVERWRITE, cancellable=self.canc, progress_callback=self.progress ) print "OK? %s" % ok a = A() a.copy() Observations: I think this error goes away if the file exists, and seems to be due to something getting cleaned up before the write to disk has finished...
That should have read: this error goes away if the file exists, and we dont overwrite. i,e, it only happens when it writes to disk. Something getting cleaned up before the write to disk has finished...
Created attachment 115979 [details] Partially written image Attached partially written image showing how the write does not complete.
*** This bug has been marked as a duplicate of 546591 ***