Tomasz Kłoczko
2020-Sep-13 18:13 UTC
[Nouveau] libva-utils test siuite is crashing in nouveau sriver
Hi, I'm hitting that issue since Mesa 20.0.6 and it is present still in latest version 20.1.7 ``` [tkloczko at barrel SPECS]$ coredumpctl gdb 3926866 PID: 3926866 (test_va_api) UID: 1000 (tkloczko) GID: 1000 (tkloczko) Signal: 11 (SEGV) Timestamp: Sun 2020-09-13 18:57:06 BST (32s ago) Command Line: ./test_va_api Executable: /home/tkloczko/rpmbuild/BUILD/libva-utils-2.9.0/test/test_va_api Control Group: /user.slice/user-1000.slice/session-297.scope Unit: session-297.scope Slice: user-1000.slice Session: 297 Owner UID: 1000 (tkloczko) Boot ID: ab9d350c623e4313bacb892de46b85f9 Machine ID: d033f66b249a4ec09acfa81ac205554f Hostname: barrel Storage: /var/lib/systemd/coredump/core.test_va_api.1000.ab9d350c623e4313bacb892de46b85f9.3926866.1600019826000000.zst Message: Process 3926866 (test_va_api) of user 1000 dumped core. Stack trace of thread 3926866: #0 0x00007f4e2d3fb6d2 vlVaCreateContext (nouveau_drv_video.so + 0xb16d2) #1 0x00007f4e2e32d0f7 vaCreateContext (libva.so.2 + 0x190f7) #2 0x000055b48d29a419 n/a (/home/tkloczko/rpmbuild/BUILD/libva-utils-2.9.0/test/test_va_api + 0x4e419) GNU gdb (GDB) Fedora 9.0.50.20191119-2.fc32 Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/tkloczko/rpmbuild/BUILD/libva-utils-2.9.0/test/test_va_api... [New LWP 3926866] [New LWP 3926903] [New LWP 3926906] [New LWP 3926905] [New LWP 3926904] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `./test_va_api'. Program terminated with signal SIGSEGV, Segmentation fault. #0 vlVaCreateContext (ctx=<optimized out>, config_id=4294967295, picture_width=1920, picture_height=1080, flag=1, render_targets=0x0, num_render_targets=0, context_id=0x55b48e39c458) at ../src/gallium/state_trackers/va/context.c:229 229 ../src/gallium/state_trackers/va/context.c: No such file or directory. [Current thread is 1 (Thread 0x7f4e2ddbf4c0 (LWP 3926866))] elfutils-libelf-0.181-2.fc34.x86_64 expat-2.2.9-2.2.fc34.x86_64 glibc-2.32.9000-5.fc34.x86_64 gmp-6.2.0-5.fc33.x86_64 libX11-1.6.12-2.fc34.x86_64 libX11-xcb-1.6.12-2.fc34.x86_64 libXau-1.0.9-5.fc33.x86_64 libXdmcp-1.1.3-5.fc33.x86_64 libdrm-2.4.102-3.fc34.x86_64 libedit-3.1-34.20191231cvs.fc34.x86_64 libffi-3.2.1-2.3.fc32.x86_64 libgcc-10.2.1-3.fc34.x86_64 libstdc++-10.2.1-3.fc34.x86_64 libva-2.9.0-2.fc34.x86_64 libxcb-1.14-6.fc34.x86_64 libxml2-2.9.10-8.fc34.x86_64 libxshmfence-1.3-8.fc33.x86_64 libzstd-1.4.5-7.fc34.x86_64 llvm-libs-10.0.1-2.1.fc34.x86_64 ncurses-libs-6.2-4.20200817.fc34.x86_64 sssd-client-2.3.0-2.fc33.x86_64 xz-libs-5.2.5-4.fc33.x86_64 z3-libs-4.8.8-5.fc33.x86_64 zlib-1.2.11-23.fc33.x86_64 (gdb) bt full Missing separate debuginfos, use: dnf debuginfo-install#0 vlVaCreateContext (ctx=<optimized out>, config_id=4294967295, picture_width=1920, picture_height=1080, flag=1, render_targets=0x0, num_render_targets=0, context_id=0x55b48e39c458) at ../src/gallium/state_trackers/va/context.c:229 drv = 0x55b48e398280 context = <optimized out> config = 0x0 is_vpp = <optimized out> #1 0x00007f4e2e32d0f7 in vaCreateContext () from /lib64/libva.so.2 No symbol table info available. #2 0x000055b48d29a419 in VAAPI::VAAPIFixture::doCreateContext (this=<optimized out>, resolution=..., expectation=@0x7ffea3f6e468: 4) at test_va_api_fixture.cpp:436 gtest_ar = {success_ = 32, message_ = {ptr_ = 0xebe6e1ca084a2300}} #3 0x000055b48d29ed34 in VAAPI::VAAPICreateContextToFail_CreateContextWithNoConfig_Test::TestBody (this=0x55b48e39c430) at test_utils.h:36 No locals. #4 0x000055b48d296e23 in testing::Test::Run (this=0x55b48e39c430) at ../test/gtest/src/gtest.cc:2474 impl = 0x55b48d91af60 impl = <optimized out> #5 testing::Test::Run (this=0x55b48e39c430) at ../test/gtest/src/gtest.cc:2465 impl = <optimized out> impl = <optimized out> #6 testing::TestInfo::Run (this=0x55b48d91fe00) at ../test/gtest/src/gtest.cc:2656 impl = 0x55b48d91af60 repeater = 0x55b48d91add0 start = 1600019826817 test = 0x55b48e39c430 impl = <optimized out> repeater = <optimized out> start = <optimized out> test = <optimized out> #7 testing::TestInfo::Run (this=0x55b48d91fe00) at ../test/gtest/src/gtest.cc:2630 impl = <optimized out> repeater = <optimized out> start = <optimized out> test = <optimized out> impl = <optimized out> repeater = <optimized out> start = <optimized out> test = <optimized out> #8 testing::TestCase::Run (this=0x55b48d9227d0) at ../test/gtest/src/gtest.cc:2774 i = 0 impl = 0x55b48d91af60 repeater = 0x55b48d91add0 start = 1600019826817 impl = <optimized out> repeater = <optimized out> start = <optimized out> i = <optimized out> #9 testing::TestCase::Run (this=0x55b48d9227d0) at ../test/gtest/src/gtest.cc:2759 impl = <optimized out> repeater = <optimized out> start = <optimized out> impl = <optimized out> repeater = <optimized out> start = <optimized out> i = <optimized out> #10 testing::internal::UnitTestImpl::RunAllTests (this=<optimized out>) at ../test/gtest/src/gtest.cc:4649 test_index = 4 start = 1600019826482 i = 0 should_shard = <optimized out> has_tests_to_run = true repeater = 0x55b48d91add0 forever = <optimized out> in_subprocess_for_death_test = <optimized out> --Type <RET> for more, q to quit, c to continue without paging-- failed = false repeat = <optimized out> in_subprocess_for_death_test = <optimized out> should_shard = <optimized out> has_tests_to_run = <optimized out> failed = <optimized out> repeater = <optimized out> repeat = <optimized out> forever = <optimized out> i = <optimized out> start = <optimized out> test_index = <optimized out> #11 testing::internal::UnitTestImpl::RunAllTests (this=<optimized out>) at ../test/gtest/src/gtest.cc:4551 in_subprocess_for_death_test = <optimized out> should_shard = <optimized out> has_tests_to_run = <optimized out> failed = <optimized out> repeater = <optimized out> repeat = <optimized out> forever = <optimized out> i = <optimized out> start = <optimized out> test_index = <optimized out> #12 0x000055b48d265179 in testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (location=<synthetic pointer>, method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x55b48d295c20 <testing::internal::UnitTestImpl::RunAllTests()>, object=0x55b48d91af60) at ../test/gtest/src/gtest.cc:2410 No locals. #13 testing::UnitTest::Run (this=0x55b48d2bb340 <testing::UnitTest::GetInstance()::instance>) at ../test/gtest/src/gtest.cc:4257 in_death_test_child_process = <optimized out> premature_exit_file = <optimized out> in_death_test_child_process = <optimized out> premature_exit_file = <optimized out> #14 RUN_ALL_TESTS () at ../test/gtest/include/gtest/gtest.h:2233 No locals. #15 main (argc=<optimized out>, argv=0x7ffea3f6e798) at test_main.cpp:31 No locals. (gdb) ``` Any help/hints about what I can do to help diagnose that issue? kloczek -- Tomasz K?oczko | LinkedIn: *http://lnkd.in/FXPWxH <http://lnkd.in/FXPWxH>* -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20200913/72075781/attachment.htm>
Ilia Mirkin
2020-Sep-13 19:35 UTC
[Nouveau] libva-utils test siuite is crashing in nouveau sriver
What hardware are you using? On Sun, Sep 13, 2020 at 2:14 PM Tomasz K?oczko <kloczko.tomasz at gmail.com> wrote:> > Hi, > > I'm hitting that issue since Mesa 20.0.6 and it is present still in latest version 20.1.7 > > ``` > [tkloczko at barrel SPECS]$ coredumpctl gdb 3926866 > PID: 3926866 (test_va_api) > UID: 1000 (tkloczko) > GID: 1000 (tkloczko) > Signal: 11 (SEGV) > Timestamp: Sun 2020-09-13 18:57:06 BST (32s ago) > Command Line: ./test_va_api > Executable: /home/tkloczko/rpmbuild/BUILD/libva-utils-2.9.0/test/test_va_api > Control Group: /user.slice/user-1000.slice/session-297.scope > Unit: session-297.scope > Slice: user-1000.slice > Session: 297 > Owner UID: 1000 (tkloczko) > Boot ID: ab9d350c623e4313bacb892de46b85f9 > Machine ID: d033f66b249a4ec09acfa81ac205554f > Hostname: barrel > Storage: /var/lib/systemd/coredump/core.test_va_api.1000.ab9d350c623e4313bacb892de46b85f9.3926866.1600019826000000.zst > Message: Process 3926866 (test_va_api) of user 1000 dumped core. > > Stack trace of thread 3926866: > #0 0x00007f4e2d3fb6d2 vlVaCreateContext (nouveau_drv_video.so + 0xb16d2) > #1 0x00007f4e2e32d0f7 vaCreateContext (libva.so.2 + 0x190f7) > #2 0x000055b48d29a419 n/a (/home/tkloczko/rpmbuild/BUILD/libva-utils-2.9.0/test/test_va_api + 0x4e419) > > GNU gdb (GDB) Fedora 9.0.50.20191119-2.fc32 > Copyright (C) 2019 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > Type "show copying" and "show warranty" for details. > This GDB was configured as "x86_64-redhat-linux-gnu". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>. > Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from /home/tkloczko/rpmbuild/BUILD/libva-utils-2.9.0/test/test_va_api... > [New LWP 3926866] > [New LWP 3926903] > [New LWP 3926906] > [New LWP 3926905] > [New LWP 3926904] > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib64/libthread_db.so.1". > Core was generated by `./test_va_api'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 vlVaCreateContext (ctx=<optimized out>, config_id=4294967295, picture_width=1920, picture_height=1080, flag=1, render_targets=0x0, num_render_targets=0, context_id=0x55b48e39c458) > at ../src/gallium/state_trackers/va/context.c:229 > 229 ../src/gallium/state_trackers/va/context.c: No such file or directory. > [Current thread is 1 (Thread 0x7f4e2ddbf4c0 (LWP 3926866))] > elfutils-libelf-0.181-2.fc34.x86_64 expat-2.2.9-2.2.fc34.x86_64 glibc-2.32.9000-5.fc34.x86_64 gmp-6.2.0-5.fc33.x86_64 libX11-1.6.12-2.fc34.x86_64 libX11-xcb-1.6.12-2.fc34.x86_64 libXau-1.0.9-5.fc33.x86_64 libXdmcp-1.1.3-5.fc33.x86_64 libdrm-2.4.102-3.fc34.x86_64 libedit-3.1-34.20191231cvs.fc34.x86_64 libffi-3.2.1-2.3.fc32.x86_64 libgcc-10.2.1-3.fc34.x86_64 libstdc++-10.2.1-3.fc34.x86_64 libva-2.9.0-2.fc34.x86_64 libxcb-1.14-6.fc34.x86_64 libxml2-2.9.10-8.fc34.x86_64 libxshmfence-1.3-8.fc33.x86_64 libzstd-1.4.5-7.fc34.x86_64 llvm-libs-10.0.1-2.1.fc34.x86_64 ncurses-libs-6.2-4.20200817.fc34.x86_64 sssd-client-2.3.0-2.fc33.x86_64 xz-libs-5.2.5-4.fc33.x86_64 z3-libs-4.8.8-5.fc33.x86_64 zlib-1.2.11-23.fc33.x86_64 > (gdb) bt full > Missing separate debuginfos, use: dnf debuginfo-install#0 vlVaCreateContext (ctx=<optimized out>, config_id=4294967295, picture_width=1920, picture_height=1080, flag=1, render_targets=0x0, num_render_targets=0, context_id=0x55b48e39c458) > at ../src/gallium/state_trackers/va/context.c:229 > drv = 0x55b48e398280 > context = <optimized out> > config = 0x0 > is_vpp = <optimized out> > #1 0x00007f4e2e32d0f7 in vaCreateContext () from /lib64/libva.so.2 > No symbol table info available. > #2 0x000055b48d29a419 in VAAPI::VAAPIFixture::doCreateContext (this=<optimized out>, resolution=..., expectation=@0x7ffea3f6e468: 4) at test_va_api_fixture.cpp:436 > gtest_ar = {success_ = 32, message_ = {ptr_ = 0xebe6e1ca084a2300}} > #3 0x000055b48d29ed34 in VAAPI::VAAPICreateContextToFail_CreateContextWithNoConfig_Test::TestBody (this=0x55b48e39c430) at test_utils.h:36 > No locals. > #4 0x000055b48d296e23 in testing::Test::Run (this=0x55b48e39c430) at ../test/gtest/src/gtest.cc:2474 > impl = 0x55b48d91af60 > impl = <optimized out> > #5 testing::Test::Run (this=0x55b48e39c430) at ../test/gtest/src/gtest.cc:2465 > impl = <optimized out> > impl = <optimized out> > #6 testing::TestInfo::Run (this=0x55b48d91fe00) at ../test/gtest/src/gtest.cc:2656 > impl = 0x55b48d91af60 > repeater = 0x55b48d91add0 > start = 1600019826817 > test = 0x55b48e39c430 > impl = <optimized out> > repeater = <optimized out> > start = <optimized out> > test = <optimized out> > #7 testing::TestInfo::Run (this=0x55b48d91fe00) at ../test/gtest/src/gtest.cc:2630 > impl = <optimized out> > repeater = <optimized out> > start = <optimized out> > test = <optimized out> > impl = <optimized out> > repeater = <optimized out> > start = <optimized out> > test = <optimized out> > #8 testing::TestCase::Run (this=0x55b48d9227d0) at ../test/gtest/src/gtest.cc:2774 > i = 0 > impl = 0x55b48d91af60 > repeater = 0x55b48d91add0 > start = 1600019826817 > impl = <optimized out> > repeater = <optimized out> > start = <optimized out> > i = <optimized out> > #9 testing::TestCase::Run (this=0x55b48d9227d0) at ../test/gtest/src/gtest.cc:2759 > impl = <optimized out> > repeater = <optimized out> > start = <optimized out> > impl = <optimized out> > repeater = <optimized out> > start = <optimized out> > i = <optimized out> > #10 testing::internal::UnitTestImpl::RunAllTests (this=<optimized out>) at ../test/gtest/src/gtest.cc:4649 > test_index = 4 > start = 1600019826482 > i = 0 > should_shard = <optimized out> > has_tests_to_run = true > repeater = 0x55b48d91add0 > forever = <optimized out> > in_subprocess_for_death_test = <optimized out> > --Type <RET> for more, q to quit, c to continue without paging-- > failed = false > repeat = <optimized out> > in_subprocess_for_death_test = <optimized out> > should_shard = <optimized out> > has_tests_to_run = <optimized out> > failed = <optimized out> > repeater = <optimized out> > repeat = <optimized out> > forever = <optimized out> > i = <optimized out> > start = <optimized out> > test_index = <optimized out> > #11 testing::internal::UnitTestImpl::RunAllTests (this=<optimized out>) at ../test/gtest/src/gtest.cc:4551 > in_subprocess_for_death_test = <optimized out> > should_shard = <optimized out> > has_tests_to_run = <optimized out> > failed = <optimized out> > repeater = <optimized out> > repeat = <optimized out> > forever = <optimized out> > i = <optimized out> > start = <optimized out> > test_index = <optimized out> > #12 0x000055b48d265179 in testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (location=<synthetic pointer>, > method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x55b48d295c20 <testing::internal::UnitTestImpl::RunAllTests()>, object=0x55b48d91af60) > at ../test/gtest/src/gtest.cc:2410 > No locals. > #13 testing::UnitTest::Run (this=0x55b48d2bb340 <testing::UnitTest::GetInstance()::instance>) at ../test/gtest/src/gtest.cc:4257 > in_death_test_child_process = <optimized out> > premature_exit_file = <optimized out> > in_death_test_child_process = <optimized out> > premature_exit_file = <optimized out> > #14 RUN_ALL_TESTS () at ../test/gtest/include/gtest/gtest.h:2233 > No locals. > #15 main (argc=<optimized out>, argv=0x7ffea3f6e798) at test_main.cpp:31 > No locals. > (gdb) > ``` > > Any help/hints about what I can do to help diagnose that issue? > > kloczek > -- > Tomasz K?oczko | LinkedIn: http://lnkd.in/FXPWxH > _______________________________________________ > Nouveau mailing list > Nouveau at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/nouveau
Ilia Mirkin
2020-Sep-15 01:44 UTC
[Nouveau] libva-utils test siuite is crashing in nouveau sriver
On Sun, Sep 13, 2020 at 5:01 PM Tomasz K?oczko <kloczko.tomasz at gmail.com> wrote:> > > On Sun, 13 Sep 2020 at 20:35, Ilia Mirkin <imirkin at alum.mit.edu> wrote: >> >> What hardware are you using? > > > 0000:18:00.0 VGA compatible controller: NVIDIA Corporation GP104GL [Quadro P4000] (rev a1)There's no acceleration support for video decoding past Kepler. FWIW I don't get a crash with a GP108 when running vainfo: $ vainfo libva info: VA-API version 1.8.0 libva info: Trying to open /usr/lib64/va/drivers/nouveau_drv_video.so libva info: va_openDriver() returns -1 vaInitialize failed with error code -1 (unknown libva error),exit with Mesa 20.2.0-rc2. Not sure if your issue has been fixed (and now it errors), or if you're hitting something else. Either way, most likely an issue with the common code if it indeed persists. Cheers, -ilia