pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: png-1.5 breakage status



Dear Thomas,

At Wed, 23 Mar 2011 11:17:50 +0100,
Thomas Klausner wrote:
> 
> > after a rolling replace the situation is still the same. 
> > 
> > I also noticed that kphotoalbum terminates as soon as I try to display
> > the thumbnails.
> > 
> > kphotoalbum: Fatal IO error: client killed
> 
> I'm sorry, I'm out of ideas here. Can you try debugging it?

I don't have a solution yet, but I reduced the code needed to trigger
the error.

#include <qapplication.h>
#include <qpixmap.h>
#include <qcstring.h>
#include <qdatastream.h>
#include <iostream>
using namespace std;

int main(int argc, char *argv[]) {
  QApplication application(argc, argv);
  const QPixmap screen = QPixmap::grabWindow(QApplication::desktop()->winId());
  QByteArray *bytes = new QByteArray();
  QDataStream out(*bytes, IO_WriteOnly);
  out << screen;
  QPixmap* screen1 = new QPixmap();
  screen1->loadFromData(*bytes);
  cout << screen.save("original.png", "PNG") << endl;
  cout << screen1->save("converted.png", "PNG") << endl;
  return application.exec();
}

compiled with 

g++ -g -I/usr/pkg/qt3/include/ -L/usr/pkg/qt3/lib -Wall -o qpngtest 
qpngtest.cpp -Wl,-R/usr/pkg/qt3/lib/ -lqt-mt 

produces the segmentation violation when run.  Exploring the code a
bit with gdb I see that

x11/qt3-libs/work/qt-x11-free-3.3.8/src/kernel/qpngio.cpp:530

png_get_sBIT(png_ptr, info_ptr, &sig_bit);

sets sig_bit to 0x0

Could you check that the code above also triggers a segmentation
violation on your system?

Thanks,

Marko

Attachment: pgp3DxvbCifO2.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index