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

Re: Bug#664812: rpc.lockd on kfreebsd



Hi,

On 26/03/12 19:41, Christoph Egger wrote:
>  47878 rpc.lockd RET   nlm_syscall -1 errno 14 Bad address
>  47878 rpc.lockd CALL  exit(0x1)

I've an idea this may be related to:

> cc -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D__va_list=__builtin_va_list -isystem /usr/include/tirpc -D__FreeBSD_version=__FreeBSD_kernel_version -O2 -isystem /usr/include/freebsd -I/build/buildd-freebsd-utils_9.0+ds1-8-kfreebsd-i386-vUpCIn/freebsd-utils-9.0+ds1/debian/local/include -I/build/buildd-freebsd-utils_9.0+ds1-8-kfreebsd-i386-vUpCIn/freebsd-utils-9.0+ds1/include -lbsd  -I. -I/build/buildd-freebsd-utils_9.0+ds1-8-kfreebsd-i386-vUpCIn/freebsd-utils-9.0+ds1/usr.sbin/rpc.lockd/../../include/rpcsvc -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D__va_list=__builtin_va_list -isystem /usr/include/tirpc -D__FreeBSD_version=__FreeBSD_kernel_version -O2 -std=gnu99 -fstack-protector -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c lockd.c
> lockd.c: In function 'main':
> lockd.c:462:5: warning: implicit declaration of function 'nlm_syscall' [-Wimplicit-function-declaration]

and:

> cc -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D__va_list=__builtin_va_list -isystem /usr/include/tirpc -D__FreeBSD_version=__FreeBSD_kernel_version -O2 -isystem /usr/include/freebsd -I/build/buildd-freebsd-utils_9.0+ds1-8-kfreebsd-i386-vUpCIn/freebsd-utils-9.0+ds1/debian/local/include -I/build/buildd-freebsd-utils_9.0+ds1-8-kfreebsd-i386-vUpCIn/freebsd-utils-9.0+ds1/include -lbsd  -I. -I/build/buildd-freebsd-utils_9.0+ds1-8-kfreebsd-i386-vUpCIn/freebsd-utils-9.0+ds1/usr.sbin/rpc.lockd/../../include/rpcsvc -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D__va_list=__builtin_va_list -isystem /usr/include/tirpc -D__FreeBSD_version=__FreeBSD_kernel_version -O2 -std=gnu99 -fstack-protector -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c nlm_syscall.c
> nlm_syscall.c:8:1: warning: no previous prototype for 'nlm_syscall' [-Wmissing-prototypes]
> nlm_syscall.c: In function 'nlm_syscall':
> nlm_syscall.c:10:3: warning: implicit declaration of function 'syscall' [-Wimplicit-function-declaration]

which I noticed while looking into #685625.  Could this mean the addrs
parameter gets truncated to a 32-bit int by the time the syscall() happens?

See also:

50D4F523.7060605@pyro.eu.org">http://lists.debian.org/50D4F523.7060605@pyro.eu.org
https://buildd.debian.org/~brlink/packages/f/freebsd-utils.html

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org


Reply to: