[Konsole-devel] [Bug 42441] konsole crashes on startup on BSD and Solaris

Karl Vogel kvo--kde at seagha.be
Sat Feb 8 13:33:26 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=42441     




------- Additional Comments From kvo--kde at seagha.be  2003-02-08 14:33 -------
This is a problem in kdelibs/kdeui/kpixmap.cpp. 
 
void KPixmapIO::initXImage(int w, int h) 
{ 
    if (d->ximage && (w == d->ximage->width) && (h == d->ximage->height)) 
        return; 
 
    createXImage(w, h); 
    int size = d->ximage->bytes_per_line * d->ximage->height; 
    if (size > d->shmsize) 
        createShmSegment(size); 
    d->ximage->data = d->shminfo->shmaddr; 
    return; 
} 
 
If createShmSegment() is unable attach the shm segment, then it sets m_bShm to false. In this 
case d->shminfo->shmaddr is not valid! So there needs to be a test written for this case. 
 
 
Konsole uses KRootPixmap::updateBackground() for the transparant background. So this is 
where you are experiencing the crash.



More information about the konsole-devel mailing list