Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2002 15:26:19 -0700 (PDT)
From:      Maksim Yevmenkin <m_evmenkin@yahoo.com>
To:        freebsd-current@freebsd.org
Cc:        freebsd-net@freebsd.org
Subject:   -current Netgraph (ng_parse) problem
Message-ID:  <20020603222619.48900.qmail@web13307.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hackers,

I'm having hard time with Netgraph on recent -current.

First, there is a lot of warnings (see below) related to
initialization of struct ng_parse_struct_info. I think
it is related to zero sized "fields" array. Someone else
already posted about the same problem.

Second, my laptop crashes with 

Jun  3 15:10:23 beetle kernel: Fatal double fault:
Jun  3 15:10:23 beetle kernel: eip = 0xc9c41a61
Jun  3 15:10:23 beetle kernel: esp = 0xc9fc1000
Jun  3 15:10:23 beetle kernel: ebp = 0xc9fc1008
Jun  3 15:10:23 beetle kernel: panic: double fault
Jun  3 15:10:23 beetle kernel: panic: from debugger
Jun  3 15:10:23 beetle kernel: Uptime: 2h37m34s
Jun  3 15:10:23 beetle kernel: pfs_vncache_unload(): 2 entries remaining
Jun  3 15:10:23 beetle kernel: /dev/vmmon: Module vmmon: unloaded
Jun  3 15:10:23 beetle kernel: Automatic reboot in 15 seconds - press a key on
t
he console to abort
Jun  3 15:10:23 beetle kernel: --> Press a key on the console to reboot,

every time i try to use ngctl to get structures from Netgraph
nodes. Of course i suspected my own code, until i tried ng_tee.
Same crash :(

Is there a quick fix? Or is it "doctor it hurts when i
press here" thing.

thanks,
max

beetle% gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.1 [FreeBSD] 20020509 (prerelease)

beetle% uname -a
FreeBSD beetle 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Fri May 24 13:24:05 PDT
2002     max@beetle:/usr/obj/usr/src/sys/BEETLE  i386
beetle%

beetle% make
Warning: Object directory not changed from original
/usr/home/max/bluetooth/freebsd/current/bt3c
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pccard/card_if.m -h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
cc -O -pipe  -g -I../hci/  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
 -Wno-format -ansi -DKLD_MODULE -nostdinc -I-  -I../hci/ -I. -I@ -I@/dev
-I@/../include -I/usr/include -fno-common  -mpreferred-stack-boundary=2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wno-format -ansi
-c bt3c_pccard.c
bt3c_pccard.c:205: warning: excess elements in array initializer
bt3c_pccard.c:205: warning: (near initialization for
`ng_bt3c_stat_type_info.fields')
bt3c_pccard.c:206: warning: excess elements in array initializer
bt3c_pccard.c:206: warning: (near initialization for
`ng_bt3c_stat_type_info.fields')
bt3c_pccard.c:207: warning: excess elements in array initializer
bt3c_pccard.c:207: warning: (near initialization for
`ng_bt3c_stat_type_info.fields')
bt3c_pccard.c:208: warning: excess elements in array initializer
bt3c_pccard.c:208: warning: (near initialization for
`ng_bt3c_stat_type_info.fields')
bt3c_pccard.c:209: warning: excess elements in array initializer
bt3c_pccard.c:209: warning: (near initialization for
`ng_bt3c_stat_type_info.fields')
ld  -d -warn-common -r -d -o ng_bt3c.kld bt3c_pccard.o
touch /usr/home/max/bluetooth/freebsd/current/bt3c/export_syms
awk -f /sys/conf/kmod_syms.awk ng_bt3c.kld 
/usr/home/max/bluetooth/freebsd/current/bt3c/export_syms |  xargs -J% objcopy
% ng_bt3c.kld
ld -Bshareable  -d -warn-common -o ng_bt3c.ko ng_bt3c.kld
beetle%


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020603222619.48900.qmail>