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

FreeBSD: zdb "Memory fault" in ZTS #16311

Closed
tonyhutter opened this issue Jun 28, 2024 · 2 comments
Closed

FreeBSD: zdb "Memory fault" in ZTS #16311

tonyhutter opened this issue Jun 28, 2024 · 2 comments
Labels
Component: Test Suite Indicates an issue with the test framework or a test case Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@tonyhutter
Copy link
Contributor

tonyhutter commented Jun 28, 2024

System information

Type Version/Name
Distribution Name FreeBSD
Distribution Version 13
Kernel Version
Architecture x86_64
OpenZFS Version master

Describe the problem you're observing

While doing testing for #15838 I started hitting "Memory fault" zdb errors on FreeBSD 13. I was testing out running ZTS on a VM running within a github runner, so I assumed it was my weird test environment was the problem. Then I saw it in the test results for an unrelated PR (#16304):

https://build.openzfs.org/builders/FreeBSD%20stable%2F13%20amd64%20%28TEST%29/builds/2278/steps/shell_4/logs/log

Just search for "Memory fault" in the logs and you'll see a ton of failures.

Describe how to reproduce the problem

I can only reproduce it on a github runner using the non-standard setup in #15838.

Include any warning/errors/backtraces from the system logs

15:42:17.55 Call trace:
15:42:17.55 0x821ed3b66 <libspl_backtrace+0x26> at /usr/local/lib/libzpool.so.5
15:42:17.55 0x214c15 <main+0x1235> at /var/tmp/constrained_path.CUiLlO/zdb
15:42:17.55 0x826a502d0 <pthread_sigmask+0x540> at /lib/libthr.so.3
15:42:17.55 0x826a4f88b <pthread_setschedparam+0x84b> at /lib/libthr.so.3
15:42:17.55 0x7ffffffff923 <_fini+0x7fffffdd55a7> at ???
15:42:17.55 0x82422f3f3 <nvlist_free+0x13> at /usr/local/lib/libnvpair.so.3
15:42:17.55 /usr/local/share/zfs/zfs-tests/tests/functional/alloc_class/alloc_class_012_pos.ksh[120]: check_removal[105]: log_must[70]: log_pos: line 265: 41670: Memory fault
15:42:17.55 ERROR: zdb -bbcc testpool exited 267
@tonyhutter tonyhutter added Component: Test Suite Indicates an issue with the test framework or a test case Type: Defect Incorrect behavior (e.g. crash, hang) labels Jun 28, 2024
@tonyhutter
Copy link
Contributor Author

@mcmilk
Copy link
Contributor

mcmilk commented Jul 9, 2024

PR #16332 should fix this.

mcmilk added a commit to mcmilk/zfs that referenced this issue Jul 9, 2024
Reason: nvlist_free() tries to free sth. which isn't allocted
Solution: init this variable with NULL

Signed-off-by: Tino Reichardt <[email protected]>
Closes openzfs#16311
mcmilk added a commit to mcmilk/zfs that referenced this issue Jul 9, 2024
- reason: nvlist_free() tries to free sth. which isn't allocted
- solution: init this variable with NULL

Signed-off-by: Tino Reichardt <[email protected]>

Closes openzfs#16311
mcmilk added a commit to mcmilk/zfs that referenced this issue Jul 9, 2024
- reason: nvlist_free() tries to free sth. which isn't allocted
- solution: init this variable with NULL

Signed-off-by: Tino Reichardt <[email protected]>

Closes openzfs#16311
ixhamza pushed a commit to truenas/zfs that referenced this issue Aug 13, 2024
Reason: nvlist_free() tries to free sth. which isn't allocted
Solution: init this variable with NULL

Closes openzfs#16311
Signed-off-by: Tino Reichardt <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Ameer Hamza <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
ixhamza pushed a commit to truenas/zfs that referenced this issue Aug 13, 2024
Reason: nvlist_free() tries to free sth. which isn't allocted
Solution: init this variable with NULL

Closes openzfs#16311
Signed-off-by: Tino Reichardt <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Ameer Hamza <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
lundman pushed a commit to openzfsonwindows/openzfs that referenced this issue Sep 4, 2024
Reason: nvlist_free() tries to free sth. which isn't allocted
Solution: init this variable with NULL

Closes openzfs#16311
Signed-off-by: Tino Reichardt <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Ameer Hamza <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Test Suite Indicates an issue with the test framework or a test case Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

2 participants