[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ud segfault



David Liontooth <liontooth@cogweb.net> writes:

> Hi Goswin,
>
> So this is not behavior others are seeing? I have the pleasure of sending you a thousand EBADF reports below -- 

I have no clue. I don't have ud installed and know of noone having it
running. I'm just trying to guide you to finding the problem.

> you're likely only interested in the last few lines:
>
> chdir("/")                              = 0
> umask(0)                                = 022
> ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbffff6d0) = -1 EBADF (Bad
> file descriptor)
> open("/etc/localtime", O_RDONLY)        = 0
> fstat(0, {st_mode=S_IFREG|0644, st_size=1017, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x2a9556b000
> read(0, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"...,
> 4096) = 1017
> close(0)                                = 0
> munmap(0x2a9556b000, 4096)              = 0
> getpid()                                = 11304
> rt_sigaction(SIGPIPE, {0x2a9573b170, [], 0x4000000}, {SIG_DFL}, 8) = 0
> socket(PF_FILE, SOCK_DGRAM, 0)          = 0
> fcntl(0, F_SETFD, FD_CLOEXEC)           = 0
> connect(0, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
> sendto(0, "<30>Dec 11 19:34:31 ud[11304]: U"..., 56, 0, NULL, 0) = 56
> rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
> close(0)                                = 0
> getpid()                                = 11304
> open("/var/run/ud.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 0
> chmod("/var/run/ud.pid", 0644)          = 0
> fstat(0, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x2a9556b000
> write(0, "11304\n", 6)                  = 6
> close(0)                                = 0
> munmap(0x2a9556b000, 4096)              = 0
> open("/var/lib/misc/uptime.record", O_RDONLY) = 0
> chmod("/var/lib/misc/uptime.record", 0644) = 0
> fstat(0, {st_mode=S_IFREG|0644, st_size=36, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x2a9556b000
> read(0, "0.7.1\n0.000000\n\n0.000000\n\n0.0000"..., 4096) = 36
> close(0)                                = 0
> munmap(0x2a9556b000, 4096)              = 0
> open("/proc/uptime", O_RDONLY)          = 0
> fstat(0, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x2a9556b000
> read(0, "97472.40 97151.76\n", 1024)    = 18
> close(0)                                = 0
> munmap(0x2a9556b000, 4096)              = 0
> uname({sys="Linux", node="clitunno", ...}) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> Process 11304 detached
>
> Cheers,
> Dave

As expected nothing shows up as being wrong. You do have to run ud in
gdb and find out where in ud it segfaults.

MfG
        Goswin



Reply to: