arlad dies

André Zúquete avz at sabrina.inesc.pt
Wed Sep 6 10:22:10 CEST 2000


On 6 Sep 2000, Love wrote:

|Date: 06 Sep 2000 02:49:53 +0200
|From: Love <lha at stacken.kth.se>
|To: andre.zuquete at inesc.pt
|Cc: arla-drinkers at stacken.kth.se
|Subject: Re: arlad dies
|
|André Zúquete <avz at sabrina.inesc.pt> writes:
|
|> Hi,
|> 
|> arlad dies when I do a makedepend on a AFS directory. The failure
|> is due to an assert near the end of function truncate_file:
|> 
|> assert (entry->status.Length == size);
|
|Seems weird. Only that I can think of is this patch.
|
|Is it possible to reproduce the error, how do you do it (like on what tree
|are yu running makedepend, etc).

Tkx for the fast answer and fix, but the error remains the same ...

The error occurs every time I run makedepend, is quite deterministic, so
it should be easy to find out some unexpected problem due to some unusual
sequence of syscalls of makedepend. Please look at the attached trace of
the makedepend command that triggers the arlad assert. The exact command
was "makecommand -f deps ../client.c". As you can see, the file "client.c"
is not relevant at all to this problem since arlad dies during the
manipulation of file "deps" by makedepend. The file "deps" belongs to an
AFS volume.

Hope this helps.

Best regards,

    André

   ____________________________________________________________________
  /|               __                 | Andre' Ventura Zu'quete        |
 /_|  /|_  _|_ /    / /  _     _|_    | e-mail: Andre.Zuquete at inesc.pt |
|    /-| )(_| (-   /_|_)(_|_)(- | (-  | Phone: +351 213100-395         |
|                         |           | URL: www.gsd.inesc.pt/~avz     |
 ----------------------------------------------------------------------
| INESC (Instituto de Engenharia de Sistemas e Computadores)         __|
| R. Alves Redol 9, 6. 1000 Lisboa, PORTUGAL                        | /
| Fax: +351 213145843                                               |/
 -------------------------------------------------------------------


execve("/usr/bin/X11/makedepend", ["makedepend", "../client.c", "-f", "deps"], [/* 44 vars */]) = 0
brk(0)                                  = 0x8058d4c
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=21532, ...}) = 0
old_mmap(NULL, 21532, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=4101324, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\210\212"..., 4096) = 4096
old_mmap(NULL, 1001564, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001b000
mprotect(0x40108000, 30812, PROT_NONE)  = 0
old_mmap(0x40108000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xec000) = 0x40108000
old_mmap(0x4010c000, 14428, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4010c000
close(3)                                = 0
mprotect(0x4001b000, 970752, PROT_READ|PROT_WRITE) = 0
mprotect(0x4001b000, 970752, PROT_READ|PROT_EXEC) = 0
munmap(0x40015000, 21532)               = 0
personality(PER_LINUX)                  = 0
getpid()                                = 1672
brk(0)                                  = 0x8058d4c
brk(0x8058d8c)                          = 0x8058d8c
brk(0x8059000)                          = 0x8059000
stat("deps", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("deps", O_RDONLY)                  = 3
unlink("deps.bak")                      = 0
rename("deps", "deps.bak")              = 0
close(1)                                = 0
open("deps", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 1
fstat64(0x3, 0xbfffb704)                = -1 ENOSYS (Function not implemented)
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
read(3, "", 4096)                       = 0
fstat(1, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
write(1, "# DO NOT DELETE\n", 16)       = 16
fchmod(1, 0100644)                      = -1 ENODEV (No such device)
rt_sigaction(SIGHUP, {0x8049300, [HUP INT QUIT ILL BUS SEGV PIPE UNUSED], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGINT, {0x8049300, [HUP INT QUIT ILL BUS SEGV PIPE UNUSED], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {0x8049300, [HUP INT QUIT ILL BUS SEGV PIPE UNUSED], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGILL, {0x8049300, [HUP INT QUIT ILL BUS SEGV PIPE UNUSED], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGBUS, {0x8049300, [HUP INT QUIT ILL BUS SEGV PIPE UNUSED], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x8049300, [HUP INT QUIT ILL BUS SEGV PIPE UNUSED], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGUNUSED, {0x8049300, [HUP INT QUIT ILL BUS SEGV PIPE UNUSED], 0x4000000}, NULL, 8) = 0
open("../client.c", O_RDONLY)           = -1 ENODEV (No such device)
write(2, "makedepend: warning:  ", 22makedepend: warning:  )  = 22
write(2, "cannot open \"../client.c\"\n", 26cannot open "../client.c"
) = 26
munmap(0x40016000, 4096)                = 0
_exit(0)                                = ?





More information about the Arla-drinkers mailing list