Help - Search - Members - Calendar
Full Version: gnatsd memory fault
Linuxhelp > Support > Technical Support
adamwer
Hi
It didn't start on boot automatically so I tried the following:

[root@sierra /]# find -noleaf -name gnatsd
./usr/local/libexec/gnats/gnatsd
[root@sierra /]# cd /usr/local/libexec/gnats
[root@sierra gnats]# gnatsd
Memory fault
[root@sierra gnats]# gnatsd start
Memory fault
[root@sierra gnats]# gnatsd start dwvbwdbvwb wwsbvwfdrbvwrbgv
Memory fault
[root@sierra gnats]#

Please help.
Cheers
Adam
adamwer
Some additional info:
The compiled gnats version is 4.0.
I also tried:

[root@sierra gnats]# gnatsd -n
Memory fault
[root@sierra gnats]# su gnats
[gnats@sierra gnats]$ gnatsd -n
Segmentation fault


[root@sierra gnats]# strace gnatsd -n
execve("/usr/local/libexec/gnats/gnatsd", ["gnatsd", "-n"], [/* 24 vars */]) = 0
uname({sys="Linux", node="sierra", ...}) = 0
brk(0) = 0x8074e60
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13727, ...}) = 0
mmap2(NULL, 13727, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3) = 0
open("/lib/libcrypt.so.1", O_RDONLY) = 3
read(3, "177ELF111331340t"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=34104, ...}) = 0
mmap2(NULL, 197404, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4001b000
mmap2(0x40023000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0x40023000
mmap2(0x40025000, 156444, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40025000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "177ELF11133120Q100"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1148008, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4004c000
mmap2(NULL, 1154236, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4004d000
mmap2(0x40161000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x114) = 0x40161000
mmap2(0x40165000, 7356, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40165000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40167000
mprotect(0x40161000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x401676c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x40017000, 13727) = 0
umask(022) = 022
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
uname({sys="Linux", node="sierra", ...}) = 0
brk(0) = 0x8074e60
brk(0x8095e60) = 0x8095e60
brk(0x8096000) = 0x8096000
gettimeofday({1147434759, 107132}, NULL) = 0
getpid() = 3514
open("/etc/resolv.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=58, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(3, "domain ratio.co.uknnameserver 21"..., 4096) = 58
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40017000, 4096) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=277, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(3, "# /etc/nsswitch.confn#n# Example"..., 4096) = 277
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40017000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13727, ...}) = 0
mmap2(NULL, 13727, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3) = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "177ELF111331p3300"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=34188, ...}) = 0
mmap2(NULL, 37516, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40168000
mmap2(0x40170000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0x40170000
close(3) = 0
munmap(0x40017000, 13727) = 0
open("/etc/host.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(3, "order hosts,bindnmulti onn", 4096) = 26
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40017000, 4096) = 0
open("/etc/hosts", O_RDONLY) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=283, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(3, "# /etc/hostsn127.0.0.1tlocalhost"..., 4096) = 283
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40017000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13727, ...}) = 0
mmap2(NULL, 13727, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3) = 0
open("/lib/libnss_dns.so.2", O_RDONLY) = 3
read(3, "177ELF111331340r"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=17764, ...}) = 0
mmap2(NULL, 20616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40172000
mmap2(0x40176000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0x40176000
close(3) = 0
open("/lib/libresolv.so.2", O_RDONLY) = 3
read(3, "177ELF111331p$00"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=63188, ...}) = 0
mmap2(NULL, 71880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40178000
mmap2(0x40186000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0x40186000
mmap2(0x40188000, 6344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40188000
close(3) = 0
munmap(0x40017000, 13727) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("212.104.130.65")}, 28) = 0
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
gettimeofday({1147434759, 160091}, NULL) = 0
poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
send(3, "330301116sierra5ratio2co2uk"..., 36, 0) = 36
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(3, FIONREAD, [52]) = 0
recvfrom(3, "330301201200116sierra5ratio2co2u"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("212.104.130.65")}, [16]) = 52
close(3) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
open("/usr/local/etc/gnats/databases", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0777, st_size=687, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(3, "# This file contains a list of d"..., 4096) = 687
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40017000, 4096) = 0
stat64("/usr/local/com/gnatsdb", {st_mode=S_IFDIR|0755, st_size=54, ...}) = 0
stat64("/usr/local/com/gnatsdb/gnats-adm/gnatsd.host_access", 0xbffff45c) = -1 ENOENT (No such file or directory)
open("/usr/local/com/gnatsdb/gnats-adm/dbconfig", O_RDONLY) = 3
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
fstat64(3, {st_mode=S_IFREG|0755, st_size=20730, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(3, "# This configuration file descri"..., 4096) = 4096
open("/usr/local/com/gnatsdb/gnats-adm/categories", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=1157, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(4, "#tt Possible categories for a"..., 4096) = 1157
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40018000, 4096) = 0
read(3, "enumerated field with two possib"..., 4096) = 4096
open("/usr/local/com/gnatsdb/gnats-adm/responsible", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=1226, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(4, "#n#tt People responsible for a "..., 4096) = 1226
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40018000, 4096) = 0
open("/usr/local/com/gnatsdb/gnats-adm/states", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=2975, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(4, "#tt Possible states for a PR."..., 4096) = 2975
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40018000, 4096) = 0
open("/usr/local/com/gnatsdb/gnats-adm/classes", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=1421, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(4, "#tt Possible classes for a PR"..., 4096) = 1421
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40018000, 4096) = 0
open("/usr/local/com/gnatsdb/gnats-adm/submitters", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=2114, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(4, "#n#tt submitters database for"..., 4096) = 2114
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40018000, 4096) = 0
read(3, ""closed-date"n description "D"..., 4096) = 4096
read(3, "egory" "Synopsis" "Confidential""..., 4096) = 4096
read(3, " $MailTo -- the To: line of the "..., 4096) = 4096
read(3, "ppear inn# the template.ninitial"..., 4096) = 250
read(3, "", 4096) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
close(3) = 0
munmap(0x40017000, 4096) = 0
open("/usr/local/etc/gnats/gnatsd.host_access", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0777, st_size=1774, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(3, "#n# Hosts that "..., 4096) = 1774
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40017000, 4096) = 0
open("/usr/local/com/gnatsdb/gnats-adm/gnatsd.user_access", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0600, st_size=2227, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(3, "#n# User access"..., 4096) = 2227
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40017000, 4096) = 0
open("/usr/local/etc/gnats/gnatsd.user_access", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 3514 detached
[root@sierra gnats]#
Termina
You're getting seg faults because you're missing half the files it needs to run.

Make sure you installed it properly, see if those files are there (and just unreadable by the user gnatsd is running as).

The output of that last command is pretty self explanatory, when you look at the error messages. tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.