View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000216 | SkyChart | 1-Software | public | 07-01-23 21:44 | 08-09-18 08:04 |
| Reporter | Stephen Irons | Assigned To | Patrick Chevalley | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | x86 | OS | Linux | OS Version | 2.6 |
| Product Version | 3.0.1.3 SVN | ||||
| Summary | 0000216: Development version 2007-01-21 22:34:11 will only run as root | ||||
| Description | I updated to the latest development version (2007-01-21 22:34:11) following the instructions on the website. When I start skycharts from the command line, the following appears in the terminal: 2007-01-24T09:29:44.654 Start trace 2007-01-24T09:29:44.656 Try language: en, en 2007-01-24T09:29:44.660 Language: English 2007-01-24T09:29:45.301 Access denied and the chart displayed is blank. When I try to change the configuration, a dialog box appears Access Denied. Press OK to ignore..etc and the following stack trace appears on the terminal: WARNING: obsolete call to RecreateWnd for TTreeView Warning: TWinControl.DestroyHandle TreeView1:TTreeView Handle not Allocated TApplication.HandleException Access denied Stack trace: $08162973 $081631C4 $081623F7 $08109AE3 $08135EDB $0811C470 $0818A7C5 $0825E902 $082604C9 $0818A547 $082309D1 $08231046 $0805E970 $08211542 $082198DF $B7D997B3 $B7DCD2F5 If I delete the database ~/cartes_du_ciel/database/cdc.db and restart skycharts, I get the same response. If I delete the database and 'sudo skychart', then it runs as expected. However, the database is owned by root, and all saved charts are owned by root, and running an application as root is a big security risk. If I change database file:group to myself, the I get the Access Denied message again. | ||||
| Tags | No tags attached. | ||||
|
|
I cannot reproduce this problem after a fresh .deb install of 3.0.1.2 and upgrade to 3.0.1.3 using the tar file as root. I am not sure this is related to the database access. This look like a readonly file the program try to open read/write, and all the files in /usr/share/apps/skychart/ are readonly if you are not root. Can you retry with the debug version to get a gdb trace where the problem occur. |
|
|
ironss@ws1974:~/Desktop$ gdb cdc GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) run Starting program: /home/ironss/Desktop/cdc [Thread debugging using libthread_db enabled] [New Thread -1213561168 (LWP 9970)] 2007-01-30T08:55:05.978 Start trace 2007-01-30T08:55:05.980 Try language: en, en 2007-01-30T08:55:05.984 Language: English 2007-01-30T08:55:06.655 Access denied TApplication.HandleException Access denied Stack trace: $08162973 TCDCTIMEZONE__READTIMEZONEFILE, line 8592 of cu_tz.pas $081631C4 TCDCTIMEZONE__SETTIMEZONEFILE, line 519 of cu_tz.pas $081623F7 TCDCTIMEZONE__ASSIGN, line 230 of cu_tz.pas $08109AE3 TCONF_SKYCHART__ASSIGN, line 1053 of u_constant.pas $0811C817 TF_MAIN__SETUPTIMEPAGE, line 1931 of pu_main.pas $0811C6F5 TF_MAIN__SETUPTIMEEXECUTE, line 1915 of pu_main.pas $0818A7C5 $0825E902 TCONTAINEDACTION__EXECUTE, line 110 of ./include/containedaction.inc $082604C9 TCUSTOMACTION__EXECUTE, line 317 of ./include/customaction.inc $0818A547 $081FB2AF TCONTROL__CLICK, line 1960 of ./include/control.inc $082A2BDD TTOOLBUTTON__CLICK, line 591 of ./include/toolbutton.inc $082A1851 TTOOLBUTTON__MOUSEUP, line 118 of ./include/toolbutton.inc $081FAAD0 TCONTROL__DOMOUSEUP, line 1608 of ./include/control.inc $081FB13F TCONTROL__WMLBUTTONUP, line 1903 of ./include/control.inc $0805E970 $081FA9AE TCONTROL__WNDPROC, line 1561 of ./include/control.inc Looks as if CDC is trying to open the timezone data read-write. I changed all files to read-writer (chmod go+rw -R zoneinfo/*) and it now works. So, what has gone wrong with the permissions. I deleted all the zoneinfo files, then re-installed them and ran cdc again: Access denied. Using ls -alr zoneinfo/*, all files seem to have permissions -rw-r--r--. Sure CDC is not really going to write to the zoneinfo files? |
|
|
Deleted all zoneinfo files again, and re-installed them. Changed only zoneinfo/Pacific/Auckland to rw (sudo chmod go+rw zoneinfo/Pacific/Auckland). No access denied! Changed observatory to another one in a different timezone (Africa/Johannesburg). Restarted CDC: Access denied. Changed its permissions to go+rw: works as expected. |
|
|
Thank you for the trace, what I need is to force the file open readonly, even the program never try to write this file. I do the correction tonight. The strange point is I not have this problem. Which Linux distribution do you use? do you activated SELinux ? |
|
|
must be fixed by revision 677: http://svn.origo.ethz.ch/viewvc/skychart?view=rev&revision=677 please reopen if still problem with next snapshot. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 07-01-23 21:44 | Stephen Irons | New Issue | |
| 07-01-29 14:52 | Patrick Chevalley | Note Added: 0000350 | |
| 07-01-29 14:52 | Patrick Chevalley | Assigned To | => Patrick Chevalley |
| 07-01-29 14:52 | Patrick Chevalley | Status | new => feedback |
| 07-01-29 21:24 | Stephen Irons | Note Added: 0000351 | |
| 07-01-29 21:47 | Stephen Irons | Note Added: 0000352 | |
| 07-01-30 08:02 | Patrick Chevalley | Note Added: 0000353 | |
| 07-01-30 17:49 | Patrick Chevalley | Status | feedback => resolved |
| 07-01-30 17:49 | Patrick Chevalley | Resolution | open => fixed |
| 07-01-30 17:49 | Patrick Chevalley | Note Added: 0000354 | |
| 08-09-18 08:04 | Patrick Chevalley | Status | resolved => closed |