Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic with debug kernel #4

Open
netfenceventu opened this issue Jun 8, 2021 · 9 comments
Open

Panic with debug kernel #4

netfenceventu opened this issue Jun 8, 2021 · 9 comments

Comments

@netfenceventu
Copy link

netfenceventu commented Jun 8, 2021

For reasons beyond the scope of this driver, I compiled a 12.2/amd64 kernel with the following:

options INVARIANTS
options INVARIANT_SUPPORT
options WITNESS
options WITNESS_SKIPSPIN
options DEBUG_LOCKS
options DIAGNOSTIC

Booting with it makes this driver panic with:
_mtx_lock_sleep: recursed on non-recursive mutex re0 0 if_re.c:7085

@kostikbel
Copy link
Owner

There is no useful information in your report. Provide all the data that was printed by kernel, on panic.

@netfenceventu
Copy link
Author

netfenceventu commented Jun 9, 2021 via email

@kostikbel
Copy link
Owner

Load the module after the machine in multiuser.

If screen shots are readable, try posting that.

@netfenceventu
Copy link
Author

netfenceventu commented Jun 12, 2021 via email

@kostikbel
Copy link
Owner

kostikbel commented Jun 12, 2021

On 6/9/21 2:05 PM, Konstantin Belousov wrote: Load the module after the machine in multiuser.
Curiously, if I boot single user, then load this module, it does not panic. In multi user mode, it does, but still saves no core (and this machine normally does).
If screen shots are readable, try posting that.
Here it is. HTH.

Where are the screenshots?

Also, I found this in the logs:
a> lamar kernel: bus_dma_tag_create with the following non-sleepable locks held: Jun 12 08:39:58 alamar kernel: exclusive sleep mutex re0 (network driver) r = 0 (0xfffffe0004f29150) locked @ if_re.c:5118

This might be related, but probably not. I will fix these warnings meantime.

kostikbel added a commit that referenced this issue Jun 12, 2021
busdma_tag_create() can sleep, drop RE lock around the calls to it

GH issue:	#4
@netfenceventu
Copy link
Author

IMG_20210608_074512

Sorry, I had sent it via mail as an attachment, but it must have been stripped.
I'm uploading it now.

@kostikbel
Copy link
Owner

I pushed the supposed fix as 53bb979

@netfenceventu
Copy link
Author

netfenceventu commented Jun 20, 2021 via email

@nbakker
Copy link

nbakker commented Jun 22, 2021

This has now been committed to the ports tree: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256757

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants