Bug 25361

Summary: realloc(): invalid next size in cs_begin at radeon_cs_legacy.c
Product: Mesa Reporter: Christian Hartmann <cornogle>
Component: Drivers/DRI/R100Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium CC: cornogle
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: xorg.gdb
compiz.gdb
make.log of the todays build of xorg mesa/ati/xserver etc
Xorg.0.log

Description Christian Hartmann 2009-11-30 06:19:33 UTC
Created attachment 31589 [details]
xorg.gdb

Running Debian Linux oddysseus 2.6.32-rc8a #5 Tue Nov 24 15:19:49 CET 2009 i686 GNU/Linux

Linux kernel from git, here the last log entries:

commit 1d33047c9f0ad5a5e3cacf496557aa1672d95d41
Merge: 28590df 5349ef3
Author: christian hartmann <cornogle@googlemail.com>
Date:   Tue Nov 24 15:13:51 2009 +0100

    Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 into rc8_drm_readback

commit 28590df27d40ff101dc1533654a3ea972f7d3679
Author: christian hartmann <cornogle@googlemail.com>
Date:   Tue Nov 24 10:12:13 2009 +0100

    applying the Add_range_validation_function_v2.patch from Jerome Glisse

    Signed-off-by: christian hartmann <cornogle@googlemail.com>

commit 587d36f3209ed046f55e6ad5dfc9747012664ba2
Author: christian hartmann <cornogle@googlemail.com>
Date:   Tue Nov 24 10:11:01 2009 +0100

    applying the patch combios_readback.patch.V3 from airlied

    Signed-off-by: christian hartmann <cornogle@googlemail.com>

commit 5349ef3127c77075ff70b2014f17ae0fbcaaf199
Author: Clemens Ladisch <clemens@ladisch.de>
Date:   Wed Nov 4 09:42:52 2009 +0100

    drm/fb: fix FBIOGET/PUT_VSCREENINFO pixel clock handling

    When the framebuffer driver does not publish detailed timing information
    for the current video mode, the correct value for the pixclock field is
    zero, not -1.

    Since pixclock is actually unsigned, the value -1 would be interpreted
    as 4294967295 picoseconds (i.e., about 4 milliseconds) by
    register_framebuffer() and userspace programs.

    This patch allows X.org's fbdev driver to work.

    Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
    Tested-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
    Cc: stable@kernel.org
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit 79cc304f3e2fda202242036326afb2aeca486156
Author: Jeremy Fitzhardinge <jeremy@goop.org>
Date:   Tue Nov 17 14:08:54 2009 -0800
....

lspci -vv
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500] (prog-if 00 [VGA controller])
        Subsystem: IBM ThinkPad T30
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR+ FastB2B+ DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 66 (2000ns min), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at e8000000 (32-bit, prefetchable) [size=128M]
        Region 1: I/O ports at 3000 [size=256]
        Region 2: Memory at d0100000 (32-bit, non-prefetchable) [size=64K]
        [virtual] Expansion ROM at d0120000 [disabled] [size=128K]
        Capabilities: [58] AGP version 2.0
                Status: RQ=48 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2,x4
                Command: RQ=32 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW- Rate=x4
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-

These tools (Xorg and components are all from git/master and up-to-date (2009-11-30)

bigreqsproto
compositeproto
damageproto
dri2proto
drm
evieproto
fixesproto
fontsproto
glproto
inputproto
kbproto
libfontenc
libpciaccess
libX11
libXau
libxcb
libXcomposite
libXdamage
libXext
libXfixes
libXfont
libXi
libXinerama
libxkbfile
libXrandr
libxtrans
libXtst
libXv
libXvMC
libXxf86vm
macros

make_20091130.log

mesa
pixman
proto
pthread-stubs
randrproto
recordproto
renderproto
resourceproto
scrnsaverproto
util
videoproto
x11proto
xcmiscproto
xev
xextproto
xf86dgaproto
xf86driproto
xf86-input-evdev
xf86-input-keyboard
xf86-input-mouse
xf86-input-synaptics
xf86-video-ast
xf86-video-ati
xf86-video-v4l
xf86-video-vesa
xf86vidmodeproto
xineramaproto
xkbcomp
xkeyboard-config
xserver

The rest is from debian unstable

attaching the GDB log from Xorg ,compiz++ (0.9) and the make.log from Xorg.git directory
Comment 1 Christian Hartmann 2009-11-30 06:20:12 UTC
Created attachment 31590 [details]
compiz.gdb
Comment 2 Christian Hartmann 2009-11-30 06:20:53 UTC
Created attachment 31591 [details]
make.log of the todays build of xorg mesa/ati/xserver etc
Comment 3 Christian Hartmann 2009-11-30 06:31:19 UTC
the last messages in dmesg:

[18005.296233] [drm] Loading R100 Microcode
[18005.296239] platform radeon_cp.0: firmware: requesting radeon/R100_cp.bin
[18005.296248] device: 'radeon_cp.0': device_add
[18005.296266] PM: Adding info for No Bus:radeon_cp.0
[18005.309772] device: 'radeon_cp.0': device_unregister
[18005.309779] PM: Removing info for No Bus:radeon_cp.0
[18005.309858] PM: Removing info for platform:radeon_cp.0
[18005.309881] bus: 'platform': remove device radeon_cp.0
[18005.309967] [drm] writeback test succeeded in 2 usecs
[18061.706627] compiz[3764]: segfault at b5bb5350 ip b5bb5350 sp bfdd98dc error 4
chris@oddysseus:~/linux_2.6/00_2.6$
Comment 4 Christian Hartmann 2009-11-30 06:57:42 UTC
Created attachment 31596 [details]
Xorg.0.log
Comment 5 Christian Hartmann 2015-04-23 11:36:59 UTC
just out of date

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.