Segmentation fault during startup

Bug #447214 reported by Mark P
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
QBzr
Status tracked in Trunk
0.14
Fix Released
Critical
Alexander Belchenko
Trunk
Fix Released
Critical
Alexander Belchenko
qbzr (Ubuntu)
Fix Released
High
Unassigned
Karmic
Fix Released
High
Unassigned

Bug Description

All qbzr commands cause seg fault.
Simply doing the following causes a seg fault:

mkdir test
cd test
bzr init
bzr qinfo <- seg faults

bzr from command line works fine.
bzr ginfo also works fine.

versions:
bzr 2.0
qbzr 0.14.3
PyQt 4.3 compiled from src
SIP 4.9 compiled from src
Qt 4.5 installed with apt-get

uname -a
Linux laptop 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:49:34 UTC 2009 i686 GNU/Linux

Bzr Log output follows:

Fri 2009-10-09 14:24:12 +0100
0.109 bzr arguments: [u'qinfo']
0.157 looking for plugins in /home/######/.bazaar/plugins
0.323 looking for plugins in /usr/local/lib/python2.6/dist-packages/bzrlib/plugins
0.324 Plugin name qbzr already loaded
0.362 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.391 encoding stdout as sys.stdout encoding 'UTF-8'

Related branches

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 447214] [NEW] Segmentation fault during startup

Mark Pupilli пишет:
> Public bug reported:
>
> All qbzr commands cause seg fault.
> Simply doing the following causes a seg fault:
>
> mkdir test
> cd test
> bzr init
> bzr qinfo <- seg faults
>
> bzr from command line works fine.
> bzr ginfo also works fine.
>
> versions:
> bzr 2.0
> qbzr 0.14.3
> PyQt 4.3 compiled from src
> SIP 4.9 compiled from src
> Qt 4.5 installed with apt-get

You should have at least PyQt 4.4. 4.3 is not supported in QBzr 0.14.3
and I think you should match your Qt version. But I know Ubuntu Jaunty
provides PyQt 4.4 with Qt 4.5.

Changed in qbzr:
status: New → Invalid
Revision history for this message
Mark P (mpupilli) wrote :

Sorry that was a mistake - I actually have PyQt version 4.6 - given that it was only released a few weeks ago I suspect this might be the problem - I'll try version 4.5 or 4.4.

Revision history for this message
Alexander Belchenko (bialix) wrote :

So, search in google for "PyQt4 4.6 segfault" reveals several results, and the problem indeed in PyQt 4.6 packaged for Karmic. This is not QBzr-specific problem, other project affected too, see per example http://groups.google.com/group/leo-editor/browse_thread/thread/67e009721fcdbd6d

Revision history for this message
Alexander Belchenko (bialix) wrote :

Naoki wrote: http://groups.google.com/group/qbzr/msg/16bf8f67fec11e8f

"qbzr.lib.util._QBzrWindowBase and
qbzr.lib.subprocess.SubProcessWindowBase are old-style class.
PyQt 4.6 doesn't support multiple inheritance from old-style class.
They should be new-style class."

I'm inclined to think this is true, therefore the problem can be fixed in QBzr and should be fixed and released ASAP.

Changed in qbzr:
status: Invalid → Confirmed
importance: Undecided → Critical
Changed in qbzr:
milestone: none → 0.14.4
Changed in qbzr:
assignee: nobody → Alexander Belchenko (bialix)
status: Confirmed → Fix Released
Changed in qbzr (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
milestone: none → ubuntu-9.10
Steve Langasek (vorlon)
Changed in qbzr (Ubuntu Karmic):
importance: Critical → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qbzr - 0.14.4-0ubuntu1

---------------
qbzr (0.14.4-0ubuntu1) karmic; urgency=low

  * New upstream bugfix release. (LP: #455051)
    - get rid of old-style classes to be compatible with PyQt 4.6. (LP: #447214)
    - qlog: handle revids as plain strings, not unicode
    - Fixed a bug were the pending merges graph was being loaded twice.
    - qcommit: Fixed bug with inability of run qcommit /path/to/tree/root after
      merge
    - qlog: Ensure that tree objects correctly locked when checking for
      directories.

 -- Gary van der Merwe <email address hidden> Mon, 19 Oct 2009 01:19:38 +0200

Changed in qbzr (Ubuntu Karmic):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.