Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 728 of 793  Not logged in ELOG logo
ID Date Icon Author Author Emailup Category OS ELOG Version Subject
  1939   Mon Sep 18 20:35:44 2006 Warning Steve Jonessteve.jones@freescale.comBug reportOther2.6.2-1714SVN1714 will not run in 'daemon" mode on Solaris8
On Solaris, SVN1714 will not go into daemon mode. Running the compiled version under TRUSS (which provides a dump of every system call) and shows precisely where elog is failing. I have attached two TRUSS outputs: one where it errors out and the other where it runs but "interactively". Both runs are as root, simply one with and one without the "-D"
Attachment 1: truss-error.out
Base time stamp:  1158604397.0856  [ Mon Sep 18 13:33:17 CDT 2006 ]
 0.0000	execve("/sysadm/www/elog/elogd", 0xFFBEFB94, 0xFFBEFBAC)  argc = 5
 0.0039	resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
 0.0044	open("/var/ld/ld.config", O_RDONLY)		Err#2 ENOENT
 0.0048	stat("/usr/lib/libsocket.so.1", 0xFFBEF4B8)	= 0
 0.0052	open("/usr/lib/libsocket.so.1", O_RDONLY)	= 3
 0.0055	mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF390000
 0.0057	mmap(0x00000000, 114688, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF370000
 0.0059	mmap(0xFF370000, 40558, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF370000
 0.0061	mmap(0xFF38A000, 4365, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 40960) = 0xFF38A000
 0.0064	munmap(0xFF37A000, 65536)			= 0
 0.0066	memcntl(0xFF370000, 14496, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0068	close(3)					= 0
 0.0070	stat("/usr/lib/libnsl.so.1", 0xFFBEF4B8)	= 0
 0.0073	open("/usr/lib/libnsl.so.1", O_RDONLY)		= 3
 0.0075	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0077	mmap(0x00000000, 712704, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF280000
 0.0079	mmap(0xFF280000, 580118, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF280000
 0.0080	mmap(0xFF31E000, 33184, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 581632) = 0xFF31E000
 0.0083	mmap(0xFF328000, 23240, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF328000
 0.0085	munmap(0xFF30E000, 65536)			= 0
 0.0089	memcntl(0xFF280000, 83788, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0091	close(3)					= 0
 0.0093	stat("/usr/lib/libc.so.1", 0xFFBEF4B8)		= 0
 0.0096	open("/usr/lib/libc.so.1", O_RDONLY)		= 3
 0.0098	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0100	mmap(0x00000000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF180000
 0.0101	mmap(0xFF180000, 702456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF180000
 0.0103	mmap(0xFF23C000, 24772, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF23C000
 0.0106	munmap(0xFF22C000, 65536)			= 0
 0.0112	memcntl(0xFF180000, 113528, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0114	close(3)					= 0
 0.0117	stat("/usr/lib/libdl.so.1", 0xFFBEF4B8)		= 0
 0.0119	open("/usr/lib/libdl.so.1", O_RDONLY)		= 3
 0.0121	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0124	mmap(0x00000000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF360000
 0.0125	mmap(0xFF360000, 2302, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF360000
 0.0128	close(3)					= 0
 0.0130	stat("/usr/lib/libmp.so.2", 0xFFBEF4B8)		= 0
 0.0133	open("/usr/lib/libmp.so.2", O_RDONLY)		= 3
 0.0135	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0137	mmap(0x00000000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF340000
 0.0138	mmap(0xFF340000, 11316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF340000
 0.0140	mmap(0xFF354000, 865, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF354000
 0.0141	munmap(0xFF344000, 65536)			= 0
 0.0142	mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF270000
 0.0147	memcntl(0xFF340000, 3124, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0148	close(3)					= 0
 0.0154	stat("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", 0xFFBEF2A0) = 0
 0.0157	open("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", O_RDONLY) = 3
 0.0160	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0162	mmap(0xFF3A501C, 16384, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF260000
 0.0164	mmap(0xFF260000, 13800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF260000
 0.0166	close(3)					= 0
 0.0197	munmap(0xFF390000, 8192)			= 0
 0.0207	getgid()					= 24003 [24003]
 0.0210	getuid()					= 12015124 [12015124]
 0.0212	time()						= 1158604397
 0.0215	brk(0x010E0A80)					= 0
 0.0218	brk(0x010E2A80)					= 0
 0.0224	open("/usr/share/lib/zoneinfo/US/Central", O_RDONLY) = 3
 0.0227	read(3, " T Z i f\0\0\0\0\0\0\0\0".., 8192)	= 1262
 0.0229	close(3)					= 0
 0.0244	open("/sysadm/www/elog/cr-elogd.cfg", O_RDONLY)	= 3
 0.0247	close(3)					= 0
 0.0257	stat("/sysadm/www/elog/cr-elogd.cfg", 0xFFBEF2C0) = 0
 0.0260	brk(0x010E2A80)					= 0
 0.0262	brk(0x010E8A80)					= 0
 0.0270	open("/sysadm/www/elog/cr-elogd.cfg", O_RDONLY)	= 3
 0.0273	lseek(3, 0, SEEK_END)				= 17604
 0.0274	lseek(3, 0, SEEK_SET)				= 0
 0.0275	brk(0x010E8A80)					= 0
 0.0276	brk(0x010ECA80)					= 0
 0.0280	read(3, " [ g l o b a l ]\n # # #".., 17604)	= 17604
 0.0283	close(3)					= 0
 0.0295	brk(0x010ECA80)					= 0
 0.0296	brk(0x010EEA80)					= 0
 0.0308	brk(0x010EEA80)					= 0
 0.0309	brk(0x010F0A80)					= 0
 0.0332	brk(0x010F0A80)					= 0
 0.0334	brk(0x010F2A80)					= 0
 0.0341	stat("/usr/lib/locale/english/english.so.2", 0xFFBEE3A0) Err#2 ENOENT
 0.0355	stat("resources/eloglang.english", 0xFFBEF0B0)	Err#2 ENOENT
 0.0366	stat("crlogbooks", 0xFFBEF430)			= 0
 0.0369	stat("/sysadm/www/elog", 0xFFBEF430)		= 0
 0.0378	brk(0x010F2A80)					= 0
 0.0381	brk(0x0110AA80)					= 0
 0.0383	brk(0x0110AA80)					= 0
 0.0386	brk(0x01122A80)					= 0
 0.0391	so_socket(2, 2, 0, "", 1)			= 3
 0.0395	setsockopt(3, 65535, 4, 0xFFBC989C, 4, 1)	= 0
 0.0398	bind(3, 0xFFBEF380, 16, 3)			= 0
 0.0403	fstat(-1, 0xFFBC95F0)				Err#9 EBADF
 0.0406	open("/dev/conslog", O_WRONLY)			= 4
 0.0411	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0412	fstat(4, 0xFFBC95F0)				= 0
 0.0488	fork()						= 1767
 0.0745	_exit(0)
Attachment 2: truss-good.out
Base time stamp:  1158604336.8725  [ Mon Sep 18 13:32:16 CDT 2006 ]
 0.0000	execve("/sysadm/www/elog/elogd", 0xFFBEFB94, 0xFFBEFBA8)  argc = 4
 0.0038	resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
 0.0043	open("/var/ld/ld.config", O_RDONLY)		Err#2 ENOENT
 0.0048	stat("/usr/lib/libsocket.so.1", 0xFFBEF4B8)	= 0
 0.0050	open("/usr/lib/libsocket.so.1", O_RDONLY)	= 3
 0.0052	mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF390000
 0.0055	mmap(0x00000000, 114688, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF370000
 0.0057	mmap(0xFF370000, 40558, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF370000
 0.0058	mmap(0xFF38A000, 4365, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 40960) = 0xFF38A000
 0.0063	munmap(0xFF37A000, 65536)			= 0
 0.0066	memcntl(0xFF370000, 14496, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0067	close(3)					= 0
 0.0069	stat("/usr/lib/libnsl.so.1", 0xFFBEF4B8)	= 0
 0.0072	open("/usr/lib/libnsl.so.1", O_RDONLY)		= 3
 0.0074	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0076	mmap(0x00000000, 712704, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF280000
 0.0078	mmap(0xFF280000, 580118, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF280000
 0.0079	mmap(0xFF31E000, 33184, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 581632) = 0xFF31E000
 0.0083	mmap(0xFF328000, 23240, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF328000
 0.0084	munmap(0xFF30E000, 65536)			= 0
 0.0089	memcntl(0xFF280000, 83788, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0091	close(3)					= 0
 0.0093	stat("/usr/lib/libc.so.1", 0xFFBEF4B8)		= 0
 0.0095	open("/usr/lib/libc.so.1", O_RDONLY)		= 3
 0.0098	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0100	mmap(0x00000000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF180000
 0.0101	mmap(0xFF180000, 702456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF180000
 0.0103	mmap(0xFF23C000, 24772, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF23C000
 0.0106	munmap(0xFF22C000, 65536)			= 0
 0.0112	memcntl(0xFF180000, 113528, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0114	close(3)					= 0
 0.0117	stat("/usr/lib/libdl.so.1", 0xFFBEF4B8)		= 0
 0.0120	open("/usr/lib/libdl.so.1", O_RDONLY)		= 3
 0.0122	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0124	mmap(0x00000000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF360000
 0.0126	mmap(0xFF360000, 2302, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF360000
 0.0129	close(3)					= 0
 0.0131	stat("/usr/lib/libmp.so.2", 0xFFBEF4B8)		= 0
 0.0134	open("/usr/lib/libmp.so.2", O_RDONLY)		= 3
 0.0136	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0138	mmap(0x00000000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF340000
 0.0140	mmap(0xFF340000, 11316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF340000
 0.0141	mmap(0xFF354000, 865, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF354000
 0.0142	munmap(0xFF344000, 65536)			= 0
 0.0144	mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF270000
 0.0148	memcntl(0xFF340000, 3124, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0150	close(3)					= 0
 0.0153	stat("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", 0xFFBEF2A0) = 0
 0.0157	open("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", O_RDONLY) = 3
 0.0159	mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
 0.0163	mmap(0xFF3A501C, 16384, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFF260000
 0.0165	mmap(0xFF260000, 13800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF260000
 0.0167	close(3)					= 0
 0.0198	munmap(0xFF390000, 8192)			= 0
 0.0208	getgid()					= 24003 [24003]
 0.0211	getuid()					= 12015124 [12015124]
 0.0213	time()						= 1158604336
 0.0216	brk(0x010E0A80)					= 0
 0.0220	brk(0x010E2A80)					= 0
 0.0225	open("/usr/share/lib/zoneinfo/US/Central", O_RDONLY) = 3
 0.0228	read(3, " T Z i f\0\0\0\0\0\0\0\0".., 8192)	= 1262
 0.0231	close(3)					= 0
 0.0244	open("/sysadm/www/elog/cr-elogd.cfg", O_RDONLY)	= 3
 0.0248	close(3)					= 0
 0.0251	stat("/sysadm/www/elog/cr-elogd.cfg", 0xFFBEF2C0) = 0
 0.0254	brk(0x010E2A80)					= 0
 0.0255	brk(0x010E8A80)					= 0
 0.0263	open("/sysadm/www/elog/cr-elogd.cfg", O_RDONLY)	= 3
 0.0266	lseek(3, 0, SEEK_END)				= 17604
 0.0267	lseek(3, 0, SEEK_SET)				= 0
 0.0269	brk(0x010E8A80)					= 0
 0.0270	brk(0x010ECA80)					= 0
 0.0274	read(3, " [ g l o b a l ]\n # # #".., 17604)	= 17604
 0.0276	close(3)					= 0
 0.0288	brk(0x010ECA80)					= 0
 0.0290	brk(0x010EEA80)					= 0
 0.0301	brk(0x010EEA80)					= 0
 0.0303	brk(0x010F0A80)					= 0
 0.0325	brk(0x010F0A80)					= 0
 0.0327	brk(0x010F2A80)					= 0
 0.0335	stat("/usr/lib/locale/english/english.so.2", 0xFFBEE3A0) Err#2 ENOENT
 0.0344	stat("resources/eloglang.english", 0xFFBEF0B0)	Err#2 ENOENT
 0.0353	stat("crlogbooks", 0xFFBEF430)			= 0
 0.0356	stat("/sysadm/www/elog", 0xFFBEF430)		= 0
 0.0367	brk(0x010F2A80)					= 0
 0.0370	brk(0x0110AA80)					= 0
 0.0372	brk(0x0110AA80)					= 0
 0.0374	brk(0x01122A80)					= 0
 0.0379	so_socket(2, 2, 0, "", 1)			= 3
 0.0384	setsockopt(3, 65535, 4, 0xFFBC989C, 4, 1)	= 0
 0.0386	bind(3, 0xFFBEF380, 16, 3)			= 0
 0.0394	write(2, " e l o g d   2 . 6 . 2  ".., 40)	= 40
 0.0403	write(2, " r e v i s i o n   1 7 1".., 14)	= 14
 0.0408	getuid()					= 12015124 [12015124]
 0.0410	sigaction(SIGTERM, 0xFFBC9628, 0xFFBC96A8)	= 0
 0.0413	sigaction(SIGINT, 0xFFBC9628, 0xFFBC96A8)	= 0
 0.0414	sigaction(SIGPIPE, 0xFFBC9628, 0xFFBC96A8)	= 0
 0.0415	sigaction(SIGHUP, 0xFFBC9628, 0xFFBC96A8)	= 0
 0.0416	getuid()					= 12015124 [12015124]
 0.0418	stat("/sysadm/www/elog/cr-elogd.cfg", 0xFFBC95E0) = 0
 0.0422	stat("/usr/lib/locale/english/english.so.2", 0xFFBC86C0) Err#2 ENOENT
 0.0430	stat("/sysadm/www/elog/resources/eloglang.english", 0xFFBC93D0) Err#2 ENOENT
 0.0435	write(2, " I n d e x i n g   l o g".., 22)	= 22
 0.0448	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0452	stat64("./", 0xFFBC91C8)			= 0
 0.0455	stat64("/", 0xFFBC9130)				= 0
 0.0463	open64("./../", O_RDONLY|O_NDELAY)		= 4
 0.0466	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0468	fstat64(4, 0xFFBC8A50)				= 0
 0.0469	fstat64(4, 0xFFBC91C8)				= 0
 0.0471	getdents64(4, 0x010E4AA0, 1048)			= 224
 0.0473	close(4)					= 0
 0.0474	open64("./../../", O_RDONLY|O_NDELAY)		= 4
 0.0477	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0478	fstat64(4, 0xFFBC8A50)				= 0
 0.0479	fstat64(4, 0xFFBC91C8)				= 0
 0.0481	open("/etc/mnttab", O_RDONLY)			= 5
 0.0484	fstat64(5, 0xFFBC8710)				= 0
 0.0485	ioctl(5, TCGETA, 0xFFBC869C)			Err#22 EINVAL
 0.0499	read(5, " / d e v / d s k / c 0 t".., 512)	= 512
 0.0503	ioctl(5, (('m'<<8)|1), 0xFF23EC30)		= 0
 0.0504	ioctl(5, (('m'<<8)|2), 0x010EF498)		= 0
 0.0507	read(5, " 8 6 0 0 7 5 5\n a u t o".., 512)	= 512
 0.0511	lstat64("/sysadm/www", 0xFFBC8930)		= 0
 0.0513	lstat64("/sysadm/www/..", 0xFFBC8930)		= 0
 0.0516	llseek(5, 0xFFFFFFFFFFFFFEBD, SEEK_CUR)		= 701
 0.0518	close(5)					= 0
 0.0519	close(4)					= 0
 0.0526	chdir("crlogbooks/TX30-CL/")			= 0
 0.0529	chdir("/sysadm/www/elog")			= 0
 0.0536	open64("crlogbooks/TX30-CL/", O_RDONLY|O_NDELAY) = 4
 0.0539	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0540	fstat64(4, 0xFFBC8C58)				= 0
 0.0542	getdents64(4, 0x010E4AA0, 1048)			= 80
 0.0544	llseek(4, 0, SEEK_CUR)				= 80
 0.0545	llseek(4, 0, SEEK_CUR)				= 80
 0.0546	getdents64(4, 0x010E4AA0, 1048)			= 0
 0.0548	close(4)					= 0
 0.0557	open("crlogbooks/TX30-CL/060914a.log", O_RDONLY) = 4
 0.0559	lseek(4, 0, SEEK_END)				= 5863
 0.0562	lseek(4, 0, SEEK_SET)				= 0
 0.0565	read(4, " $ @ M I D @ $ :   1\n D".., 5863)	= 5863
 0.0567	close(4)					= 0
 0.0572	time()						= 1158604336
 0.0582	time()						= 1158604336
 0.0590	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0593	stat64("./", 0xFFBC91C8)			= 0
 0.0595	stat64("/sysadm/www/elog", 0xFFBC9130)		= 0
 0.0602	chdir("crlogbooks/TX11-CL/")			= 0
 0.0605	chdir("/sysadm/www/elog")			= 0
 0.0613	open64("crlogbooks/TX11-CL/", O_RDONLY|O_NDELAY) = 4
 0.0616	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0618	fstat64(4, 0xFFBC8C58)				= 0
 0.0619	getdents64(4, 0x010E4AA0, 1048)			= 48
 0.0620	getdents64(4, 0x010E4AA0, 1048)			= 0
 0.0621	close(4)					= 0
 0.0626	open64("crlogbooks/TX11-CL/", O_RDONLY|O_NDELAY) = 4
 0.0629	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0630	fstat64(4, 0xFFBC8C58)				= 0
 0.0631	getdents64(4, 0x010E4AA0, 1048)			= 48
 0.0633	getdents64(4, 0x010E4AA0, 1048)			= 0
 0.0634	close(4)					= 0
 0.0637	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0639	stat64("./", 0xFFBC91C8)			= 0
 0.0641	stat64("/sysadm/www/elog", 0xFFBC9130)		= 0
 0.0648	chdir("crlogbooks/TX32-CL/")			= 0
 0.0650	chdir("/sysadm/www/elog")			= 0
 0.0657	open64("crlogbooks/TX32-CL/", O_RDONLY|O_NDELAY) = 4
 0.0659	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0662	fstat64(4, 0xFFBC8C58)				= 0
 0.0664	getdents64(4, 0x010E52D8, 1048)			= 80
 0.0665	llseek(4, 0, SEEK_CUR)				= 80
 0.0666	llseek(4, 0, SEEK_CUR)				= 80
 0.0667	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0668	close(4)					= 0
 0.0677	open("crlogbooks/TX32-CL/060912a.log", O_RDONLY) = 4
 0.0680	lseek(4, 0, SEEK_END)				= 2925
 0.0681	lseek(4, 0, SEEK_SET)				= 0
 0.0683	read(4, " $ @ M I D @ $ :   1\n D".., 2925)	= 2925
 0.0685	close(4)					= 0
 0.0689	time()						= 1158604336
 0.0697	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0699	stat64("./", 0xFFBC91C8)			= 0
 0.0702	stat64("/sysadm/www/elog", 0xFFBC9130)		= 0
 0.0708	chdir("crlogbooks/AZ34-CL/")			= 0
 0.0711	chdir("/sysadm/www/elog")			= 0
 0.0718	open64("crlogbooks/AZ34-CL/", O_RDONLY|O_NDELAY) = 4
 0.0720	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0722	fstat64(4, 0xFFBC8C58)				= 0
 0.0723	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0724	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0725	close(4)					= 0
 0.0731	open64("crlogbooks/AZ34-CL/", O_RDONLY|O_NDELAY) = 4
 0.0733	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0734	fstat64(4, 0xFFBC8C58)				= 0
 0.0736	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0737	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0738	close(4)					= 0
 0.0741	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0743	stat64("./", 0xFFBC91C8)			= 0
 0.0745	stat64("/sysadm/www/elog", 0xFFBC9130)		= 0
 0.0751	chdir("crlogbooks/AZ50-CL/")			= 0
 0.0754	chdir("/sysadm/www/elog")			= 0
 0.0762	open64("crlogbooks/AZ50-CL/", O_RDONLY|O_NDELAY) = 4
 0.0765	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0766	fstat64(4, 0xFFBC8C58)				= 0
 0.0768	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0769	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0770	close(4)					= 0
 0.0776	open64("crlogbooks/AZ50-CL/", O_RDONLY|O_NDELAY) = 4
 0.0778	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0779	fstat64(4, 0xFFBC8C58)				= 0
 0.0781	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0782	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0783	close(4)					= 0
 0.0786	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0788	stat64("./", 0xFFBC91C8)			= 0
 0.0790	stat64("/sysadm/www/elog", 0xFFBC9130)		= 0
 0.0797	chdir("crlogbooks/FL29-CL/")			= 0
 0.0799	chdir("/sysadm/www/elog")			= 0
 0.0806	open64("crlogbooks/FL29-CL/", O_RDONLY|O_NDELAY) = 4
 0.0808	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0809	fstat64(4, 0xFFBC8C58)				= 0
 0.0811	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0812	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0813	close(4)					= 0
 0.0818	open64("crlogbooks/FL29-CL/", O_RDONLY|O_NDELAY) = 4
 0.0821	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0822	fstat64(4, 0xFFBC8C58)				= 0
 0.0823	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0825	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0826	close(4)					= 0
 0.0828	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0831	stat64("./", 0xFFBC91C8)			= 0
 0.0833	stat64("/sysadm/www/elog", 0xFFBC9130)		= 0
 0.0839	chdir("crlogbooks/IL108-CL/")			= 0
 0.0842	chdir("/sysadm/www/elog")			= 0
 0.0849	open64("crlogbooks/IL108-CL/", O_RDONLY|O_NDELAY) = 4
 0.0851	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0852	fstat64(4, 0xFFBC8C58)				= 0
 0.0854	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0855	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0856	close(4)					= 0
 0.0862	open64("crlogbooks/IL108-CL/", O_RDONLY|O_NDELAY) = 4
 0.0865	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0866	fstat64(4, 0xFFBC8C58)				= 0
 0.0867	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0869	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0870	close(4)					= 0
 0.0873	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0875	stat64("./", 0xFFBC91C8)			= 0
 0.0877	stat64("/sysadm/www/elog", 0xFFBC9130)		= 0
 0.0884	chdir("crlogbooks/ZIL05-CL/")			= 0
 0.0887	chdir("/sysadm/www/elog")			= 0
 0.0893	open64("crlogbooks/ZIL05-CL/", O_RDONLY|O_NDELAY) = 4
 0.0896	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0897	fstat64(4, 0xFFBC8C58)				= 0
 0.0898	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0899	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0901	close(4)					= 0
 0.0906	open64("crlogbooks/ZIL05-CL/", O_RDONLY|O_NDELAY) = 4
 0.0908	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0910	fstat64(4, 0xFFBC8C58)				= 0
 0.0911	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0912	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0913	close(4)					= 0
 0.0916	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0918	stat64("./", 0xFFBC91C8)			= 0
 0.0921	stat64("/sysadm/www/elog", 0xFFBC9130)		= 0
 0.0927	chdir("crlogbooks/Template-CL/")		= 0
 0.0930	chdir("/sysadm/www/elog")			= 0
 0.0936	open64("crlogbooks/Template-CL/", O_RDONLY|O_NDELAY) = 4
 0.0938	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0940	fstat64(4, 0xFFBC8C58)				= 0
 0.0941	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0942	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0944	close(4)					= 0
 0.0949	open64("crlogbooks/Template-CL/", O_RDONLY|O_NDELAY) = 4
 0.0951	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0953	fstat64(4, 0xFFBC8C58)				= 0
 0.0954	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0955	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0956	close(4)					= 0
 0.0959	pathconf(".", _PC_PATH_MAX)			= 1024
 0.0962	stat64("./", 0xFFBC91C8)			= 0
 0.0965	stat64("/sysadm/www/elog", 0xFFBC9130)		= 0
 0.0971	chdir("crlogbooks/CR-Announcements/")		= 0
 0.0974	chdir("/sysadm/www/elog")			= 0
 0.0981	open64("crlogbooks/CR-Announcements/", O_RDONLY|O_NDELAY) = 4
 0.0983	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0984	fstat64(4, 0xFFBC8C58)				= 0
 0.0986	getdents64(4, 0x010E52D8, 1048)			= 48
 0.0987	getdents64(4, 0x010E52D8, 1048)			= 0
 0.0988	close(4)					= 0
 0.0994	open64("crlogbooks/CR-Announcements/", O_RDONLY|O_NDELAY) = 4
 0.0996	fcntl(4, F_SETFD, 0x00000001)			= 0
 0.0997	fstat64(4, 0xFFBC8C58)				= 0
 0.0999	getdents64(4, 0x010E52D8, 1048)			= 48
 0.1000	getdents64(4, 0x010E52D8, 1048)			= 0
... 36 more lines ...
  1940   Mon Sep 18 22:09:23 2006 Reply Steve Jonessteve.jones@freescale.comBug reportOther2.6.2-1714Re: SVN1714 will not run in 'daemon" mode on Solaris8

Steve Jones wrote:
On Solaris, SVN1714 will not go into daemon mode. Running the compiled version under TRUSS (which provides a dump of every system call) and shows precisely where elog is failing. I have attached two TRUSS outputs: one where it errors out and the other where it runs but "interactively". Both runs are as root, simply one with and one without the "-D"



Quote:

As a followon, when I do run SVN1714 as a detached process but started as ROOT I get the following console messages:

Cannot restore original GID/UID.
Cannot restore original GID/UID.
Cannot restore original GID/UID.
Cannot restore original GID/UID.
Cannot restore original GID/UID.
Cannot restore original GID/UID.
Cannot restore original GID/UID.

I do not get these when I run the app as me - which is a non-UID 0 account. Perhaps this is an artifact of the "-x" option?

  1942   Tue Sep 19 19:22:31 2006 Reply Steve Jonessteve.jones@freescale.comQuestionAll2.6.2-1714Re: Re: Why are Preset fields blanked out?

Stefan Ritt wrote:

Steve Jones wrote:

I think I found it. Try this:
Locked Attributes = ApprovedDate, CompletedDate
##################################################
# Define CRState
#
Options CRState = PENDING{a}, APPROVED{b}, HOLD{a}, REJECTED{a}, COMPLETED{c}
{a}
{b} Preset ApprovedDate = $date
{c} Preset CompletedDate = $date

In my config when I remove the two attributes from "LOCKED ATTRIBUTES" the fields do not get blanked out.


No, even with that it does not get blanked out. Attached is the complete elogd.cfg with which it works fine in my case (R1714). Can you try that?



Quote:

Stefan, when I try that config in a demo logbook in my installation *but with all other items in [global] I get the same field-blanking behavior. I am going to try going back to a completely pristine .cfg, but I suspect this will work fine. I will need to add back in configuration items until I run into the culprit.

Ok, I found it. Try this config:
[global]
port = 8080


[demo]
Comment = Test
Attributes = Author, CRState, ApprovedDate, CompletedDate
Locked Attributes = ApprovedDate, CompletedDate
Type CompletedDate = date
Type ApprovedDate = date

Format CompletedDate = 1
Options CRState = PENDING{a}, APPROVED{b}, HOLD{a}, REJECTED{a}, COMPLETED{c}
{a}
{b} Preset ApprovedDate = $date
{c} Preset CompletedDate = $date

Setting the "Type" to "date" causes the blanking to occur.
  1944   Tue Sep 19 20:37:59 2006 Warning Steve Jonessteve.jones@freescale.comBug reportOther2.6.2-1714Shell execution generating error
When started as root *but not running as a daemon* shell execution results in the following errors that are sent to Standard Error:
Cannot restore original GID/UID.
Cannot remove pidfile "/var/run/cr-elogd.pid"
; Permission denied
Cannot restore original GID/UID.
Cannot remove pidfile "/var/run/cr-elogd.pid"
; Permission denied
  1945   Tue Sep 19 20:38:49 2006 Reply Steve Jonessteve.jones@freescale.comQuestionAll2.6.2-1714Re: Re: Why are Preset fields blanked out?

Stefan Ritt wrote:

Steve Jones wrote:

Setting the "Type" to "date" causes the blanking to occur.


Ok, then don't set the "Type" to "date" Wink




Quote:

Yuk! Thanks!

Big grin
  1953   Fri Sep 22 19:31:15 2006 Reply Steve Jonessteve.jones@freescale.comBug reportOther2.6.2-1714Re: Shell execution generating error

Stefan Ritt wrote:

Steve Jones wrote:
When started as root *but not running as a daemon* shell execution results in the following errors that are sent to Standard Error:
Cannot restore original GID/UID.
Cannot remove pidfile "/var/run/cr-elogd.pid"
; Permission denied
Cannot restore original GID/UID.
Cannot remove pidfile "/var/run/cr-elogd.pid"
; Permission denied


The "/var/run/elogd.pid" file is created from elogd to indicate under which PID it is running. If you run elogd once under root, this file then belongs to root. If you afterwards run it under a user account, it cannot delete or change the file belonging to root. In that case, just delete that file manually.




Quote:

When a process starts via the normal startup process it is started as root then the process changes to run as nobody -- so the pid file will always be owned by root. Yes? Then, shell commands wil not be able to deal with the pid file, right? Why would the shell exec want to deal with the PID file anyway?

Just curious. As long as this does not pose a problem then I will nto worry about it.
  1954   Fri Sep 22 19:32:45 2006 Reply Steve Jonessteve.jones@freescale.comBug reportOther2.6.2-1714Re: SVN1714 will not run in 'daemon" mode on Solaris8

Stefan Ritt wrote:

Steve Jones wrote:
On Solaris, SVN1714 will not go into daemon mode. Running the compiled version under TRUSS (which provides a dump of every system call) and shows precisely where elog is failing. I have attached two TRUSS outputs: one where it errors out and the other where it runs but "interactively". Both runs are as root, simply one with and one without the "-D"


The "one where it errors out" does not look like an error. It does the "fork()" at the end and the main thread ends, that's how it's supposed to be.



Quote:


Ok, what this tells me is I need to get TRUSS to follow the fork - which I think I can do. The behavior, however, is that elog never goes into daemon mode after that fork.

More info to follow.
  1955   Fri Sep 22 19:42:21 2006 Reply Steve Jonessteve.jones@freescale.comQuestionAll2.6.2-1714Re: "Supress Email Notification" checkbox

Stefan Ritt wrote:

Steve Jones wrote:

Steve Jones wrote:
Is there a way to allow email notification but have the "Suppress Email Notification" checked by default? We had complaints about the enormous amount of email so I turned off email notification for edits/replys, but there are times that I would like to allow email to be sent out -- this would imply allowing email by unchecking the "Suppress" box.


What I think would be needed is:
Suppress Email on edit = 0|1|2
                             ^
Where a '2' denotes that the "Suppress Email Notification" shows up but *checked*


Just to a
Suppress default = 1




Quote:

Not quite what I am looking for. What I need is:

"New" Logs
- Always send an email -- do not provide an option to check the box.
-- use
Suppress Default = 2

"Edits and Replys"
- Provide the option to send an email, but by default the "suppress" box is checked
-- need
Suppress Email on edit = 2 

ELOG V3.1.5-fe60aaf