Nautilus will crash with segfault ... error 4 in libpthread-2.17.so if directory contains zero lenght media files (.flv,.avi,mp4,.mp3,...)

Bug #1251363 reported by Pasi Tarhonen
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

1. expected behaviour:

Open folder to view content

2. What happens

Nautilus crashes with dmesg error as below (same folder /home/pasi/Videot/Areena always triggers crash, maybe there is corrupted files but anyhow I do not expect nautilus to crash):

[472678.901959] nautilus[26573]: segfault at 0 ip 00007fce3b4111c0 sp 00007fce039c78f8 error 4 in libpthread-2.17.so[7fce3b403000+17000]
[472714.624947] nautilus[30260]: segfault at 0 ip 00007f22579e21c0 sp 00007f22200708f8 error 4 in libpthread-2.17.so[7f22579d4000+17000]
[472733.272632] nautilus[31484]: segfault at 0 ip 00007fb267e161c0 sp 00007fb22f5988f8 error 4 in libpthread-2.17.so[7fb267e08000+17000]
[472740.688020] nautilus[31888]: segfault at 0 ip 00007fb1d43ba1c0 sp 00007fb19c04e8f8 error 4 in libpthread-2.17.so[7fb1d43ac000+17000]
[472769.798642] nautilus[577]: segfault at 0 ip 00007f6c992bc1c0 sp 00007f6c60a3e8f8 error 4 in libpthread-2.17.so[7f6c992ae000+17000]
[473265.055300] nautilus[20421]: segfault at 0 ip 00007f4652b451c0 sp 00007f464354e8f8 error 4 in libpthread-2.17.so[7f4652b37000+17000]
[511767.016404] nautilus[32275]: segfault at 0 ip 00007f77316a21c0 sp 00007f76f81c88f8 error 4 in libpthread-2.17.so[7f7731694000+17000]

3. backgroud

ssd&btrfs, scrubbed and checked dev stats ok
Description: Ubuntu 13.10
Release: 13.10
pasi@kotipalvelu:~$ apt-cache policy nautilus
nautilus:
  Asennettu: 1:3.8.2-0ubuntu2
  Ehdokas: 1:3.8.2-0ubuntu2
  Versiotaulukko:
 *** 1:3.8.2-0ubuntu2 0
        500 http://fi.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: nautilus 1:3.8.2-0ubuntu2
ProcVersionSignature: Ubuntu 3.11.0-13.20-generic 3.11.6
Uname: Linux 3.11.0-13-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Thu Nov 14 19:01:23 2013
GsettingsChanges:
 b'org.gnome.nautilus.window-state' b'geometry' b"'1309x998+369+24'"
 b'org.gnome.nautilus.window-state' b'maximized' b'true'
 b'org.gnome.nautilus.window-state' b'sidebar-width' b'191'
InstallationDate: Installed on 2013-04-03 (224 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130402.1)
MarkForUpload: True
SourcePackage: nautilus
UpgradeStatus: Upgraded to saucy on 2013-11-08 (5 days ago)

Revision history for this message
Pasi Tarhonen (pasi-tarhonen) wrote :
information type: Public → Private
information type: Private → Public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
Revision history for this message
Pasi Tarhonen (pasi-tarhonen) wrote :

I have noticed that nautilus crash is related to the thumbnailing process that causes nautilus to crash when trying to process 0 lenght .flv file.

Revision history for this message
Pasi Tarhonen (pasi-tarhonen) wrote :

Same folder that causes Nautilus to crash can be view by remite machine over SMB, because Nautilus do not show thumbnails by default on remote folders.nn

summary: - segfault at 0 ip 00007f77316a21c0 sp 00007f76f81c88f8 error 4 in
- libpthread-2.17.so[7f7731694000+17000]
+ Nautilus will crash with error segfault at 0 ip 00007f77316a21c0 sp
+ 00007f76f81c88f8 error 4 in libpthread-2.17.so[7f7731694000+17000] if
+ directory contains zero lenght flash video files (*.flv) and Nautilus
+ video thumbnailing support is installed
summary: Nautilus will crash with error segfault at 0 ip 00007f77316a21c0 sp
00007f76f81c88f8 error 4 in libpthread-2.17.so[7f7731694000+17000] if
- directory contains zero lenght flash video files (*.flv) and Nautilus
- video thumbnailing support is installed
+ directory contains zero lenght flash video files (*.flv)
Revision history for this message
Tao Wang (dancefire) wrote : Re: Nautilus will crash with error segfault at 0 ip 00007f77316a21c0 sp 00007f76f81c88f8 error 4 in libpthread-2.17.so[7f7731694000+17000] if directory contains zero lenght flash video files (*.flv)

I got same crash. Found similar errors in syslog:

============================
Feb 7 16:55:38 wombat kernel: [80945.469529] pool[28182]: segfault at 0 ip 00007f1a80f651c0 sp 00007f1a51d5c438 error 4 in libpthread-2.17.so[7f1a80f57000+17000]
Feb 7 17:16:05 wombat kernel: [82170.467739] pool[28815]: segfault at 0 ip 00007f64be8fb1c0 sp 00007f648c99a438 error 4 in libpthread-2.17.so[7f64be8ed000+17000]
Feb 7 17:23:48 wombat kernel: [82633.079908] pool[28964]: segfault at 0 ip 00007f33863bf1c0 sp 00007f334940b438 error 4 in libpthread-2.17.so[7f33863b1000+17000]
============================

I was moving files between disks, for more details, I run 'nautilus' from terminal, so I got more information:

============================
sys:1: Warning: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Error removing file: Permission denied
Segmentation fault (core dumped)
============================

So, for me, it because the source file cannot be deleted for permission reason, but anyway, the nautilus shouldn't crash, it should report the permission problem.

Revision history for this message
Rolis (rimku-rolis) wrote :

Nautilus crashes with any 0 size file

Revision history for this message
Pasi Tarhonen (pasi-tarhonen) wrote :

I do not get Nautilus to crash with ANY zero length file like:

1. touch test, touch test.doc, touch.ppt...

2. open directory that contains these zero length test files --> no crash

But if filename (extension) makes file to be media type then crash happens.

3. touch test.flv --> crash

4. touch test.mp4 --> crash

5. touch test.mp3 --> crash

6. touch test.avi --> crash

and so on, the crash is somehow related to media file "preview" generation I think.

dmesg:

[1376743.693009] nautilus[9409]: segfault at 0 ip 00007fe20809f1c0 sp 00007fe1fc4498f8 error 4 in libpthread-2.17.so[7fe208091000+17000]
[1376891.606639] nautilus[14712]: segfault at 0 ip 00007f13593401c0 sp 00007f13204148f8 error 4 in libpthread-2.17.so[7f1359332000+17000]
[1376911.668554] nautilus[15640]: segfault at 0 ip 00007f099eeb11c0 sp 00007f09712218f8 error 4 in libpthread-2.17.so[7f099eea3000+17000]
[1377082.990648] nautilus[20706]: segfault at 0 ip 00007f307e6e31c0 sp 00007f304b88b8f8 error 4 in libpthread-2.17.so[7f307e6d5000+17000]
[1377212.686114] nautilus[25649]: segfault at 0 ip 00007f8465fb61c0 sp 00007f842d4e58f8 error 4 in libpthread-2.17.so[7f8465fa8000+17000]
[1377522.756313] nautilus[4267]: segfault at 0 ip 00007f672fb091c0 sp 00007f66f68248f8 error 4 in libpthread-2.17.so[7f672fafb000+17000]

summary: Nautilus will crash with error segfault at 0 ip 00007f77316a21c0 sp
00007f76f81c88f8 error 4 in libpthread-2.17.so[7f7731694000+17000] if
- directory contains zero lenght flash video files (*.flv)
+ directory contains zero lenght media files (.flv,.avi,mp4,.mp3,...)
summary: - Nautilus will crash with error segfault at 0 ip 00007f77316a21c0 sp
- 00007f76f81c88f8 error 4 in libpthread-2.17.so[7f7731694000+17000] if
+ Nautilus will crash with segfault ... error 4 in libpthread-2.17.so if
directory contains zero lenght media files (.flv,.avi,mp4,.mp3,...)
Revision history for this message
Randall Goya (rgoya-a) wrote :

I can confirm that png file with 0 length causes crash

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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