xserver-multidpi/mi
Peter Hutterer e3d2a7a613 Revert "mi: don't thrash resources when displaying the software cursor across screens"
This commit leads to a segfault on the very first XTS test case.

Backtrace:
0: /opt/xorg/bin/Xorg (xorg_backtrace+0x3b) [0x80a33db]
1: /opt/xorg/bin/Xorg (0x8048000+0x62a75) [0x80aaa75]
2: (vdso) (__kernel_rt_sigreturn+0x0) [0x5d140c]
3: /lib/libc.so.6 (0x9bb000+0x73579) [0xa2e579]
4: /lib/libc.so.6 (realloc+0xe0) [0xa2e830]
5: /opt/xorg/bin/Xorg (Xrealloc+0x33) [0x80a3f33]
6: /opt/xorg/bin/Xorg (0x8048000+0x1ab79) [0x8062b79]
7: /opt/xorg/bin/Xorg (0x8048000+0x1ac4e) [0x8062c4e]
8: /opt/xorg/bin/Xorg (RegisterExtensionNames+0x2ce) [0x8062fbe]
9: /opt/xorg/bin/Xorg (AddExtension+0x19a) [0x807bd7a]
10: /opt/xorg//lib/xorg/modules/extensions/libextmod.so (0x728000+0x1169a)
[0x73969a]
11: /opt/xorg/bin/Xorg (InitExtensions+0x85) [0x80c0eb5]
12: /opt/xorg/bin/Xorg (0x8048000+0x1a51d) [0x806251d]
13: /lib/libc.so.6 (__libc_start_main+0xe6) [0x9d1bb6]
14: /opt/xorg/bin/Xorg (0x8048000+0x1a2a1) [0x80622a1]
Segmentation fault at address 0x10b2d5f8

valgrind output:
==5069== Invalid read of size 4
==5069==    at 0x80F928D: FreePicture (picture.c:1531)
==5069==    by 0x818DDEF: miDCDeviceCleanup (midispcur.c:867)
==5069==    by 0x81B97F0: miSpriteDeviceCursorCleanup (misprite.c:968)
==5069==    by 0x80995FA: miPointerDeviceCleanup (mipointer.c:292)
==5069==    by 0x807973E: CloseDevice (devices.c:840)
==5069==    by 0x80799B6: CloseDownDevices (devices.c:933)
==5069==    by 0x8062705: main (main.c:309)
==5069==  Address 0x4cce844 is 12 bytes inside a block of size 84 free'd
==5069==    at 0x40057F6: free (vg_replace_malloc.c:325)
==5069==    by 0x80A3DE0: Xfree (utils.c:1154)
==5069==    by 0x80F9332: FreePicture (picture.c:1576)
==5069==    by 0x80FBB4B: PictureDestroyWindow (picture.c:69)
==5069==    by 0x810B1A3: damageDestroyWindow (damage.c:1840)
==5069==    by 0x80864F1: FreeWindowResources (window.c:846)
==5069==    by 0x8086812: DeleteWindow (window.c:925)
==5069==    by 0x806B53E: FreeClientResources (resource.c:806)
==5069==    by 0x806B60F: FreeAllResources (resource.c:823)
==5069==    by 0x80626E4: main (main.c:299)
==5069==
==5069== Invalid write of size 4
==5069==    at 0x80F9295: FreePicture (picture.c:1531)
==5069==    by 0x818DDEF: miDCDeviceCleanup (midispcur.c:867)
==5069==    by 0x81B97F0: miSpriteDeviceCursorCleanup (misprite.c:968)
==5069==    by 0x80995FA: miPointerDeviceCleanup (mipointer.c:292)
==5069==    by 0x807973E: CloseDevice (devices.c:840)
==5069==    by 0x80799B6: CloseDownDevices (devices.c:933)
==5069==    by 0x8062705: main (main.c:309)
==5069==  Address 0x4cce844 is 12 bytes inside a block of size 84 free'd
==5069==    at 0x40057F6: free (vg_replace_malloc.c:325)
==5069==    by 0x80A3DE0: Xfree (utils.c:1154)
==5069==    by 0x80F9332: FreePicture (picture.c:1576)
==5069==    by 0x80FBB4B: PictureDestroyWindow (picture.c:69)
==5069==    by 0x810B1A3: damageDestroyWindow (damage.c:1840)
==5069==    by 0x80864F1: FreeWindowResources (window.c:846)
==5069==    by 0x8086812: DeleteWindow (window.c:925)
==5069==    by 0x806B53E: FreeClientResources (resource.c:806)
==5069==    by 0x806B60F: FreeAllResources (resource.c:823)
==5069==    by 0x80626E4: main (main.c:299)

XTS test case: Xproto pAllocColor

This reverts commit 00b8b7ad61.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
2010-04-21 15:54:21 -07:00
..
Makefile.am misprite: Remove private header, fold into misprite.c 2009-03-27 12:44:20 -04:00
mi.h Eliminate bogus event resizing. 2009-09-20 20:45:24 +10:00
miarc.c Add type name argument to CreateNewResourceType 2009-12-18 17:44:12 -08:00
mibank.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mibank.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mibitblt.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mibstore.c Update several of my and/or Red Hat's licenses to standard form. 2009-05-14 07:02:44 -04:00
mibstore.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mibstorest.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
micmap.c Update Sun license notices to current X.Org standard form 2009-12-16 17:11:35 -08:00
micmap.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
micoord.h Unifdef sgi. 2008-07-23 13:37:42 -04:00
micopy.c fb: move some code to mi 2009-02-06 18:42:39 +01:00
micursor.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
midash.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
midispcur.c Revert "mi: don't thrash resources when displaying the software cursor across screens" 2010-04-21 15:54:21 -07:00
mieq.c XQuartz: Transition from xEvent based mieq to InternalEvent 2009-09-27 23:31:07 -07:00
miexpose.c Rootless: Correct border rendering on parent-relative windows 2009-09-27 23:31:50 -07:00
mifillarc.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mifillarc.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mifillrct.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mifpoly.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mifpolycon.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
migc.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
migc.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
miglblt.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
miinitext.c unifdef -B -DRENDER to always include RENDER code 2010-04-19 09:26:10 -07:00
miline.h mi: kill a few warnings 2009-02-07 21:58:17 +01:00
mioverlay.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mioverlay.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mipointer.c mi: use GetMaster() from MIPOINTER and MISPRITE. 2009-05-22 15:44:57 +10:00
mipointer.h mi: un-deprecate miPointerWarpCursor 2009-05-16 12:20:58 +10:00
mipointrst.h mi: protect mipointrst.h against multiple includes. 2008-06-11 17:24:19 +09:30
mipoly.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mipoly.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mipolycon.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mipolygen.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mipolypnt.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mipolyrect.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mipolyseg.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mipolytext.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mipolyutil.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mipushpxl.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
miregion.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
miscanfill.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
miscrinit.c mi: include shmint.h if needed, silence compiler warning. 2009-08-24 10:09:14 +10:00
mispans.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
mispans.h Use libtool convenience libraries and better "symbol" table. 2008-12-07 02:22:19 -02:00
misprite.c mi: remove log-spamming bogus error message (#26843) 2010-04-16 07:53:24 +10:00
misprite.h Revert "Suppress software cursor removal during rotated shadow buffer drawing." 2007-04-19 17:49:34 -07:00
mistruct.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
mivalidate.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
mivaltree.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
miwideline.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
miwideline.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
miwindow.c Rootless: Correct border rendering on parent-relative windows 2009-09-27 23:31:50 -07:00
mizerarc.c mi: kill a few warnings 2009-02-07 21:58:17 +01:00
mizerarc.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mizerclip.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
mizerline.c Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00