gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] [BUG] botched invariant when running make-archive


From: Bug Goo
Subject: Re: [Gnu-arch-users] [BUG] botched invariant when running make-archive
Date: Sat, 31 Jul 2004 21:50:02 +0000

Created as bug 170

On Thu Jul 15 23:12:37 2004, James Blackwell wrote:
> 
> User Name: Joe
> email: address@hidden
> 
> entered the following command:
>   tla make-archive address@hidden 2004-archive-name
> 
> And ended up with a botched invariant:
> 
>   /path/tla-1.2/src/tla/libarch/pfs-fs.c:87:botched invariant
>   !!uri
>   PANIC: exiting on botched invariant
> 
> 
> The problem is that the user entered a relative path. For example, he
> typed 2004-archive-name instead of /home/joe/archives/2004-archive-name.
> 
> 
> Apparently, arch_pfs_fs_connect (t_uchar * uri) is getting passed a null
> because make-archive was passed a relative path. The proper fix for this
> bug isn't to change the botched invariant, but to do some sanity checks
> earlier in the code.
> 
> What's called for in this case is first to trace the code and find where
> exactly the user given uri is getting turned into a null (I suspect
> wherever the code decides which pfs module to use), and then tell the user
> something like: 
> 
> Invalid uri given. If you meant to use a local directory, 
> use a full path instead of a relative path.
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]