[cairo-bugs] [Bug 5191] New: Empty declaration warnings throughout compilation and core dumps

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 28 18:23:54 PST 2005


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=5191          
     
           Summary: Empty declaration warnings throughout compilation and
                    core dumps
           Product: cairo
           Version: 1.0.2
          Platform: Sun
               URL: http://www.blastwave.org/packages.php/libcairo
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: maybird1776 at yahoo.com
         QAContact: cairo-bugs at cairographics.org


I am using Sun Solaris 8 (SPARC/x86) and Sun Studio 10. I have been getting 
these compiler warnings with Cairo 1.0.0 through v1.1.1.:

"pixregion.c", line 333: warning: syntax error: empty declaration
"pixregion.c", line 458: warning: syntax error: empty declaration
"pixregion.c", line 1242: warning: syntax error: empty declaration
"fbpict.c", line 1911: warning: syntax error: empty declaration
"icbltone.c", line 499: warning: integer overflow detected: op "<<"
"icbltone.c", line 499: warning: integer overflow detected: op "<<"
"icbltone.c", line 499: warning: integer overflow detected: op "<<"
"icbltone.c", line 499: warning: initializer does not fit or is out of range: -1
6777216
"icbltone.c", line 499: warning: integer overflow detected: op "<<"
"icbltone.c", line 499: warning: initializer does not fit or is out of range: -1

"icbltone.c", line 503: warning: integer overflow detected: op "<<"
"icbltone.c", line 503: warning: integer overflow detected: op "<<"
"icbltone.c", line 503: warning: integer overflow detected: op "<<"
"icbltone.c", line 503: warning: initializer does not fit or is out of range: -2
56
"icbltone.c", line 503: warning: integer overflow detected: op "<<"
"icbltone.c", line 503: warning: initializer does not fit or is out of range: -1

"icbltone.c", line 507: warning: integer overflow detected: op "<<"
"icbltone.c", line 507: warning: integer overflow detected: op "<<"
"icbltone.c", line 507: warning: integer overflow detected: op "<<"
"icbltone.c", line 507: warning: initializer does not fit or is out of range: -6
5536
"icbltone.c", line 507: warning: integer overflow detected: op "<<"
"icbltone.c", line 507: warning: initializer does not fit or is out of range: -1

"iccolor.c", line 56: warning: syntax error: empty declaration
"icformat.c", line 156: warning: syntax error: empty declaration
"icimage.c", line 48: warning: syntax error: empty declaration
"icimage.c", line 165: warning: syntax error: empty declaration
"icimage.c", line 208: warning: syntax error: empty declaration
"icimage.c", line 281: warning: syntax error: empty declaration
"icimage.c", line 409: warning: statement not reached
"icrect.c", line 368: warning: syntax error: empty declaration

cairo-matrix.c", line 213: warning: syntax error: empty declaration
cairo-matrix.c", line 241: warning: syntax error: empty declaration
cairo-matrix.c", line 303: warning: syntax error: empty declaration
cairo-matrix.c", line 337: warning: syntax error: empty declaration
cairo-matrix.c", line 355: warning: syntax error: empty declaration
cairo-matrix.c", line 472: warning: syntax error: empty declaration
cairo-path-data.c", line 101: warning: enum type mismatch: op "="
cairo-path-data.c", line 276: warning: enum type mismatch: op "="
cairo-path-fill.c", line 135: warning: enum type mismatch: op "="
cairo-path-stroke.c", line 774: warning: enum type mismatch: op "="
cairo-path-stroke.c", line 861: warning: enum type mismatch: op "="
cairo-spline.c", line 87: warning: enum type mismatch: op "="
cairo-surface.c", line 45: warning: initializer does not fit or is out of range
-1
cairo-surface.c", line 61: warning: initializer does not fit or is out of range
-1
cairo-surface.c", line 77: warning: initializer does not fit or is out of range
-1
cairo-surface.c", line 309: warning: syntax error: empty declaration
cairo-surface.c", line 694: warning: enum type mismatch: op "="
cairo-surface.c", line 755: warning: enum type mismatch: op "="
cairo-surface.c", line 765: warning: enum type mismatch: op "="
cairo-surface.c", line 793: warning: enum type mismatch: op "="
cairo-surface.c", line 805: warning: enum type mismatch: op "="
cairo-surface.c", line 848: warning: enum type mismatch: op "="
cairo-surface.c", line 982: warning: enum type mismatch: op "="
cairo-surface.c", line 1010: warning: enum type mismatch: op "="
cairo-surface.c", line 1060: warning: enum type mismatch: op "="
cairo-surface.c", line 1101: warning: enum type mismatch: op "="
cairo-surface.c", line 1189: warning: enum type mismatch: op "="
cairo-surface.c", line 1213: warning: enum type mismatch: op "="
cairo-surface.c", line 1229: warning: enum type mismatch: op "="
cairo-surface.c", line 1297: warning: enum type mismatch: op "="
cairo-surface.c", line 1303: warning: enum type mismatch: op "="
cairo-surface.c", line 1336: warning: enum type mismatch: op "="
cairo-surface.c", line 1347: warning: enum type mismatch: op "="
cairo-surface.c", line 1350: warning: enum type mismatch: op "="
cairo-surface.c", line 1378: warning: enum type mismatch: op "="
cairo-surface.c", line 1409: warning: enum type mismatch: op "="
cairo-surface.c", line 1468: warning: enum type mismatch: op "="
cairo-surface.c", line 1498: warning: enum type mismatch: op "="
cairo-surface.c", line 1500: warning: enum type mismatch: op "="

"cairo-meta-surface.c", line 377: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 394: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 403: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 412: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 415: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 450: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 460: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 476: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 480: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 489: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 493: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 509: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 516: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 523: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 527: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 543: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 559: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 564: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 582: warning: enum type mismatch: op "="
"cairo-meta-surface.c", line 593: warning: enum type mismatch: op "="
"cairo-ft-font.c", line 1220: warning: integer overflow detected: op "<<"
"cairo-ft-font.c", line 2191: warning: integer overflow detected: op "<<"
"cairo-xlib-surface.c", line 804: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 839: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 861: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 916: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 931: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 935: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 1302: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 1339: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 1515: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 1537: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 1590: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 1615: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 1630: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 2758: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 2764: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 2784: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 2791: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 2798: warning: enum type mismatch: op "="
"cairo-xlib-surface.c", line 2807: warning: enum type mismatch: op "="

I have no tool to TEST the API to ensure is 'passing' once it compiles 
completely. Everything compiles completely, and I even get a package - yet we 
still see segmentation faults:

  The core dump is caused by setting a function pointer to null then calling 
it. The function is null because there is in no corresponding action for the 
format_code. The format codes are defined with macro PICT_FORMAT but there is 
none for the active parameters. The parameters are generated from the source 
visual and are set in cairo-xlib-surface.c, lines 531+. The visual is generated 
by libgdk so we can't tell why the visual has the values it does. We can only 
say that cairo is not prepared for it and dumps core.

(gdb) where
#0 0x00000000 in ?? ()
#1 0xfe06dc24 in fbFetch (pict=0x354870, x=0, y=0, width=295, 
buffer=0xffbe612c) at fbcompose.c:2673
#2 0xfe072d3c in fbCompositeRect (data=0xffbe5c68, scanline_buffer=0xffbe5c90) 
at fbcompose.c:3565
#3 0xfe073c2c in pixman_compositeGeneral (op=PIXMAN_OPERATOR_OVER, 
pSrc=0x354960, pMask=0x354750, pDst=0x354870, 
xSrc=73, ySrc=26, xMask=0, yMask=0, xDst=0, yDst=0, width=295, height=23) at 
fbcompose.c:3677
#4 0xfe053260 in *_cairo_pixman_composite (op=PIXMAN_OPERATOR_OVER, 
pSrc=0x354960, pMask=0x354750, pDst=0x354870, 
xSrc=73, ySrc=26, xMask=0, yMask=0, xDst=0, yDst=0, width=295, height=23) at 
fbpict.c:1825
#5 0xfe01da28 in _cairo_image_surface_composite (operator=CAIRO_OPERATOR_OVER, 
src_pattern=0xffbec570, 
mask_pattern=0xffbec120, abstract_dst=0x3548e8, src_x=73, src_y=26, mask_x=0, 
mask_y=0, dst_x=0, dst_y=0, 
width=295, height=23) at cairo-image-surface.c:605          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list