Bug 242298 - kernel Freeze at boot
Summary: kernel Freeze at boot
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-29 16:01 UTC by JeanAumont
Modified: 2019-11-29 18:14 UTC (History)
1 user (show)

See Also:


Attachments
The file: /var/log/message (583.72 KB, text/plain)
2019-11-29 16:01 UTC, JeanAumont
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description JeanAumont 2019-11-29 16:01:42 UTC
Created attachment 209529 [details]
The file: /var/log/message

Hi,

kennel version 12.1 freeze at boot and the last messages that I can see on the console are as follow:

Trying to mount root from ufs:/dev/da0p2 [rw]...
ugen0.3: <Generic USB3.0-CRW> at usbus0
umass0 numa-domain 0 on uhub0
umass0: <Bulk-In, Bulk-Out, Interface> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:1:0: Attached to scbus1
(probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(probe0:umass-sim0:0:0:0): Error 22, Unretryable error
da1 at umass-sim0 bus 0 scbus1 target 0 lun 0
da1: <Generic- SD/MMC CRW 1.00> Removable Direct Access SPC-4 SCSI device
da1: Serial Number 29203008282014000
da1: 400.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
da1: quirks=0x2<NO_6_BYTE>

I have recuperated a /var/log/message so you can see the messages.

Thanks,

Jean Aumont
Comment 1 JeanAumont 2019-11-29 16:23:09 UTC
I have no idea if this is important or not. 
The content of my /etc/rc.conf file is as follow:

hostname="BUGGY"
ifconfig_bge0="inet 10.18.136.9 netmask 255.255.248.0"

vlans_bge1="100"

ifconfig_bge1_100="inet 10.17.1.3 netmask 255.255.255.0 descr V100-DarkFiber"
#ifconfig_bge1_100_alias0="inet 10.17.1.1 netmask 255.255.255.0 descr CARP-V100-DarkFiber vhid 10 advbase 2 advskew 90 pass BV1V100"
ifconfig_bge1="up"

ifconfig_mce0="inet 192.168.10.9 netmask 255.255.255.0"
ifconfig_mce1="inet 192.168.11.9 netmask 255.255.255.0"
defaultrouter="10.18.136.1"
sshd_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"

If I comment the line with the carp interface, the system will boot,
and I can add the carp interface manually and it will work.

If I uncomment the line with the carp inteface, the system will freeze
with the error messages previously mentionned.
Comment 2 JeanAumont 2019-11-29 16:40:33 UTC
Well, I found the bug .... it has nothing to do with the "umasss0" message.

It is related to the /etc/rc.conf file.

If you put this in the configuration file:

vlans_bge1="100"
ifconfig_bge1_100="inet 10.17.1.3 netmask 255.255.255.0 descr V100-DarkFiber"
ifconfig_bge1_100_alias0="inet 10.17.1.1 netmask 255.255.255.0 descr CARP-V100-DarkFiber vhid 10 advbase 2 advskew 90 pass BV1V100"

The system will not boot properly and freeze ...

If you put this in the configuration file (no descr on carp interface)

ifconfig_bge1_100="inet 10.17.1.3 netmask 255.255.255.0 descr V100-DarkFiber"
ifconfig_bge1_100_alias0="inet 10.17.1.1 netmask 255.255.255.0 vhid 10 advbase 2 advskew 90 pass BV1V100"

The system boot perfectly.... LOL !!! 

Cosmetic bug !!!

Thanks

Jean Aumont
Comment 3 Hans Petter Selasky freebsd_committer freebsd_triage 2019-11-29 16:42:45 UTC
OK, no problem. Are you closing this issue then?
Comment 4 JeanAumont 2019-11-29 18:14:18 UTC
Hi,

I managed a work around for the problem, but the fact that the server will not boot if you put description on a carp interface and one on the vlan interface is an issue that I think should be address, specially since no error message are display about the problem.

I was quite lucky to find the work around.

Thanks,

Jean Aumont