bugGNUstep - Bugs: bug #4216, -back crashing on solaris 2.6...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #4216: -back crashing on solaris 2.6 compile

Submitted by:  Riccardo Mottola <rmottola>
Submitted on:  Sun 06 Jul 2003 10:43:55 PM UTC  
 
Category: BackendSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Adam Fedor <fedor>
Open/Closed: Closed

Wed 22 Oct 2003 07:53:20 PM UTC, comment #2:

This seems to have fixed this bug as well:

2003-10-22 Adam Fedor <fedor@gnu.org>

* configure.ac: Check for X11 function prototypes (Fixes problems
on Solaris 2.6).

Adam Fedor <fedor>
Project AdministratorIn charge of this item.
Mon 18 Aug 2003 03:05:25 AM UTC, comment #1:

Well, the code doesn't check if dest_im was created correctly, but I'm not sure what should happen if it isn't. It definetly means something is wrong, but what? If you put something like this in, what would happen?

diff -u -r1.17 XGGState.m
--- xlib/XGGState.m 17 Jun 2003 13:34:38 -0000 1.17
+++ xlib/XGGState.m 18 Aug 2003 03:04:37 -0000
@@ -1793,6 +1793,17 @@
// --- Get the destination images ------------------------------------
dest_im = RGetXImage ((RContext *)context, draw, XGMinX (dr), XGMinY (dr),
XGWidth (dr), XGHeight (dr));
+ if (dest_im == NULL || dest_im->image == NULL)
+ {
+ NSLog(@"XGContext (DPSimage): Cannot access destination gstate image");
+ if (old_ctm != nil)
+ {
+ RELEASE(ctm);
+ // old_ctm is already retained
+ ctm = old_ctm;
+ }
+ return;
+ }

Adam Fedor <fedor>
Project AdministratorIn charge of this item.
Sun 06 Jul 2003 10:43:55 PM UTC, original submission:

With current CVS version, running any graphical application on Solaris 2.6 with libwraster of WMaker 0.80.2 installed leads to a crash.
Compilation occoured with gcc 3.2.2, so no libobjc is used.

the backtrace of such a a crash is:

#0 0xee2fdd50 in _bitmap_combine_alpha (context=0x104348,
data_planes=0x1e81a0, width=64, height=16777215, bits_per_sample=255,
samples_per_pixel=0, bits_per_pixel=24, bytes_per_row=192, colour_space=1,
one_is_black=0, is_planar=0, has_alpha=0 '\000', fast_min=1,
dest_im=0x1de008, dest_alpha=0x1de048, srect={x = 0, y = -64, width = 64,
height = 64}, drect=0xefffe100, op=NSCompositeClear,
drawMechanism=XGDM_FAST32) at XGBitmap.m:930
#1 0xee307a60 in i_XGGState_Ops_DPSimage__________ (self=0x1ec2e0,
_cmd=0x1, matrix=0x1de008, pixelsWide=64, pixelsHigh=64, bitsPerSample=8,
samplesPerPixel=3, bitsPerPixel=24, bytesPerRow=192, isPlanar=0,
hasAlpha=0, colorSpaceName=0xef72c054, data=0x1ddca8) at XGGState.m:1830
#2 0xee2df628 in i_GSContext_NSGraphics_NSDrawBitmap__________ (
self=0x11ce18, _cmd=0xef732248, rect={origin = {x = 0, y = 0}, size = {
width = 64, height = 64}}, pixelsWide=64, pixelsHigh=64,
bitsPerSample=8, samplesPerPixel=3, bitsPerPixel=24, bytesPerRow=192,
isPlanar=0, hasAlpha=0, colorSpaceName=0xef72c054, data=0x1ddca8)
at GSContext.m:805
#3 0xef51e134 in _i_NSBitmapImageRep__draw (self=0xefffe2b0, _cmd=0x8)
at ../Headers/AppKit/NSGraphics.h:168
#4 0xef580698 in i_NSImageRep__drawAtPoint (self=0x1e00f0, _cmd=0xef749a48,
aPoint={x = 0, y = 0}) at NSImageRep.m:451
#5 0xef57b200 in i_NSImage__drawRepresentation_inRect (self=0x1dbc00,
_cmd=0xef749f50, imageRep=0x1e00f0, aRect={origin = {x = 0, y = 0},
size = {width = 64, height = 64}}) at NSImage.m:831
---Type <return> to continue, or q <return> to quit---
#6 0xef57d53c in _i_NSImage_Private__doImageCache (self=0x1dbc00,
_cmd=0xef749920)
at /usr/GNUstep/System/Library/Headers/Foundation/NSGeometry.h:140
#7 0xef57a10c in i_NSImage__compositeToPoint_fromRect_operation (
self=0x1dbc00, _cmd=0xef749910, aPoint={x = 0, y = 0}, aRect={origin = {
x = 0, y = 0}, size = {width = 64, height = 64}},
op=NSCompositeSourceOver) at NSImage.m:685
#8 0xef57a060 in i_NSImage__compositeToPoint_operation (self=0x1dbc00,
_cmd=0xef739884, aPoint={x = 0, y = 0}, op=NSCompositeSourceOver)
at NSImage.m:673
#9 0xef53c7d0 in i_NSCell__drawInteriorWithFrame_inView ()
#10 0xef53c9f4 in i_NSCell__drawWithFrame_inView ()
#11 0xef50a7f0 in i_NSAppIconView__drawRect ()
#12 0xef61c1f8 in i_NSView__displayIfNeededInRectIgnoringOpacity ()
#13 0xef61cac8 in i_NSView__displayIfNeededInRectIgnoringOpacity ()
#14 0xef61b210 in _i_NSView__displayIfNeeded ()
#15 0xef629fb4 in i_NSWindow__orderWindow_relativeTo ()
#16 0xef50a414 in i_NSIconWindow__orderWindow_relativeTo ()
#17 0xef629c80 in _i_NSWindow__orderFrontRegardless ()
#18 0xef51246c in _i_NSApplication_Private__appIconInit ()
#19 0xef50b974 in _i_NSApplication__finishLaunching ()
#20 0xef50cd18 in _i_NSApplication__run ()
#21 0x15c80 in gnustep_base_user_main ()

this happened with older versions too. Experiments done only with older versions, showed that this bug is not triggered if libwraster is not installed and so not used. In such case every application seems to work (of course with no image support except TIFF).

alex malmberg suggests that dest_im->image is null.
here the prints:

print dest_im
$1 = (RXImage *) 0x1de008

print *dest_im
$2 = {image = 0x0, info = {shmseg = 7274596, shmid = 6619194,
shmaddr = 0x200035 "\fi\220", readOnly = 3473418}, is_shared = 0 '\000'}

-ric

Riccardo Mottola <rmottola>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 22 Oct 2003 07:53:20 PM UTCfedorStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
Mon 18 Aug 2003 03:05:25 AM UTCfedorAssigned toNone=>NA
Sun 06 Jul 2003 10:48:11 PM UTCalexmCategoryNone=>(Error - Not Found)
  Item GroupNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1