Ticket #1730 (closed defect: fixed in core)

Opened 16 months ago

Last modified 16 months ago

[ffalarms] Segmentation fault

Reported by: skupko Owned by: mrmoku
Priority: major Milestone:
Component: SHR Image Version: SHR-core
Keywords: ffalarms Cc:

Description

ffalarms are crashing during new alarm definition.

root@om-gta02:~# /usr/bin/ffalarms -s 06:45
Segmentation fault
root@om-gta02:~# cat /etc/shr-version 
SHR 20120118
Built from branch: shr
Revision: d884dd499fbcf0d1642e25d046ab959358996ab4

Change History

comment:1 Changed 16 months ago by skupko

Fix available:
This is due missing zone.tab file:

root@om-gta02:~# strace /usr/bin/ffalarms -s 06:45
execve("/usr/bin/ffalarms", ["/usr/bin/ffalarms", "-s", "06:45"], [/* 19 vars */]) = 0
brk(0)                                  = 0x2c000
uname({sys="Linux", node="om-gta02", ...}) = 0
<some lines here>
open("/home/root/.ffalarms/alarms", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/timezone", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=18, ...}) = 0
read(3, "Europe/Bratislava\n", 18)      = 18
close(3)                                = 0
access("/usr/share/zoneinfo/zone.tab", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/zoneinfo/zone.tab", R_OK) = -1 ENOENT (No such file or directory)
access("/etc/zoneinfo/zone.tab", R_OK)  = -1 ENOENT (No such file or directory)
access("/usr/share/lib/zoneinfo/zone.tab", R_OK) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault

Creation of symbolic link fix that issue:

root@om-gta02:~# cd /usr/share/zoneinfo
root@om-gta02:/usr/share/zoneinfo# ln -s /usr/share/fsodatad/zone.tab
root@om-gta02:/usr/share/zoneinfo# ls -la zone.tab 
lrwxrwxrwx    1 root     root            28 Feb  2 00:26 zone.tab -> /usr/share/fsodatad/zone.tab
root@om-gta02:/usr/share/zoneinfo# /usr/bin/ffalarms -s 06:45
root@om-gta02:/usr/share/zoneinfo# ffalarms -l    
# Alarms:
4f29ca4d.121a73bd@om-gta02      Thu Feb 02 06:45:00 2012 (dtstart:20120202T064500)
# Scheduled:
 1328161500  Thu Feb 02 06:45:00 2012 (4f29ca4d.121a73bd@om-gta02)

comment:2 Changed 16 months ago by GNUtoo

  • Status changed from new to closed
  • Resolution set to fixed in core

it's fixed now(by JaMa?).

Denis.

Note: See TracTickets for help on using tickets.