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

Bug#617680: marked as done (segfaults when attempting to import db from file)



Your message dated Thu, 19 May 2011 14:49:29 +0000
with message-id <E1QN4XZ-0008C1-OC@franck.debian.org>
and subject line Bug#617680: fixed in sqlitebrowser 2.0.0~beta1+ds.1-2
has caused the Debian Bug report #617680,
regarding segfaults when attempting to import db from file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
617680: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617680
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: sqlitebrowser
Version: 1.3-2.3
Severity: normal
Tags: +patch

Hello.

It appears that there is error when trying to import database from file
(.sql) and not choosing new database file name when prompted.

When file dialog opens, and user clicks reject action button (No/Abort)
then newDBfile becomes empty QString. Then db.create() is called with
empty parameter and SQLite code (implemented in sqlitedb.cpp
function bool DBBrowserDB::create ( const QString & db) that calls
deprecated function QString::utf8()). 

Application crashes:
*** glibc detected *** sqlitebrowser: free(): invalid pointer

Maybe something like this could help:

--- form1.ui.h.old	2011-03-10 15:51:05.000000000 +0100
+++ form1.ui.h	2011-03-10 15:49:22.000000000 +0100
@@ -1071,7 +1071,7 @@
      QMessageBox::information( this, applicationName ,err);
      return;
  }
- if (!fileName.isNull())
+ if ((!fileName.isNull()) && (!newDbFile.isNull()))
  {
      db.create(newDBfile);
  }

I'm not sure about this solution as I'm not able to test it, because 
this version of sqlitebrowser requires old Qt-Designer and QT3.


Regards.

-- 
 Grzegorz Bizon
 ntsn.pl Software Development
 http://ntsn.pl



--- End Message ---
--- Begin Message ---
Source: sqlitebrowser
Source-Version: 2.0.0~beta1+ds.1-2

We believe that the bug you reported is fixed in the latest version of
sqlitebrowser, which is due to be installed in the Debian FTP archive:

sqlitebrowser_2.0.0~beta1+ds.1-2.debian.tar.gz
  to main/s/sqlitebrowser/sqlitebrowser_2.0.0~beta1+ds.1-2.debian.tar.gz
sqlitebrowser_2.0.0~beta1+ds.1-2.dsc
  to main/s/sqlitebrowser/sqlitebrowser_2.0.0~beta1+ds.1-2.dsc
sqlitebrowser_2.0.0~beta1+ds.1-2_amd64.deb
  to main/s/sqlitebrowser/sqlitebrowser_2.0.0~beta1+ds.1-2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 617680@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Arto Jantunen <viiru@debian.org> (supplier of updated sqlitebrowser package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 19 May 2011 17:23:07 +0300
Source: sqlitebrowser
Binary: sqlitebrowser
Architecture: source amd64
Version: 2.0.0~beta1+ds.1-2
Distribution: unstable
Urgency: low
Maintainer: Arto Jantunen <viiru@debian.org>
Changed-By: Arto Jantunen <viiru@debian.org>
Description: 
 sqlitebrowser - GUI editor for SQLite databases
Closes: 556649 617680
Changes: 
 sqlitebrowser (2.0.0~beta1+ds.1-2) unstable; urgency=low
 .
   * Take over as maintainer
   * Apply patch from Grzegorz Bizon <grzesiek@ntsn.pl> to avoid segfaults when
     the user cancels instead of choosing a name for a new db (Closes: #617680)
   * Add Vcs-Browser and Vcs-Git fields to control
   * Change Section to database to match override
   * Add patch to use QString::fromLocal8Bit when reading argv (Closes: #556649)
   * Update Debian packaging parts of debian/copyright
Checksums-Sha1: 
 afd831d7eeb0bb66ee7c9acacd075ecf99a99f37 1304 sqlitebrowser_2.0.0~beta1+ds.1-2.dsc
 631475c6e981748bf416f9491140e4fb62de5f0e 6197 sqlitebrowser_2.0.0~beta1+ds.1-2.debian.tar.gz
 57a34d49f89d1f4d36aeec3dbab04286848b256d 172472 sqlitebrowser_2.0.0~beta1+ds.1-2_amd64.deb
Checksums-Sha256: 
 206d4f626789639d541d056068ce6ceca89a68fa37d6290f631a2c146d1b422d 1304 sqlitebrowser_2.0.0~beta1+ds.1-2.dsc
 d7d2790af890c2ab2c6d4ea4a6f368f806d1c8a87be2f504a3dd8ac20c1ec91d 6197 sqlitebrowser_2.0.0~beta1+ds.1-2.debian.tar.gz
 831f7396c2a96283c9fbb0c80217293b2fc88165bf069428603858fc38bfaa00 172472 sqlitebrowser_2.0.0~beta1+ds.1-2_amd64.deb
Files: 
 6b3b8d651024fdb16bee7ecf8fc646c6 1304 database extra sqlitebrowser_2.0.0~beta1+ds.1-2.dsc
 abc73073b024038ddc1d6cdb1ab0174f 6197 database extra sqlitebrowser_2.0.0~beta1+ds.1-2.debian.tar.gz
 990a5ae92c78efd80d6be05d2a4b7b3f 172472 database extra sqlitebrowser_2.0.0~beta1+ds.1-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk3VKjYACgkQQ9/iJIjcFnrZBwCfaUKLT66EGw9Y7a9pqR+Zut+Z
+0IAn2Xykmgm+z7l+QduHVVkVnn4HKff
=uGkB
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: