[cairo] 1.12.2 -> 1.12.4 upgrade breakage

Uli Schlachter psychon at znc.in
Fri Oct 19 03:19:58 PDT 2012


(resend, this time without the big attachment)

Hi,

On 19.10.2012 11:58, Chris Wilson wrote:
> On Thu, 18 Oct 2012 22:32:34 +0200, Thomas Klausner <wiz at NetBSD.org> wrote:
>> On Thu, Oct 18, 2012 at 01:32:35PM +0200, Thomas Klausner wrote:
>>> Ok, I've got xtrace to work, but now I can't reproduce the bug :|
>>> I'll send a trace when it reoccurs.
>>
>> I think I know why it didn't occur -- I was trying under vnc, which
>> has no shm extension support.
>>
>> I've now retried locally and reproduced the bug, attached.
> 
> Hmm, I'm having trouble with the attachment as bzip2 believes there to
> be data corruption  and is unable to recover. :(
> 
> Can you please send me the logfile again?
> Thanks,
> -Chris
> 

Decompresses fine here.

The relevant part of the trace seems to be:

002:<:0246: 16: Request(53): CreatePixmap depth=0x20 pid=0x0100009d
drawable=0x00000075 width=24 height=24
002:>:0246: Event PropertyNotify(28) window=0x01000077
atom=0x4b2("_NET_WM_ICON_NAME") time=0x0a856c95 state=NewValue(0x00)
002:<:0247: 24: RENDER-Request(151,4): CreatePicture pid=0x0100009e
drawable=0x0100009d format=0x00000026 values={poly-mode=Imprecise(0x01)}
002:<:0248: 28: RENDER-Request(151,26): FillRectangles op=Minimum/Clear(0x00)
dst=0x0100009e red=0x0000 green=0x0000 blue=0x0000 alpha=0x0000 rects={x=0 y=0
w=24 h=24};
002:>:0248: Event PropertyNotify(28) window=0x01000077 atom=0x25("WM_ICON_NAME")
time=0x0a856c95 state=NewValue(0x00)
002:<:0249: 16: MIT-SHM-Request(141,1): Attach shmseg=0x0100009f
shmid=0x328f0005 readonly=false(0x00)
002:<:024a: 40: MIT-SHM-Request(141,3): PutImage drawable=0x0100009d
gc=0x01000089 total-width=24 total-height=24 src-x=0 src-y=0 src-width=24
src-height=24 dst-x=0 dst-y=0 depth=32 format=ZPixmap(0x02)
send-event=true(0x01) shmseg=0x0100009f offset=0x00070000
002:<:024b: 16: Request(53): CreatePixmap depth=0x20 pid=0x010000a0
drawable=0x00000075 width=24 height=24
002:<:024c: 24: RENDER-Request(151,4): CreatePicture pid=0x010000a1
drawable=0x010000a0 format=0x00000026 values={poly-mode=Imprecise(0x01)}
002:>:0249:Error 10=Access: major=141, minor=1, bad=16777374
002:>:024a:Error 150=BadShmSeg: major=141, minor=3, bad=16777353
002:<:024d: 28: RENDER-Request(151,26): FillRectangles op=Minimum/Clear(0x00)
dst=0x010000a1 red=0x0000 green=0x0000 blue=0x0000 alpha=0x0000 rects={x=0 y=0
w=24 h=24};
002:<:024e: 40: MIT-SHM-Request(141,3): PutImage drawable=0x010000a0
gc=0x01000089 total-width=24 total-height=24 src-x=0 src-y=0 src-width=24
src-height=24 dst-x=0 dst-y=0 depth=32 format=ZPixmap(0x02)
send-event=true(0x01) shmseg=0x0100009f offset=0x00071000
002:<:024f: 16: Request(53): CreatePixmap depth=0x20 pid=0x010000a2
drawable=0x00000075 width=48 height=16
002:<:0250: 24: RENDER-Request(151,4): CreatePicture pid=0x010000a3
drawable=0x010000a2 format=0x00000026 values={poly-mode=Imprecise(0x01)}
002:>:024e:Error 150=BadShmSeg: major=141, minor=3, bad=16777353
002:<:0251: 28: RENDER-Request(151,26): FillRectangles op=Minimum/Clear(0x00)
dst=0x010000a3 red=0x0000 green=0x0000 blue=0x0000 alpha=0x0000 rects={x=0 y=0
w=48 h=16};
002:<:0252: 40: MIT-SHM-Request(141,3): PutImage drawable=0x010000a2
gc=0x01000089 total-width=48 total-height=16 src-x=0 src-y=0 src-width=48
src-height=16 dst-x=0 dst-y=0 depth=32 format=ZPixmap(0x02)
send-event=true(0x01) shmseg=0x0100009f offset=0x00072000
002:<:0253: 20: Request(16): InternAtom only-if-exists=true(0x01)
name='_ICC_PROFILE'
002:>:0252:Error 150=BadShmSeg: major=141, minor=3, bad=16777353
002:>:0253:32: Reply to InternAtom: atom=0x535("_ICC_PROFILE")

(Sorry for the line breaks)

So the first failed request is SHM-Attach which fails with BadAccess (there are
no Errors before this). The bad= thingie contains garbage (the id of the last
picture that was created, a value which doesn't appear in the Attach request).

However, I can't really say why Attach failed...

Uli
-- 
my $key = "\x49\x03\x93\x08\x19\x94\x96\x94\x28\x93\x83\x04\x68\x28\xa8\xf5".
          "\x0a\xb9\x94\x02\x45\x81\x93\x1f\xbc\xd7\xf3\xad\x93\xf5\x32\x93";
my $cipher = Crypt::Rijndael->new( $key, Crypt::Rijndael::MODE_ECB() );
my $plain = $ciper->decrypt($daten);


More information about the cairo mailing list