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 321758 - [PATCH] Atomix crashes on startup if ~/.atomix does not exist
[PATCH] Atomix crashes on startup if ~/.atomix does not exist
Status: RESOLVED FIXED
Product: atomix
Classification: Other
Component: atomix
1.2.x
Other All
: High critical
: ---
Assigned To: Atomix Maintainer(s)
Atomix Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2005-11-17 22:52 UTC by Joe Marcus Clarke
Modified: 2005-11-18 12:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix crash in level-manager (343 bytes, patch)
2005-11-17 22:53 UTC, Joe Marcus Clarke
none Details | Review
Fix crash in theme-manager (369 bytes, patch)
2005-11-17 22:54 UTC, Joe Marcus Clarke
none Details | Review

Description Joe Marcus Clarke 2005-11-17 22:52:01 UTC
Steps to reproduce:
1. Delete ~/.atomix
2. Start atomix
3. 


Stack trace:
Here's one trace.  Both theme-manager and level-manager have the same bug:

Thread 134610944 (LWP 100244)

  • #0 _pthread_mutex_lock
    at /usr/src/lib/libpthread/thread/thr_mutex.c line 868
  • #1 closedir
    at /usr/src/lib/libc/gen/closedir.c line 61
  • #2 search_level_in_dir
    at level-manager.c line 238
  • #3 level_manager_init_levels
    at level-manager.c line 180
  • #4 main
    at main.c line 441


Other information:
Comment 1 Joe Marcus Clarke 2005-11-17 22:53:56 UTC
Created attachment 54892 [details] [review]
Fix crash in level-manager
Comment 2 Joe Marcus Clarke 2005-11-17 22:54:16 UTC
Created attachment 54893 [details] [review]
Fix crash in theme-manager
Comment 3 Guilherme de Siqueira Pastore 2005-11-18 01:25:56 UTC
Fixed in CVS HEAD. Thanks a lot for your report and patch! However, it seems to
me this would only happen on somewhat broken installations, I suggest you take a
look at yours =)
Comment 4 Joe Marcus Clarke 2005-11-18 03:50:03 UTC
I disagree.  How does a normal from-source installation create ~/.atomix for
each user?  Basically, if I start atomix for the first time on a new account, I
will have no ~/.atomix directory, and this crash will be triggered.  The only
proper fix is to free and close resources that we know to have been properly opened.
Comment 5 Guilherme de Siqueira Pastore 2005-11-18 12:48:14 UTC
For some mysterious reason, I've never had ~/.atomix on my machine, and it
simply works. Anyway, forget it, I've considered it a bug and fixed it anyway =)