Current-Users archive

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

Re: fsck seg fault failure on vmware -i386?

> On Feb 5,  1:27pm, 
> (
> -- Subject: Re: fsck seg fault failure on vmware -i386?
> | >Oh, it is dying inside asctime! Can you build a debugging libc, |
>(MKDEBUG=yes)and then link fsck with -lc_g?
> |
> | I'd be glad to, but I only have build experience with |
> | I made a debug version of fsck_ffs by adding -g to cflags in
> | the Makefile in src/bin/fsck_ffs directory...and copying out of |
> cd  /usr/src/sbin/fsck_ffs
> cp /usr/src/lib/libc/time/localtime.c
> # patch the Makefile
> -       ffs_tables.c ffs_appleufs.c partutil.c snapshot.c
> +       ffs_tables.c ffs_appleufs.c partutil.c snapshot.c localtime.c
> +CPPFLAGS+=-I${NETBSDSRCDIR}/lib/libc/include
> +CPPFLAGS+=-I${NETBSDSRCDIR}/lib/libc/time
>  FSCK=  ${NETBSDSRCDIR}/sbin/fsck
>  DUMP=  ${NETBSDSRCDIR}/sbin/dump

Hmmm. Now it doesn't crash. 8-}

I took this exe back to the failed state snapshot and verified it.

/rescue/fsck_ffs crashed.

With localtime compiled in directly, fsck_ffs does not crash?

Please explain??? Guessing you suspected this was the case?

Home | Main Index | Thread Index | Old Index