Re: pf_state_export crash
On 26.12.2022. 5:06, Csillag Tamas wrote: > hi, > > the crash repeated again > > uvm_fault(0x823ed470, 0x0, 0, 1) -> e > fatal page fault in supervisor mode > trap type 6 code 0 rip 81e4c208 cs 8 rflags 10246 cr2 0 cpl 0 rsp > 8000225a4060 > gsbase 0x80001e119ff0 kgsbase 0x0 > panic: trap type 6, code=0, pc=81e4c208 > Starting stack trace... > panic(81f27c9e) at panic+0x12c > kerntrap(8000225a3fb0) at kerntrap+0x114 > alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b > pf_state_export(fd8002e8a1c0,fd952aa907e0) at pf_state_export+0x38 > pfsync_sendout() at pfsync_sendout+0x5e4 > pfsync_update_state(fd9526f4f3f0) at pfsync_update_state+0x15b > pf_test(2,1,81eb5800,8000225a4438) at pf_test+0x117a > ip_input_if(8000225a4438,8000225a,4,0,81eb5800) at > ip_input_if+0xcd > ipv4_input(81eb5800,fd805f671000) at ipv4_input+0x39 > ether_input(81eb5800,fd805f671000) at ether_input+0x3b1 > carp_input(81ecd800,fd805f671000,5e000101) at carp_input+0x196 > ether_input(81ecd800,fd805f671000) at ether_input+0x1d9 > if_input_process(814e3050,8000225a4618) at if_input_process+0x6f > ifiq_process(814e5700) at ifiq_process+0x69 > taskq_thread(80037200) at taskq_thread+0x100 > end trace frame: 0x0, count: 242 > End of stack trace. > > Regards, > Tamas Hi, can you upgrade to latest snapshot with sysupgrade? If that won't solve your panic can you try this diff https://www.mail-archive.com/tech@openbsd.org/msg72582.html this was my panic https://www.mail-archive.com/bugs@openbsd.org/msg18583.html and that diff solved it ...
Re: pf_state_export crash
hi, the crash repeated again uvm_fault(0x823ed470, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip 81e4c208 cs 8 rflags 10246 cr2 0 cpl 0 rsp 8000225a4060 gsbase 0x80001e119ff0 kgsbase 0x0 panic: trap type 6, code=0, pc=81e4c208 Starting stack trace... panic(81f27c9e) at panic+0x12c kerntrap(8000225a3fb0) at kerntrap+0x114 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pf_state_export(fd8002e8a1c0,fd952aa907e0) at pf_state_export+0x38 pfsync_sendout() at pfsync_sendout+0x5e4 pfsync_update_state(fd9526f4f3f0) at pfsync_update_state+0x15b pf_test(2,1,81eb5800,8000225a4438) at pf_test+0x117a ip_input_if(8000225a4438,8000225a,4,0,81eb5800) at ip_input_if+0xcd ipv4_input(81eb5800,fd805f671000) at ipv4_input+0x39 ether_input(81eb5800,fd805f671000) at ether_input+0x3b1 carp_input(81ecd800,fd805f671000,5e000101) at carp_input+0x196 ether_input(81ecd800,fd805f671000) at ether_input+0x1d9 if_input_process(814e3050,8000225a4618) at if_input_process+0x6f ifiq_process(814e5700) at ifiq_process+0x69 taskq_thread(80037200) at taskq_thread+0x100 end trace frame: 0x0, count: 242 End of stack trace. Regards, Tamas --
Re: Bug in awk script...
On Mon, Dec 26, 2022 at 06:03:42AM +0800, wuwow...@gmail.com wrote: > Sad... Not working... > OpenBSD 7.1 > > #!/usr/bin/awk -f > BEGIN { > d = "/tmp/test/"; > system("mkdir -p " d); > i = -1; > while (++i < 1000) { > f = d i; > printf("") > f; > } > } > > awk: can't open file /tmp/wow/125 > > It' seems that "one true awk" is buggy... Not really. You just need to increase the limit for openfiles in /etc/login.conf.
Re: Bug in awk script...
On Mon, Dec 26, 2022 at 06:03:42AM +0800, wuwow...@gmail.com wrote: > Sad... Not working... > OpenBSD 7.1 > > #!/usr/bin/awk -f > BEGIN { > d = "/tmp/test/"; > system("mkdir -p " d); > i = -1; > while (++i < 1000) { > f = d i; > printf("") > f; This opens f and leaves it open. You should close(f) if you no longer need it. > } > } > > awk: can't open file /tmp/wow/125 Since you didn't close f, you ran into a limit of open files. > > It' seems that "one true awk" is buggy... > I would argue your script is buggy. It happens to work in GNU awk since that has some file reuse logic.
Bug in awk script...
Sad... Not working... OpenBSD 7.1 #!/usr/bin/awk -f BEGIN { d = "/tmp/test/"; system("mkdir -p " d); i = -1; while (++i < 1000) { f = d i; printf("") > f; } } awk: can't open file /tmp/wow/125 It' seems that "one true awk" is buggy...
Re: pf_state_export crash
My colleague also collected this: db{2}> trace pf_state_export(fd805a50dbd4,fd9511799e70) at pf_state_export+0x38 pfsync_sendout() at pfsync_sendout+0x5e4 pfsync_update_state(fd950ef406b0) at pfsync_update_state+0x15b pf_test(2,1,81ecd800,800022592408) at pf_test+0x117a ip_input_if(800022592408,800022592414,4,0,81ecd800) at ip_input _if+0xcd ipv4_input(81ecd800,fd8059cca200) at ipv4_input+0x39 ether_input(81ecd800,fd8059cca200) at ether_input+0x3b1 if_input_process(814ee050,8000225924f8) at if_input_process+0x6f ifiq_process(814efa00) at ifiq_process+0x69 taskq_thread(80037080) at taskq_thread+0x100 end trace frame: 0x0, count: -10 ddb{2}> show panic *cpu2: uvm_fault(0x823e8800, 0x0, 0, 1) -> e ddb{2}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92179 2124 98268 0 3 0x100083 nanoslp sleep 52608 190335 1 0 3 0x100083 ttyin getty 28576 497344 79673 0 3 0x100083 ttyin ksh 98268 414675 18735 0 3 0x8b sigsusp zsh 18735 350794 79673 0 3 0x10008b sigsusp ksh 79673 452567 32262 0 3 0x9a kqread sshd 31297 18196 16007 0 3 0x100083 ttyin ksh 16007 507886 32262 0 3 0x9a kqread sshd 71853 245861 1 0 3 0x100098 kqread cron 9972 349539 32515 577 3 0x92 kqread openvpn 27844 218545 32515 32767 3 0x82 kqread svlogd 32515 269581 30307 0 3 0x82 kqread runsv 30307 213658 1 0 3 0x83 kqread runsvdir 23611 299329 1 617 3 0x90 kqread tinyproxy 29980 426146 1 0 3 0x80 nanoslp collectd 29980 388009 1 0 3 0x480 fsleep collectd 29980 216736 1 0 3 0x480 fsleep collectd 29980 236059 1 0 3 0x480 fsleep collectd 29980 149295 1 0 3 0x480 fsleep collectd 29980 479856 1 0 3 0x480 fsleep collectd 29980 118161 1 0 3 0x480 fsleep collectd 29980 446592 1 0 3 0x480 fsleep collectd 29980 116491 1 0 3 0x480 fsleep collectd 29980 379435 1 0 3 0x480 fsleep collectd 29980 462482 1 0 3 0x480 fsleep collectd 62928 381037 1 99 3 0x1100090 kqread sndiod 79664 132058 1 110 3 0x100090 kqread sndiod 47345 333274 52602 95 3 0x1100092 kqread smtpd 12713 510663 52602 103 3 0x1100092 kqread smtpd 57157 443764 52602 95 3 0x1100092 kqread smtpd 83405 403585 52602 95 3 0x100092 kqread smtpd 39934 453268 52602 95 3 0x1100092 kqread smtpd 96367 400795 52602 95 3 0x1100092 kqread smtpd 52602 183147 1 0 3 0x100080 kqread smtpd 37186 160140 37010 94 3 0x1100092 kqread rad 69980 81234 37010 94 3 0x1100092 kqread rad 37010 318067 1 0 3 0x100080 kqread rad 19050 248175 1 0 3 0x100080 kqread ifstated 32262 51007 1 0 3 0x88 kqread sshd 47425 184105 1 0 3 0x100080 kqread ntpd 44921 386498 11186 83 3 0x100092 kqread ntpd 11186 364638 1 83 3 0x1100092 kqread ntpd 27560 298174 1 53 3 0x190 kqread unbound 30694 478862 46088 74 3 0x1100092 bpf pflogd 46088 317888 1 0 3 0x80 netio pflogd 37573 57388 9307 73 3 0x1100090 kqread syslogd 9307 441872 1 0 3 0x100082 netio syslogd 73922 126079 0 0 3 0x14200 bored wg_crypt 14617 238737 0 0 3 0x14200 bored wg_crypt 84186 440221 0 0 3 0x14200 bored wg_crypt 32111 359939 0 0 3 0x14200 bored wg_crypt 67454 74089 0 0 3 0x14200 bored wg_crypt 13612 61264 0 0 3 0x14200 bored wg_crypt 41551 478047 0 0 3 0x14200 bored wg_crypt 95258 450278 0 0 3 0x14200 bored wg_crypt 95349 401543 0 0 3 0x14200 bored wg_handshake 87062 221608 0 0 3 0x14200 bored wg_handshake 65320 148204 1 0 3 0x100080 kqread resolvd 89479 401285 91559 77 3 0x100092 kqread dhcpleased 82085 113807 91559 77 3 0x100092 kqread dhcpleased 91559 435349 1 0 3 0x80 kqread dhcpleased 68923 92101 8879 115 3 0x100092 kqread