mountmanager crashed with SIGSEGV in QGridLayout::rowCount()

Bug #337337 reported by Lödur
190
This bug affects 10 people
Affects Status Importance Assigned to Milestone
MountManager
Unknown
Unknown
mountmanager (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Jaunty by Fabrice Coutadeur

Bug Description

Binary package hint: mountmanager

I'd open a gnome-terminal, typing
mountmanager
and press [Enter]

Terminal-Messages:
---
6 records in /etc/fstab were detected.
[G] DBus interface was created
[G] All devices were recieved
[I] Storage device was detected: "/dev/sr0"
[I] Storage device was detected: "/dev/sda6"
[I] Storage device was detected: "/dev/sda5"
[I] Storage device was detected: "/dev/sda2"
[I] Storage device was detected: "/dev/sda1"
[I] Storage device was detected: "/dev/sda"
[G] Parsing of "/usr/share/mountmanager/options/common.xml" was successful
[G] Parsing of "/usr/share/mountmanager/options/ntfs-3g.xml" was successful
Segmentation fault (core dumped)
---

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/mountmanager
Package: mountmanager 0.2.6-0ubuntu1
ProcCmdline: mountmanager
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_GB.UTF-8
Signal: 11
SourcePackage: mountmanager
StacktraceTop:
 QGridLayout::rowCount () from /usr/lib/libQtGui.so.4
 ?? ()
 ?? ()
 ?? ()
 ?? ()
Title: mountmanager crashed with SIGSEGV in QGridLayout::rowCount()
Uname: Linux 2.6.28-8-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Impact of the bug: users with ntfs partitions and using ntfs-3g package won't be able to use mountmanager

Development version: The same patch has been apply

TEST CASE: If not been able to reproduce the bug, as I don't have any ntfs partiton.The steps to follow to reproduce the bug are:
- have a ntfs partition (or create it)
- have ntfs-3g package installed
- have this partition mounted using ntfs-3g in /etc/fstab
- run 'sudo mountmanager' from the command line

Potential regression: I've been tested the patched version since the fix has been published, I also published it in my ppa, and nobody reported problems. Anyway, in the worst case, mountmanager will stop working.

Revision history for this message
Lödur (loedur) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:QFormLayout::sizeHint () from /usr/lib/libQtGui.so.4
OptionsView::addOptions ()
VolumeWidget::VolumeWidget ()
CentralWidget::addDevice ()
CentralWidget::CentralWidget ()

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Apport retracing service (apport) wrote : Stack trace with source code
Changed in mountmanager:
importance: Undecided → Medium
Revision history for this message
Mr. Captcha (mr-captcha) wrote :

same here: mountmanager 0.2.6-0ubuntu1 crashes, mountmanager 0.2.4-0ubuntu1 still works after downgrade.

Changed in mountmanager:
status: New → Confirmed
Revision history for this message
tdflanders (thomasdelbeke) wrote :
Download full text (4.1 KiB)

Confirming in jaunty:

root@thomas-laptop:/home/thomas# mountmanager
6 records in /etc/fstab were detected.
[G] DBus interface was created
[G] All devices were recieved
[I] Storage device was detected: "/dev/sr0"
[I] Storage device was detected: "/dev/sda4"
[I] Storage device was detected: "/dev/sda3"
[I] Storage device was detected: "/dev/sda2"
[I] Storage device was detected: "/dev/sda1"
[I] Storage device was detected: "/dev/sda"
[I] Storage device was detected: "/dev/sdb"
[G] Parsing of "/usr/share/mountmanager/options/common.xml" was successful
[G] Parsing of "/usr/share/mountmanager/options/ntfs-3g.xml" was successful
Segmentation fault
root@thomas-laptop:/home/thomas# gdb mountmanager 2>&1 | tee gdb-mountmanager.txt
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) handle SIG33 pass nostop noprint
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) set logging file gdb-mountmanager.log
(gdb) set logging on
Copying output to gdb-mountmanager.log.
(gdb) run
Starting program: /usr/bin/mountmanager
[Thread debugging using libthread_db enabled]
[New Thread 0xb6b3e920 (LWP 6481)]
6 records in /etc/fstab were detected.
[G] DBus interface was created
[G] All devices were recieved
[I] Storage device was detected: "/dev/sr0"
[I] Storage device was detected: "/dev/sda4"
[I] Storage device was detected: "/dev/sda3"
[I] Storage device was detected: "/dev/sda2"
[I] Storage device was detected: "/dev/sda1"
[I] Storage device was detected: "/dev/sda"
[I] Storage device was detected: "/dev/sdb"
[G] Parsing of "/usr/share/mountmanager/options/common.xml" was successful
[G] Parsing of "/usr/share/mountmanager/options/ntfs-3g.xml" was successful

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6b3e920 (LWP 6481)]
0xb7589d37 in QGridLayout::rowCount () from /usr/lib/libQtGui.so.4
(gdb) backtrace full
#0 0xb7589d37 in QGridLayout::rowCount () from /usr/lib/libQtGui.so.4
No symbol table info available.
#1 0x08099a06 in OptionsView::addOptions ()
No locals.
#2 0x080923a8 in VolumeWidget::VolumeWidget ()
No locals.
#3 0x0808745d in CentralWidget::addDevice ()
No locals.
#4 0x080894af in CentralWidget::CentralWidget ()
No locals.
#5 0x0807d06f in MainWindow::MainWindow ()
No locals.
#6 0x0807b13e in main ()
No locals.
(gdb) info registers
eax 0x0 0
ecx 0xbfafd178 -1078996616
edx 0x80e4201 135152129
ebx 0x0 0
esp 0xbfafd1cc 0xbfafd1cc
ebp 0xbfafd268 0xbfafd268
esi 0x99c7b88 161250184
edi 0xbfafd248 -1078996408
eip 0xb7589d37 0xb7589d37 <QGridLayout::rowCount() const+7>
eflags 0x210202 [ IF RF ID ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs ...

Read more...

Revision history for this message
tdflanders (thomasdelbeke) wrote :
Download full text (3.7 KiB)

root@thomas-laptop:/home/thomas# lsb_release -rd ; uname -a ; apt-cache policy mountmanager linux
Description: Ubuntu 9.04
Release: 9.04
Linux thomas-laptop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux
mountmanager:
  Installed: 0.2.6-0ubuntu2
  Candidate: 0.2.6-0ubuntu2
  Version table:
 *** 0.2.6-0ubuntu2 0
        500 http://archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status
linux:
  Installed: 2.6.28.11.15
  Candidate: 2.6.28.11.15
  Version table:
 *** 2.6.28.11.15 0
        500 http://archive.ubuntu.com jaunty/restricted Packages
        100 /var/lib/dpkg/status
root@thomas-laptop:/home/thomas#

It's a kernel issue:

root@thomas-laptop:/home/thomas# gdb mountmanager 2>&1 | tee gdb-mountmanager.txt
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) handle SIG33 pass nostop noprint
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) run
Starting program: /usr/bin/mountmanager
[Thread debugging using libthread_db enabled]
[New Thread 0xb6b3f920 (LWP 7033)]
6 records in /etc/fstab were detected.
[G] DBus interface was created
[G] All devices were recieved
[I] Storage device was detected: "/dev/sr0"
[I] Storage device was detected: "/dev/sda4"
[I] Storage device was detected: "/dev/sda3"
[I] Storage device was detected: "/dev/sda2"
[I] Storage device was detected: "/dev/sda1"
[I] Storage device was detected: "/dev/sda"
[I] Storage device was detected: "/dev/sdb"
[G] Parsing of "/usr/share/mountmanager/options/common.xml" was successful
[G] Parsing of "/usr/share/mountmanager/options/ntfs-3g.xml" was successful

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6b3f920 (LWP 7033)]
QGridLayout::rowCount (this=0xa123ff8) at kernel/qgridlayout.cpp:1268
1268 kernel/qgridlayout.cpp: No such file or directory.
 in kernel/qgridlayout.cpp
Current language: auto; currently c++
(gdb) backtrace full
#0 QGridLayout::rowCount (this=0xa123ff8) at kernel/qgridlayout.cpp:1268
No locals.
#1 0x08099a06 in OptionsView::addOptions ()
No locals.
#2 0x080923a8 in VolumeWidget::VolumeWidget ()
No locals.
#3 0x0808745d in CentralWidget::addDevice ()
No locals.
#4 0x080894af in CentralWidget::CentralWidget ()
No locals.
#5 0x0807d06f in MainWindow::MainWindow ()
No locals.
#6 0x0807b13e in main ()
No locals.
(gdb) info registers
eax 0x0 0
ecx 0xbf900778 -1081079944
edx 0x80e4201 135152129
ebx 0x0 0
esp 0xbf9007cc 0xbf9007cc
ebp 0xbf900868 0xbf900868
esi 0xa2a23f8 170533880
edi 0xbf900848 -1081079736
eip 0xb758ad37 0xb758ad37 <QGridLayout::rowCount() const+7>
eflags 0x210202 [ IF RF ID ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es ...

Read more...

Revision history for this message
tdflanders (thomasdelbeke) wrote :

Hm, gdb showed "kernel/qgridlayout*" something and kernel.log has mountmanager in it. Other than that I am not getting a kerneloops, attaching anyway.

Revision history for this message
tdflanders (thomasdelbeke) wrote :

syslog shows me the segfault too ...

Revision history for this message
tdflanders (thomasdelbeke) wrote :

kernelteam debug policies:

Revision history for this message
tdflanders (thomasdelbeke) wrote :
Revision history for this message
tdflanders (thomasdelbeke) wrote :
Revision history for this message
tdflanders (thomasdelbeke) wrote :
Revision history for this message
tdflanders (thomasdelbeke) wrote :
Revision history for this message
tdflanders (thomasdelbeke) wrote :
Revision history for this message
tdflanders (thomasdelbeke) wrote :

Problem remains:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6b62920 (LWP 10315)]
QGridLayout::rowCount (this=0x937d500) at kernel/qgridlayout.cpp:1268
1268 kernel/qgridlayout.cpp: No such file or directory.
 in kernel/qgridlayout.cpp
Current language: auto; currently c++

It is easily reproducible.

Revision history for this message
Jan Hlodan (wewek) wrote :

the workaround should be to remove ntfs-3g
# aptitude remove ntfs-3g

now it's possible to lunch the mountmanager

Revision history for this message
Assuri (sstikhonov) wrote :

Hello! I am MountManager developer and I fixed this bug. Please, download updated version here: http://code.google.com/p/linuxtuner/downloads/list

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Debdiff with the fix integrated to version 0.2.6.

You can also download the resulting package from

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

link to my ppa: https://launchpad.net/~fabricesp/+archive/ppa
Please test this version and report success or failure.

Revision history for this message
Jacopo Moronato (jmoronat) wrote :

@ fabrice
No more segfault.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Debdiff for karmic, closing the 3 bug reports

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

New debdiff for Karmic closing the bugs correctly

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Debdiff for jaunty.

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your work there

Changed in mountmanager (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mountmanager - 0.2.6-0ubuntu4

---------------
mountmanager (0.2.6-0ubuntu4) karmic; urgency=low

  * debian/patch/fix_ntfs-3g.patch: fix a coredump at startup when ntfs-3g is
    installed (LP: #337337, #322049, #330317)

 -- Fabrice Coutadeur <email address hidden> Thu, 25 Jun 2009 21:52:07 +0200

Changed in mountmanager (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.