After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 99917 - Nautilus assumes a thread stack size > 64 K
Nautilus assumes a thread stack size > 64 K
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Thumbnails
2.1.x
Other FreeBSD
: High critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-11-29 19:58 UTC by Joe Marcus Clarke
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allocate a larger stack for the thumbnail thread (449 bytes, patch)
2002-11-29 20:03 UTC, Joe Marcus Clarke
none Details | Review

Description Joe Marcus Clarke 2002-11-29 20:00:32 UTC
Package: nautilus
Severity: critical
Version: 2.0.8
Synopsis: Nautilus assumes a thread stack size > 64 K
Bugzilla-Product: nautilus
Bugzilla-Component: Thumbnails

Description:
Description of Problem:
When Nautilus is rendering non-JPEG thumbnails it creates a thread that
allocates a 64 K buffer array.  This allocation causes Nautilus to hang
on FreeBSD where the default thread stack size is only 64 K.

Steps to reproduce the problem:
1. Create a PNG screen shot in your home directory
2. Open your home directory in Nautilus
3. 

Actual Results:
Nautilus will hang on FreeBSD.

Expected Results:
Nautilus should render the thumbnail correctly, and not hang.

How often does this happen?
All the time.

Additional Information:
A patch is forthcoming that corrects the problem by calling
pthread_attr_setstacksize() to make sure the thread stack is large
enough.  I did a 128 K stack size, but this is probably overkill.




------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-11-29 15:00 -------

Reassigning to the default owner of the component, nautilus-maint@bugzilla.gnome.org.

Comment 1 Joe Marcus Clarke 2002-11-29 20:03:18 UTC
Created attachment 12642 [details] [review]
Allocate a larger stack for the thumbnail thread
Comment 2 Joe Marcus Clarke 2002-11-29 20:04:27 UTC
Note, this also affects Nautilus 2.1.3.  The same patch applies.
Comment 3 Alexander Larsson 2002-12-02 10:01:28 UTC
Fixed in CVS.