Bug 352291

Summary: Baloo crash while partitioning USB stick using gnome-disk-utility
Product: [Unmaintained] Baloo Reporter: zohn.joidberg
Component: Baloo File DaemonAssignee: Vishesh Handa <me>
Status: RESOLVED DUPLICATE    
Severity: crash CC: zohn.joidberg
Priority: NOR Keywords: drkonqi
Version: 5.6.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace of plasma crash which happened at the same time
Another crash after re-attempting partitioning

Description zohn.joidberg 2015-09-04 21:13:14 UTC
Application: baloo_file (5.6.2)

Qt Version: 5.4.1
Operating System: Linux 3.19.0-26-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
- What I was doing when the application crashed:

I created a new FAT32 partition on a USB stick using gnome-disk-utility 3.14.0 (UDisks 2.1.5 (built against 2.1.4)).
Baloo suddenly crashed, presumably after the partition was created trying to index it. The plasma desktop disappeared for a while and then came back.

- Custom settings of the application:
Baloo still had the default settings, i.e. no directories to skip listed.

-- Backtrace:
Application: Baloo File (baloo_file), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fac47b06800 (LWP 3250))]

Thread 2 (Thread 0x7fac45889700 (LWP 3254)):
#0  0x00007fac55ab98dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fac549a1b72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fac549a364f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fac477ad099 in QXcbEventReader::run (this=0x26051d0) at qxcbconnection.cpp:1105
#4  0x00007fac56350b0e in QThreadPrivate::start (arg=0x26051d0) at thread/qthread_unix.cpp:337
#5  0x00007fac557a76aa in start_thread (arg=0x7fac45889700) at pthread_create.c:333
#6  0x00007fac55ac4eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fac47b06800 (LWP 3250)):
[KCrash Handler]
#6  0x00007fac559f3267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#7  0x00007fac559f4eca in __GI_abort () at abort.c:89
#8  0x00007fac5633dedf in qt_message_fatal (context=..., message=...) at global/qlogging.cpp:1415
#9  QMessageLogger::fatal (this=this@entry=0x7ffea8f9c870, msg=msg@entry=0x7fac5935a8b8 "Cannot construct placeholder type QDBusRawType") at global/qlogging.cpp:636
#10 0x00007fac59335552 in QDBusRawTypeHandler::construct () at qdbusmetaobject.cpp:144
#11 0x00007fac565d2638 in construct (copy=0x0, where=0x7ffea8f9c990, this=0x7ffea8f9c8d0) at ../../include/QtCore/../../src/corelib/kernel/qmetatype.h:2018
#12 (anonymous namespace)::customConstruct (d=0x7ffea8f9c990, copy=0x0) at kernel/qvariant.cpp:865
#13 0x00007fac565d2e8f in QVariant::QVariant (this=0x7ffea8f9c990, typeId=<optimized out>, copy=<optimized out>) at kernel/qvariant.cpp:1498
#14 0x00007fac5659a3cf in QMetaProperty::read (this=this@entry=0x7ffea8f9ca40, object=object@entry=0x3e9e230) at kernel/qmetaobject.cpp:2861
#15 0x00007fac565be767 in QObject::property (this=0x3e9e230, name=0x40200d8 "MountPoints") at kernel/qobject.cpp:3896
#16 0x00007fac57a2d9f4 in Solid::Backends::UDisks2::DeviceBackend::checkCache (this=0x3eb08f0, key=...) at ../../../src/solid/devices/backends/udisks2/udisksdevicebackend.cpp:185
#17 0x00007fac57a2dc13 in Solid::Backends::UDisks2::DeviceBackend::propertyExists (this=0x3eb08f0, key=...) at ../../../src/solid/devices/backends/udisks2/udisksdevicebackend.cpp:132
#18 0x00007fac57a281bf in Solid::Backends::UDisks2::Device::isMounted (this=0x40c4dc0) at ../../../src/solid/devices/backends/udisks2/udisksdevice.cpp:818
#19 0x00007fac57a3f651 in Solid::Backends::UDisks2::StorageAccess::isAccessible (this=0x3ede650) at ../../../src/solid/devices/backends/udisks2/udisksstorageaccess.cpp:75
#20 0x00007fac57a3f884 in updateCache (this=0x3ede650) at ../../../src/solid/devices/backends/udisks2/udisksstorageaccess.cpp:138
#21 Solid::Backends::UDisks2::StorageAccess::StorageAccess (this=0x3ede650, device=0x40c4dc0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../src/solid/devices/backends/udisks2/udisksstorageaccess.cpp:36
#22 0x00007fac57a265a0 in Solid::Backends::UDisks2::Device::createDeviceInterface (this=0x40c4dc0, type=<optimized out>) at ../../../src/solid/devices/backends/udisks2/udisksdevice.cpp:174
#23 0x00007fac579f099f in Solid::Device::asDeviceInterface (this=this@entry=0x7ffea8f9cdb0, type=type@entry=@0x7ffea8f9cd1c: Solid::DeviceInterface::StorageAccess) at ../../../src/solid/devices/frontend/device.cpp:154
#24 0x000000000042bf1f in as<Solid::StorageAccess> (this=0x7ffea8f9cdb0) at /usr/include/KF5/Solid/solid/device.h:247
#25 Baloo::StorageDevices::createCacheEntry (this=this@entry=0x265b8e0, dev=...) at ../../../src/file/storagedevices.cpp:80
#26 0x000000000042c165 in Baloo::StorageDevices::slotSolidDeviceAdded (this=0x265b8e0, udi=...) at ../../../src/file/storagedevices.cpp:97
#27 0x00007fac565bf9c9 in QMetaObject::activate (sender=0x266d430, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffea8f9cf10) at kernel/qobject.cpp:3716
#28 0x00007fac565c0057 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fac57c7e940 <Solid::DeviceNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffea8f9cf10) at kernel/qobject.cpp:3582
#29 0x00007fac579f0f02 in Solid::DeviceNotifier::deviceAdded (this=<optimized out>, _t1=...) at ./moc_devicenotifier.cpp:135
#30 0x00007fac565bf9c9 in QMetaObject::activate (sender=sender@entry=0x266e1d0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffea8f9d040) at kernel/qobject.cpp:3716
#31 0x00007fac565c0057 in QMetaObject::activate (sender=sender@entry=0x266e1d0, m=m@entry=0x7fac57c88520 <Solid::Ifaces::DeviceManager::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffea8f9d040) at kernel/qobject.cpp:3582
#32 0x00007fac57a4b7f2 in Solid::Ifaces::DeviceManager::deviceAdded (this=this@entry=0x266e1d0, _t1=...) at moc_devicemanager.cpp:135
#33 0x00007fac57a1f55b in Solid::Backends::UDisks2::Manager::slotInterfacesAdded (this=0x266e1d0, object_path=..., interfaces_and_properties=...) at ../../../src/solid/devices/backends/udisks2/udisksmanager.cpp:197
#34 0x00007fac57a4fc9d in Solid::Backends::UDisks2::Manager::qt_static_metacall (_o=0xcb2, _c=3250, _id=6, _a=0xffffffffffffffff) at moc_udisksmanager.cpp:86
#35 0x00007fac565bf9c9 in QMetaObject::activate (sender=0x266e1e8, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffea8f9d2a0) at kernel/qobject.cpp:3716
#36 0x00007fac565c0057 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fac57c889e0 <OrgFreedesktopDBusObjectManagerInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffea8f9d2a0) at kernel/qobject.cpp:3582
#37 0x00007fac57a4a117 in OrgFreedesktopDBusObjectManagerInterface::InterfacesAdded (this=<optimized out>, _t1=..., _t2=...) at moc_manager.cpp:173
#38 0x00007fac57a4ffeb in OrgFreedesktopDBusObjectManagerInterface::qt_static_metacall (_o=0x266e1e8, _c=3250, _id=6, _a=0x7ffea8f9d4c0) at moc_manager.cpp:89
#39 0x00007fac57a54643 in OrgFreedesktopDBusObjectManagerInterface::qt_metacall (this=0x266e1e8, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffea8f9d4c0) at moc_manager.cpp:159
#40 0x00007fac593115c7 in QDBusConnectionPrivate::deliverCall (this=0xcb2, object=0xcb2, msg=..., metaTypes=..., slotIdx=1202743296) at qdbusintegrator.cpp:993
#41 0x00007fac565c073a in QObject::event (this=0x266e1e8, e=<optimized out>) at kernel/qobject.cpp:1245
#42 0x00007fac56e98b2c in QApplicationPrivate::notify_helper (this=0x25f0150, receiver=0x266e1e8, e=0x2a0fb90) at kernel/qapplication.cpp:3720
#43 0x00007fac56e9e000 in QApplication::notify (this=0x7ffea8f9dc00, receiver=0x266e1e8, e=0x2a0fb90) at kernel/qapplication.cpp:3503
#44 0x00007fac5658ec2b in QCoreApplication::notifyInternal (this=0x7ffea8f9dc00, receiver=0x266e1e8, event=event@entry=0x2a0fb90) at kernel/qcoreapplication.cpp:935
#45 0x00007fac56590c9b in sendEvent (event=0x2a0fb90, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#46 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x25ecf20) at kernel/qcoreapplication.cpp:1552
#47 0x00007fac56591298 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1410
#48 0x00007fac565e7843 in postEventSourceDispatch (s=0x261ab80) at kernel/qeventdispatcher_glib.cpp:271
#49 0x00007fac50493c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007fac50493f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007fac50493fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#52 0x00007fac565e7c57 in QEventDispatcherGlib::processEvents (this=0x261ece0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#53 0x00007fac5658c3e2 in QEventLoop::exec (this=this@entry=0x7ffea8f9da70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#54 0x00007fac5659402c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#55 0x00007fac568d331c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#56 0x00007fac56e947a5 in QApplication::exec () at kernel/qapplication.cpp:2956
#57 0x0000000000417477 in main (argc=1, argv=<optimized out>) at ../../../src/file/main.cpp:101

Reported using DrKonqi
Comment 1 zohn.joidberg 2015-09-04 21:24:46 UTC
Created attachment 94403 [details]
backtrace of plasma crash which happened at the same time

Apparently plasma crashed at the same time as Baloo. I'm attaching the corresponding backtrace.
Comment 2 zohn.joidberg 2015-09-04 21:39:06 UTC
Created attachment 94404 [details]
Another crash after re-attempting partitioning

Another Plasma crash after re-attempting partitioning.
Baloo search was disabled beforehand this time.
Comment 3 zohn.joidberg 2015-09-14 22:42:32 UTC
"Workaround" for the partitioning:
I've had several more plasma crashes since last time, whether using the KDE partition manager or the gnome-disks.
gnome-disks tended to always crash while trying to create the second ext4 encrypted partition on the flash drive, after having created a first FAT32 partition.
The error message seemed to always be:
"Error wiping newly created partition /dev/sdb2: Command-line `wipefs
-a "/dev/sdb2"' exited with non-zero exit status 1: wipefs: error:
/dev/sdb2: probing initialization failed: No such file or directory
 (udisks-error-quark, 0)"
As a workaround, I installed openbox to run gnome-disks from there, but the crash still happened.
Based on this https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767457 , I ran the failed wipefs command manually and then successfully created the encrypted partition from within gnome-disks.

Anyway, while it seems baloo/plasma were not behind the partitioning failure, they still seem to have crashed because of it.
[although despite running openbox, some KDE stuff was running:
$  ps ax | grep kde
   63 ?        S      0:00 [kdevtmpfs]
10242 ?        Sl     0:00 /usr/bin/kded5
10246 ?        Ss     0:00 kdeinit5: Running...       
10247 ?        Sl     0:00 klauncher [kdeinit5] --fd=8
10546 ?        Ss     0:00 kdeinit4: kdeinit4 Running...
10547 ?        S      0:00 kdeinit4: klauncher [kdeinit] --fd=8
10553 ?        S      0:00 kdeinit4: kded4 [kdeinit]  
10614 ?        Sl     0:00 /usr/bin/kded5
10618 ?        Ss     0:00 kdeinit5: Running...       
10619 ?        Sl     0:00 klauncher [kdeinit5] --fd=8
12388 pts/1    S+     0:00 grep kde
]
Comment 4 zohn.joidberg 2015-09-14 22:45:55 UTC
Some dmesg output. It seems there was a kdesu segfault.

[  140.310050] usb 2-1.2: new high-speed USB device number 4 using ehci-pci
[  140.404754] usb 2-1.2: New USB device found, idVendor=090c, idProduct=1000
[  140.404762] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  140.404765] usb 2-1.2: SerialNumber: B1301140000232
[  140.482604] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[  140.482858] scsi host6: usb-storage 2-1.2:1.0
[  140.483036] usbcore: registered new interface driver usb-storage
[  140.531512] usbcore: registered new interface driver uas
[  141.714969] scsi 6:0:0:0: Direct-Access                               1100 PQ: 0 ANSI: 4
[  141.715511] sd 6:0:0:0: Attached scsi generic sg2 type 0
[  141.716139] sd 6:0:0:0: [sdb] 15810560 512-byte logical blocks: (8.09 GB/7.53 GiB)
[  141.717041] sd 6:0:0:0: [sdb] Write Protect is off
[  141.717059] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  141.717997] sd 6:0:0:0: [sdb] No Caching mode page found
[  141.718004] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[  141.722644]  sdb: sdb1 sdb2
[  141.725965] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[  147.029736] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
[  167.558906] show_signal_msg: 21 callbacks suppressed
[  167.558915] kdesu[2711]: segfault at 20 ip 00007f2d59ee90c3 sp 00007fff46adf830 error 4 in libQt5Core.so.5.4.1[7f2d59e63000+533000]
[  266.962537] usb 2-1.2: USB disconnect, device number 4
[  292.020764] usb 2-1.2: new high-speed USB device number 5 using ehci-pci
[  292.115401] usb 2-1.2: New USB device found, idVendor=058f, idProduct=6387
[  292.115408] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  292.115412] usb 2-1.2: Product: Mass Storage Device
[  292.115415] usb 2-1.2: Manufacturer: JetFlash
[  292.115417] usb 2-1.2: SerialNumber: 487MV6PF
[  292.115980] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[  292.116283] scsi host7: usb-storage 2-1.2:1.0
[  293.114859] scsi 7:0:0:0: Direct-Access     JetFlash Transcend 8GB    8.07 PQ: 0 ANSI: 2
[  293.115367] sd 7:0:0:0: Attached scsi generic sg2 type 0
[  293.116528] sd 7:0:0:0: [sdb] 15687680 512-byte logical blocks: (8.03 GB/7.48 GiB)
[  293.117147] sd 7:0:0:0: [sdb] Write Protect is off
[  293.117155] sd 7:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  293.117783] sd 7:0:0:0: [sdb] No Caching mode page found
[  293.117789] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  293.223778]  sdb: sdb1 sdb2
[  293.226930] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[  303.608719] usb 2-1.2: USB disconnect, device number 5
[  471.149675] usb 2-1.2: new high-speed USB device number 6 using ehci-pci
[  471.244756] usb 2-1.2: New USB device found, idVendor=058f, idProduct=6387
[  471.244763] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  471.244766] usb 2-1.2: Product: Mass Storage Device
[  471.244769] usb 2-1.2: Manufacturer: JetFlash
[  471.244771] usb 2-1.2: SerialNumber: 487MV6PF
[  471.245346] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[  471.245839] scsi host8: usb-storage 2-1.2:1.0
[  472.247845] scsi 8:0:0:0: Direct-Access     JetFlash Transcend 8GB    8.07 PQ: 0 ANSI: 2
[  472.248362] sd 8:0:0:0: Attached scsi generic sg2 type 0
[  472.249706] sd 8:0:0:0: [sdb] 15687680 512-byte logical blocks: (8.03 GB/7.48 GiB)
[  472.250416] sd 8:0:0:0: [sdb] Write Protect is off
[  472.250423] sd 8:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  472.251019] sd 8:0:0:0: [sdb] No Caching mode page found
[  472.251026] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[  472.354446]  sdb: sdb1 sdb2
[  472.357388] sd 8:0:0:0: [sdb] Attached SCSI removable disk
[ 1956.524794] usb 2-1.2: USB disconnect, device number 6
[ 1958.517748] usb 2-1.2: new high-speed USB device number 7 using ehci-pci
[ 1958.612302] usb 2-1.2: New USB device found, idVendor=058f, idProduct=6387
[ 1958.612309] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1958.612313] usb 2-1.2: Product: Mass Storage Device
[ 1958.612316] usb 2-1.2: Manufacturer: JetFlash
[ 1958.612318] usb 2-1.2: SerialNumber: 487MV6PF
[ 1958.612874] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[ 1958.613152] scsi host9: usb-storage 2-1.2:1.0
[ 1959.611996] scsi 9:0:0:0: Direct-Access     JetFlash Transcend 8GB    8.07 PQ: 0 ANSI: 2
[ 1959.612743] sd 9:0:0:0: Attached scsi generic sg2 type 0
[ 1959.613720] sd 9:0:0:0: [sdb] 15687680 512-byte logical blocks: (8.03 GB/7.48 GiB)
[ 1959.614372] sd 9:0:0:0: [sdb] Write Protect is off
[ 1959.614380] sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 1959.614998] sd 9:0:0:0: [sdb] No Caching mode page found
[ 1959.615006] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[ 1959.715460]  sdb: sdb1 sdb2
[ 1959.718581] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[ 1987.714141]  sdb: sdb2
[ 2001.942414]  sdb:
[ 2055.759865]  sdb: sdb1
[ 2055.859544]  sdb: sdb1
[ 2101.335844]  sdb: sdb1 sdb2
[ 2670.551296] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
[ 2736.908859] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
Comment 5 Vishesh Handa 2015-09-15 21:15:36 UTC

*** This bug has been marked as a duplicate of bug 345871 ***