Re: AFS 1.8.2 , bus error on FreeBSD

Andreas Ladanyi <[email protected]>
Newsgroups gmane.comp.file-systems.openafs.general
Message-ID <[email protected]>
Hi,

this entry in lwp.c helps. No bus error anymore with bos command.

+       /* Gross hack to change stack alignment. */
+       stackptr += 8;


Where is the patch from ?


Andreas

> You may be able to run with this patch:
>
> diff --git a/src/lwp/lwp.c b/src/lwp/lwp.c
> index 496e773e00..0904ebff3e 100644
> --- a/src/lwp/lwp.c
> +++ b/src/lwp/lwp.c
> @@ -353,6 +353,8 @@ LWP_CreateProcess(void *(*ep) (void *), int stacksize,
> int priority, void *parm,
>         stackptr = (char *)(8 * (((long)stackmemory + 7) / 8));
>  #endif /* !AFS_DARWIN_ENV */
>  #endif
> +       /* Gross hack to change stack alignment. */
> +       stackptr += 8;
>         if (priority < 0 || priority >= MAX_PRIORITIES) {
>             free(temp);
>  #ifndef AFS_AIX32_ENV
>
> If that doesn't work, I'd try compiling (everything) with gcc -O0 and see
> if that helps -- the stack alignment only becomes an issue when some of the
> newer fancy instructions are used.
>
> -Ben
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.