Bug 34756

Summary: xserver 1.10.0 Fatal server error XNFvasprintf failed
Product: xorg Reporter: Jos van Wolput <wolput>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log none

Description Jos van Wolput 2011-02-26 04:08:34 UTC
Created attachment 43852 [details]
Xorg.0.log

xserver 1.10.0 shows a fatal server error.
Xorg.0.log:
[    37.202] XNFvasprintf: Invalid argument
Fatal server error:
[    37.202] XNFvasprintf failed
Comment 1 Michel Dänzer 2011-02-26 06:32:19 UTC
Should be fixed by the commit below, please reopen if not.

commit e55520c0e582f2a500b3b01c2cb78750e15256ca
Author: Michel Dänzer <daenzer@vmware.com>
Date:   Sat Feb 26 15:27:59 2011 +0100

    Revert "kms: Fix warning XNFprintf is deprecated"
    
    This reverts commit cb4dc7ab66016d0c980800f8dbf71bbe993889d3.
    
    Looks like this caused https://bugs.freedesktop.org/attachment.cgi?id=43852 ,
    but even if it didn't, the following needs to be addressed first:
    
    cc1: warnings being treated as errors
    ../../src/radeon_kms.c: In function ‘radeon_open_drm_master’:
    ../../src/radeon_kms.c:413: error: passing argument 1 of ‘XNFasprintf’ from incompatible pointer type
    /usr/local/include/xorg/Xprintf.h:57: note: expected ‘char **’ but argument is of type ‘char *’
    ../../src/radeon_kms.c:413: error: passing argument 2 of ‘XNFasprintf’ makes pointer from integer without a cast
    /usr/local/include/xorg/Xprintf.h:57: note: expected ‘const char * restrict’ but argument is of type ‘uint16_t’
    ../../src/radeon_kms.c:413: error: assignment makes pointer from integer without a cast
    make[2]: *** [radeon_kms.lo] Error 1
Comment 2 Jos van Wolput 2011-02-26 11:00:31 UTC
(In reply to comment #1)
> Should be fixed by the commit below, please reopen if not.
> 
> commit e55520c0e582f2a500b3b01c2cb78750e15256ca
> Author: Michel Dänzer <daenzer@vmware.com>
> Date:   Sat Feb 26 15:27:59 2011 +0100
> 

I compiled your xf86-video-ati commit. 
No more xserver error, fixed.
Thanks!

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.