Static plug-ins cause a crash if certain directories are missing

Bug #506414 reported by Bogdan Marinov
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
High
Unassigned

Bug Description

(Everything applies to the development version on Ubuntu, but, as far as I can remember, the same has happened on Windows.)

When Stellarium is run, some statically linked plug-ins try to access their subdirectory in ~/.stellarium/modules. If the /modules directory or the plug-in's subdirectory does not exist, Stellarium crashes with a segmentation fault at this point.

This has been confirmed by building and running for the Satellites plug-in, but the issue can occur with any plug-in that stores any kind of resource in ~/.stellarium/modules/PluginName.

Edited to add: Confirmed also with Oculars.

Tags: plug-ins
description: updated
Revision history for this message
Fabien Chéreau (xalioth) wrote :

I fixed that for Satellites, and Tim said he fixed that for Oculars. I added a new method in StelFileMgr for handling that: StelFileMgr::makeSureDirExistsAndIsWritable()

Changed in stellarium:
status: Confirmed → In Progress
Revision history for this message
gzotti (georg-zotti) wrote : Re: [Bug 506414] Re: Static plug-ins cause a crash if certain directories are missing

Hi!

I am testing the current SVN (5771) on Windows XP/SP3 (minGW, QT4.6.0).

 Plugins and dirs:
-1) AngleMeasure: no dir; perfect
-2) CompassMarks: no dir; perfect
-3) Logbook: creates dir, but has some other problem,
             crashes on start when active.
-4) Oculars: creates dir, could be tested only once because of
             a frequent crash when object is clicked for identification.
    Great feature! Small Typo: "Magnifacation"-->"Magnification"!
-5) Satellites: seems perfect
-6) TelescopeControl: (without any further configuration,
    no telescope server etc.): loads some defaults, seems to work
    (at least does not disturb).

HTH, Georg.

Changed in stellarium:
status: In Progress → Fix Committed
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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