Public bug reported:

Binary package hint: libqt4-sql-odbc

Ubuntu / Kubuntu 4.10 everything worked perfectly.

With ubuntu / kubuntu 10.10, accessing a database on the IBM iSeries, using a 
SELECT query from QT4 application, everything works correctly only with numeric 
fields on the database.
If you try to read a text field with the method "QVariant value (int index) 
const", it lies in a crash!
The error is as follows:

gconv.c: 75: __gconv: Assertion "outbuf! = ((void *) 0) & & * outbuf! = ((void 
*) 0) 'failed.
Aborted

It happens on application found on the repositories, just as stacked on
personal application.

For example, the application "tora", querying works on numeric fields,
but does not work on text fields.

For example, an application personnel arrived at this point in the
source:

...
    while(query.next())
    {
      std::cout<<"Valore letto...";
      std::cout.flush();
      num_doc.append(query.value(1).toInt());
      std::cout<<"1...";
      std::cout.flush();
      sleep(3);
      QVariant a=query.value(0);
      std::cout<<"1.5...";
      std::cout.flush();
      main_window->listWidget_cli->addItem(QString("FD 
nr.")+QString::number(query.value(1).toInt())+QString(" di 
")+QString::fromLatin1(query.value(2).toByteArray().data()));
      std::cout<<"2...\n";
      std::cout.flush();
      stato=true;
    }
...

the output is as follows:
...
Valore letto...1...1.5...gfat: gconv.c:75: __gconv: Asserzione "outbuf != 
((void *)0) && *outbuf != ((void *)0)" non riuscita.
Aborted

Even with a simple:
...
QVariant a=query.value(2);
...

the output is as follows:
...
gfat: gconv.c:75: __gconv: Asserzione "outbuf != ((void *)0) && *outbuf != 
((void *)0)" non riuscita.
Aborted

** Affects: qt4-x11 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
QVariant and ODBC for iSeries segmentation fault in text field.
https://bugs.launchpad.net/bugs/665188
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qt4-x11 in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to