[Bug 212841] getting panic during mps reinitialization.

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212841

--- Comment #2 from prateek sethi  ---
Comment on attachment 174986
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=174986
fix for the issue

I triggered reinit case almost 100 times and got this issue about 17 times.
After putting this fix I have triggered reinitialization over 1000 times and it
is working without crashing.

I was using LSI SAS2308 card.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 212841] getting panic during mps reinitialization.

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212841

Mark Linimon  changed:

   What|Removed |Added

 CC|freebsd-am...@freebsd.org   |freebsd-s...@freebsd.org
   Keywords||patch

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 135164] [keyboard] UK currency key inactive

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=135164

Ian Goddard  changed:

   What|Removed |Added

 CC||b...@austonley.org.uk

--- Comment #1 from Ian Goddard  ---
Problem still exists on 11.0 beta. The ¬ key is also inactive.  The unshifted 3
and ` are OK however.  All other punctuation seems OK.  Keyboard is Chesen USB,
motherboard is Asrock Q1900TM-ITX

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

[Bug 211965] [patch] fmodl not properly aliased on architectures where LDBL_PREC == 53 (arm, mips, powerpc)

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211965

Kyle Evans  changed:

   What|Removed |Added

 Status|New |Closed
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 212841] getting panic during mps reinitialization.

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212841

Sean Bruno  changed:

   What|Removed |Added

 CC||sbr...@freebsd.org

--- Comment #3 from Sean Bruno  ---
I'm not a big fan of using msleep() to work around hardware, but can you try
and put an msleep in your loop so that it pauses a bit before banging again? 
Thank you for your diagnosis and patch!

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 184340] PATH_MAX not interoperable with Linux

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=184340

dcund...@a2hosting.com changed:

   What|Removed |Added

Version|9.2-RELEASE |CURRENT

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 184340] PATH_MAX not interoperable with Linux

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=184340

dcund...@a2hosting.com changed:

   What|Removed |Added

   Severity|Affects Only Me |Affects Some People

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 212858] FreeBSD 11-stable regression in storage IOPS

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212858

Bug ID: 212858
   Summary: FreeBSD 11-stable regression in storage IOPS
   Product: Base System
   Version: 11.0-STABLE
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: patrick_...@yahoo.com.hk
CC: freebsd-am...@freebsd.org
CC: freebsd-am...@freebsd.org

I have this VM (FreeBSD 10.3) in this setting:

KVM (Fedora 24)
VM (FreeBSD 10.3) and there are virtio-scsi disks connected to the VM:
1) OS disk
2) ZFS data disks
3) ZFS ZIL

All three files in host file system is file based. The files are stored in the
SSD.

I have done fio IO test in the FreeBSD VM:

The bandwidth and IO is :
READ bw=14709KB/s, iops=3677
WRITE bw=4898.8KB/s, iops=1224

After changing the VM to FreeBSD 11.0-stable, other settings remain the same.
I do fio IO test again.

The new statistics is:
READ bw=5651.3KB/s, iops=1412
WRITE bw=1889.1KB/s, iops=472


For reference, the command for fio:
fio --filename=./testfile --direct=1 --rw=randrw --refill_buffers --norandommap
--randrepeat=0 --ioengine=sync --bs=4k --rwmixread=75 --iodepth=16 --numjobs=8
--runtime=60 --group_reporting --fsync=1 --name=4ktest -size=4G

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 212841] getting panic during mps reinitialization.

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212841

Ngie Cooper  changed:

   What|Removed |Added

 CC||n...@freebsd.org

--- Comment #4 from Ngie Cooper  ---
Are you running the latest firmware? My group was running into similar gnarly
problems on ^/stable/11 with the old firmware and a new driver, but after we
upgraded the firmware, everything was groovy.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 194755] w -n does not replace all hostnames with IP-adresses

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194755

Kurt Jaeger  changed:

   What|Removed |Added

Version|10.0-RELEASE|CURRENT

--- Comment #3 from Kurt Jaeger  ---
With r285550, more of the IPv6 can be seen, but the problem remains, that it
displays IPs only for hostnames that return only one IP on reverse lookup.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 201650] (e)grep handling regexp wrong

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201650

Ben RUBSON  changed:

   What|Removed |Added

 CC||ben.rub...@gmail.com

--- Comment #6 from Ben RUBSON  ---
grep also fails with case :

# echo AAA > test
# grep a test
# grep "[a-z]" test
AAA
# echo BBB | grep "[a-z]"
BBB

# grep -V
grep (GNU grep) 2.5.1-FreeBSD
# uname -r
11.0-RC3

Quite dangerous issue, could we think about having it corrected for FreeBSD 11
release ?

Many thanks,

Ben

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 201650] (e)grep handling regexp wrong

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201650

--- Comment #7 from Daniël de Kok  ---
Note that B can be in the range a-z depending on collation settings:

http://unix.stackexchange.com/questions/15980/does-should-lc-collate-affect-character-ranges

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

[Bug 212861] [tmpfs] uchg files can be removed by root

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212861

Ngie Cooper  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|freebsd...@freebsd.org

--- Comment #1 from Ngie Cooper  ---
Sidenote:

$ uname -a
FreeBSD fbsd12 12.0-CURRENT FreeBSD 12.0-CURRENT #3 r305956: Sun Sep 18
21:40:02 PDT 2016 ngie@fbsd11:/usr/obj/usr/src/svn/sys/GENERIC-NODEBUG 
amd64

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 212861] [tmpfs] uchg files can be removed by root

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212861

Bug ID: 212861
   Summary: [tmpfs] uchg files can be removed by root
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: n...@freebsd.org

This issue seems to be present on tmpfs, only (it always returns EPERM on UFS).
Not sure about ZFS.

Found by contrib/netbsd-tests/fs/tmpfs/t_remove.sh .

The following command snippets demonstrate the repro:

Invariant tested with UFS:

$ touch /tmp/uchg.file
$ chflags uchg /tmp/uchg.file
$ rm -f /tmp/uchg.file
rm: /tmp/uchg.file: Operation not permitted
$ rm /tmp/uchg.file 
override rw-r--r--  ngie/wheel uchg for /tmp/uchg.file? y
rm: /tmp/uchg.file: Operation not permitted
$

Invariant tested with tmpfs:

$ mntpt=/tmp/tmpfs
$ mkdir $mntpt
$ sudo mount -t tmpfs tmpfs $mntpt
$ cd $mntpt
$ touch uchg.file; chflags uchg uchg.file
$ rm -f uchg.file 
rm: uchg.file: Operation not permitted
$ sudo rm -f uchg.file 
$ ls uchg.file 
ls: uchg.file: No such file or directory
$

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 201650] (e)grep handling regexp wrong

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201650

--- Comment #8 from Ben RUBSON  ---
You're right Daniël, I must face this.
What is strange is that on 2 different systems with the same LC_COLLATE,
results are not the same.
Really disturbing.
Thank you for the link, and sorry for the noise...

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

[Bug 179644] [panic] worklist_remove: 0xfffffe001b6f6000 pagedep(0x0) not on list

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=179644

alexmontoane...@gmail.com changed:

   What|Removed |Added

 CC||alexmontoane...@gmail.com

--- Comment #1 from alexmontoane...@gmail.com ---
I had this one too, here my dumps

http://pastebin.com/NRaycr5F

This is a CGNAT server, working with ipnat.

Around 45k nat sessions.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 212872] Fatal trap 12: page fault while... | |supervisor read data, page not present | ipf_frag_lookup | bcmp

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212872

Bug ID: 212872
   Summary: Fatal trap 12: page fault while...  | |supervisor read
data, page not present | ipf_frag_lookup | bcmp
   Product: Base System
   Version: 10.3-RELEASE
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: alexmontoane...@gmail.com
CC: freebsd-am...@freebsd.org
CC: freebsd-am...@freebsd.org

This is a NAT machine.

Working with ipnat.

Around 45k nat sessions.


Full dump here;
http://pastebin.com/Lem2qGf8

Summary:
nat1 dumped core - see /var/crash/vmcore.4

Tue Sep 20 18:24:24 BRT 2016

FreeBSD nat1 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02
UTC 2016 r...@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

panic: page fault

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
[301648] 
[301648] 
[301648] Fatal trap 12: page fault while in kernel mode
[301648] cpuid = 3; apic id = 06
[301648] fault virtual address  = 0x100e050130
[301648] fault code = supervisor read data, page not present
[301648] instruction pointer= 0x20:0x80d53bac
[301648] stack pointer  = 0x28:0xfe01ef7093b0
[301648] frame pointer  = 0x28:0xfe01ef7093c0
[301648] code segment   = base 0x0, limit 0xf, type 0x1b
[301648]= DPL 0, pres 1, long 1, def32 0, gran 1
[301648] processor eflags   = interrupt enabled, resume, IOPL = 0
[301648] current process= 12 (irq269: igb2:que 3)
[301648] trap number= 12
[301648] panic: page fault
[301648] cpuid = 3
[301648] KDB: stack backtrace:
[301648] #0 0x8098e390 at kdb_backtrace+0x60
[301648] #1 0x80951066 at vpanic+0x126
[301648] #2 0x80950f33 at panic+0x43
[301648] #3 0x80d55f7b at trap_fatal+0x36b
[301648] #4 0x80d5627d at trap_pfault+0x2ed
[301648] #5 0x80d558fa at trap+0x47a
[301648] #6 0x80d3b8d2 at calltrap+0x8
[301648] #7 0x81e24402 at ipf_frag_lookup+0x112
[301648] #8 0x81e2427a at ipf_frag_natknown+0x4a
[301648] #9 0x81e21790 at ipf_nat_checkin+0x150
[301648] #10 0x81e3d8ff at ipf_check+0x2af
[301648] #11 0x80a24ef4 at pfil_run_hooks+0x84
[301648] #12 0x80a849be at ip_input+0x2fe
[301648] #13 0x80a24092 at netisr_dispatch_src+0x62
[301648] #14 0x80a1b456 at ether_demux+0x126
[301648] #15 0x80a1c0fe at ether_nh_input+0x35e
[301648] #16 0x80a24092 at netisr_dispatch_src+0x62
[301648] #17 0x80a1b3c1 at ether_demux+0x91
[301648] Uptime: 3d11h47m28s
[301649] Dumping 894 out of 8152 MB: (CTRL-C to abort)
..2%..11%..22%..31%..42%..51%..61%..72%..81%..92%

Reading symbols from /boot/kernel/zfs.ko.symbols...done.
Loaded symbols for /boot/kernel/zfs.ko.symbols
Reading symbols from /boot/kernel/opensolaris.ko.symbols...done.
Loaded symbols for /boot/kernel/opensolaris.ko.symbols
Reading symbols from /boot/kernel/if_lagg.ko.symbols...done.
Loaded symbols for /boot/kernel/if_lagg.ko.symbols
Reading symbols from /boot/kernel/fdescfs.ko.symbols...done.
Loaded symbols for /boot/kernel/fdescfs.ko.symbols
Reading symbols from /boot/kernel/ipl.ko.symbols...done.
Loaded symbols for /boot/kernel/ipl.ko.symbols
Reading symbols from /boot/kernel/ipfw.ko.symbols...done.
Loaded symbols for /boot/kernel/ipfw.ko.symbols
#0  doadump (textdump=) at pcpu.h:219
219 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) #0  doadump (textdump=) at pcpu.h:219
#1  0x80950cc2 in kern_reboot (howto=260)
at /usr/src/sys/kern/kern_shutdown.c:486
#2  0x809510a5 in vpanic (fmt=, 
ap=) at /usr/src/sys/kern/kern_shutdown.c:889
#3  0x80950f33 in panic (fmt=0x0)
at /usr/src/sys/kern/kern_shutdown.c:818
#4  0x80d55f7b in trap_fatal (frame=, 
eva=) at /usr/src/sys/amd64/amd64/trap.c:858
#5  0x80d5627d in trap_pfault (frame=0xfe01ef709300, 
usermode=) at /usr/src/sys/amd64/amd64/trap.c:681
#6  0x80d558fa in trap (frame=0xfe01ef709300)
at /usr/src/sys/amd64/amd64/trap.c:447
#7  0x80d3b8d2 in calltrap ()
at /usr/src/sys/amd64/amd64/exception.S:236
#8  0x80d53bac in bcmp () at /usr/src/sys/amd64/amd64/support.S:87
#9  0x81e24402 in ipf_frag_lookup ()
at
/usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/

[Bug 212872] Fatal trap 12: page fault while... |supervisor read data, page not present | ipf_frag_lookup | bcmp

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212872

alexmontoane...@gmail.com changed:

   What|Removed |Added

Summary|Fatal trap 12: page fault   |Fatal trap 12: page fault
   |while...  | |supervisor |while... |supervisor read
   |read data, page not present |data, page not present |
   || ipf_frag_lookup | bcmp|ipf_frag_lookup | bcmp

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 212873] pf kernel abort at boot in pf_purge_expired_fragments

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212873

Bug ID: 212873
   Summary: pf kernel abort at boot in pf_purge_expired_fragments
   Product: Base System
   Version: CURRENT
  Hardware: arm
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: p-fbsd-b...@ziemba.us

My analysis: it looks as if there is a null pointer dereference inside
TAILQ_LAST on line 225 of pf_norm.c.

Version:

I obtained sources 15 Sep 2016 14:38 PDT via svn from
https://svn0.us-west.freebsd.org/base/head and built with crochet, resulting in
FreeBSD-armv6-12.0-RPI2-305849.img.

Hardware:

Raspberry PI 2

Conditions:

1. There is no pf.conf file
2. pf_enable="YES" in rc.conf
3. pflog_enable="YES" in rc.conf
4. ue1 not attached to USB (i.e., presence/absence made no difference)
5. ue0 is the onboard usb ethernet

Here is /etc/rc.conf:

 start /etc/rc.conf 
hostname="bogart.ziemba.us"
defaultrouter="10.0.0.1"
ifconfig_ue0="inet 10.0.0.84/16"
ifconfig_ue1="inet 192.168.0.2/24 fib 1"
ifconfig_DEFAULT="DHCP"

vlans_ue0="101"
create_args_ue0_101="fib 1"
ifconfig_ue0_101="inet 10.126.0.3/16 fib 1"
static_routes="fib1default"
route_fib1default="default 10.126.0.2 -fib 1"

dhcpd_enable="YES"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces=""
dhcpd_withumask="022"

sshd_enable="YES"
inetd_enable="YES"

sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

growfs_enable="YES"

fsck_y_enable="YES"
saver="blank"
ntpd_enable="YES"
ntpd_sync_on_start="YES"

# NO /etc/pf.conf is present for this test
pf_enable="YES"
pf_rules="/etc/pf.conf"
pf_flags=""
# uncommenting the following two lines results in failure at boot
#pflog_enable="YES"
#pflog_logfile="/tmp/pflog"
 end /etc/rc.conf 


At boot, the console displays the following (hand-transcribed, it should be
character-for-character correct):

 begin console transcription 
Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex pf fragments (pf fragments) r = 0 (0xc4e03808) locked 0
/v2/Source/public/freebsd/pi/crochet/src/sys/modules/pf/../../netpfil/pf/pf_norm.c:224
stack backtrace:
Fatal kernel mode data abort: 'Translation Fault (L1)' on read
trapframe: 0xeb4c2d40
FSR=0005, FAR=0004, spsr=8013
r0 =, r1 =0001, r2 =, r3 =c087b774
r4 =000f, r5 =c4df839a, r6 =c4e03800, r7 =
r8 =c4e0343c, r9 =c4e03458, r10=, r11=eb4c2df0
r12=c4e03808, ssp=eb4c2dd0, slr=c02a6514, pc =c4deb88c

[ thread pid 358 tid 100084 ]
Stopped at  pf_purge_expired_fragments+0x44:   ldrr0, [r0, #0x004]
db>
 end console transcription 

Note that r0 is NULL.

Typing on my USB keyboard does not produce anything at the db> prompt, and I
don't have a serial console yet (awaiting special rpi cable in the mail), so I
haven't been able to interact with the debugger.

Here is the output of objdump:

 from objdump output start 
00024848 :
pf_purge_expired_fragments():
/v2/Source/public/freebsd/pi/crochet/src/sys/modules/pf/../../netpfil/pf/pf_norm
.c:219
return (0);
}

void
pf_purge_expired_fragments(void)
{
struct pf_fragment  *frag;
u_int32_texpire = time_uptime -
   24864:   e5904000ldr r4, [r0]
   24868:   e594ldr r0, [r0, #4]
/v2/Source/public/freebsd/pi/crochet/src/sys/modules/pf/../../netpfil/pf/pf_norm.c:222
V_pf_default_rule.timeout[PFTM_FRAG];
   2486c:   e59f00acldr r0, [pc, #172]  ; 24920

   24870:   e59072a4ldr r7, [r0, #676]
/v2/Source/public/freebsd/pi/crochet/src/sys/modules/pf/../../netpfil/pf/pf_norm.c:224

PF_FRAG_LOCK();
   24874:   e59f00a8ldr r0, [pc, #168]  ; 24924

   24878:   e2800010add r0, r0, #16 ; 0x10
   2487c:   e58dstr r0, [sp]
   24880:   ebff810dbl  4cbc 
/v2/Source/public/freebsd/pi/crochet/src/sys/modules/pf/../../netpfil/pf/pf_norm.c:225
while ((frag = TAILQ_LAST(&V_pf_fragqueue, pf_fragqueue)) != NULL) {
   24884:   e59f60a0ldr r6, [pc, #160]  ; 2492c

   24888:   e5960004ldr r0, [r6, #4]
   2488c:   e594ldr r0, [r0, #4]
   24890:   e5905000ldr r5, [r0]
   24894:   e355cmp r5, #0  ; 0x0
   24898:   0a18beq 24900 
/v2/Source/public/freebsd/pi/crochet/src/sys/modules/pf/../../netpfil/pf/pf_norm.c:221
 from objdump output end 

Here is the relevant bit of sys/queue.h:

 from sys/queue.h start 
#define TAILQ_LAST(head, headname)  \
(*(((struct headname *)((head)->tqh_last))->tqh_last))
 from sys/queue.h end 

1. The con

[Bug 212875] [patch] add -d (domain) flag to hostname

2016-09-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212875

Bug ID: 212875
   Summary: [patch] add -d (domain) flag to hostname
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Keywords: patch
  Severity: Affects Only Me
  Priority: ---
 Component: bin
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: ben.rub...@gmail.com

Created attachment 175028
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=175028&action=edit
patch to add -d flag to hostname

Hello,

Here is a patch to add -d flag to hostname command.
-d prints domain only.

# hostname
server.domain.com
# hostname -s
server
# hostname -d
domain.com

Thank you for merging !

Ben

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"