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

Postgresql 9.3.1 #6

Closed
wants to merge 477 commits into from
Closed

Conversation

ochko
Copy link

@ochko ochko commented Nov 25, 2013

No description provided.

Tomoyuki Sakurai and others added 30 commits August 29, 2013 14:10
Author: ohauer <ohauer@FreeBSD.org>
Date:   Sat Jul 6 08:46:39 2013 +0000

    - add fix for CVE-2013-1862
    - adjust vuxml
- update to 2.2.25
o) www/rubygem-passenger;
o) third-party passenger module for www/nginx and www/nginx-devel.
o) lua from 0.8.1 to 0.8.2;
o) srcache from 0.20 to 0.21.
o) www/rubygem-passenger;
o) third-party passenger module for www/nginx and www/nginx-devel.
…in source code.

So, update checksum and size.

Reported by:	vanilla
other module which uses OpenSSL (e.g. --with-mail_ssl_module), insufficient
preprocessor check resulted in build failure.  The problem was introduced
by e0a3714a36f8 (1.3.14).

Reported by:		"M.S. Babaei" <info@babaei.net>
Patch obtained from:	http://hg.nginx.org/nginx/rev/9d83ec073c51
o) third-party passenger module from 4.0.5 to 4.0.8;
o) rubygem-passenger from 4.0.5 to 4.0.8;
o) third-party rtmp module from 1.0.0 to 1.0.1.

Conflicts:
	www/rubygem-passenger/Makefile
Remove needless patch.

<ChangeLog>

*) Bugfix: the $r->header_in() embedded perl method did not return value
   of the "Cookie" and "X-Forwarded-For" request header lines; the bug
   had appeared in 1.3.14.

*) Bugfix: nginx could not be built with the ngx_mail_ssl_module, but
   without ngx_http_ssl_module; the bug had appeared in 1.3.14.

*) Bugfix: in the "proxy_set_body" directive.
   Thanks to Lanshun Zhou.

*) Bugfix: the "fail_timeout" parameter of the "server" directive in the
   "upstream" context might not work if "max_fails" parameter was used;
   the bug had appeared in 1.3.0.

*) Bugfix: a segmentation fault might occur in a worker process if the
   "ssl_stapling" directive was used.
   Thanks to Piotr Sikora.

*) Bugfix: nginx/Windows might stop accepting connections if several
   worker processes were used.

</ChangeLog>
- Add some additional XORG mirrors from their official list at:
  http://www.x.org/wiki/Releases/Download and prefering http to ftp
to fetch the distfiles. Set FETCH_ARGS fix the problem.
- remove space (authoritative NXDOMAIN)
- add kent and kaz
- Change WWW for devel/py-astng to point to its project homepage

PR:		ports/178513
Submitted by:	Chris Torek <chris.torek@gmail.com>

Conflicts:
	devel/py-astng/pkg-descr
of using a branch name.

Suggested by:	Kalten on freenode
as BROKEN, as they will immediately fail checksum as soon as
the branch is updated
  still building these.
- Also reword 'version' to 'tag'

Reported by:	crees, eadler
The HTTP counterpart does not return correct HTTP error codes when, for
example, a file is not found, which causes checksum errors as described in
ports/179432. The FTP mirror seems to behave as expected.

Kudos to John Marino <draco@marino.st> for bringing this up.

PR:		ports/179432
download.qt-project.org is a CDN and should redirect to the closest mirror
anyway, but a few more mirrors have been added just in case.
  a CNAME to codeload and has been communicated to me from github staff
  as being the same. Despite this, it is currently returning errors.

With hat:	portmgr
  remove mirrors no longer in the official
  list and add some new mirrors

PR:		ports/180548
Submitted by:	Gavin McDonald <gavin@16degrees.com.au>
PR:		ports/179433
Submitted by:	marino
Approved by:	bapt (mentor)
uqs pushed a commit that referenced this pull request Aug 10, 2020
ncnn API is not stable, updates frequently break this port.
Binary is also smaller when using bundled ncnn.

 $ size $(which waifu2x-ncnn-vulkan)
    text    data     bss     dec     hex filename
-7245567  242384   58992 7546943  73283f /usr/local/bin/waifu2x-ncnn-vulkan
+3281223    3152   58840 3343215  33036f /usr/local/bin/waifu2x-ncnn-vulkan

$ waifu2x-ncnn-vulkan -i foo.png -o bar.png
[0 Intel(R) HD Graphics 530 (SKL GT2)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 Intel(R) HD Graphics 530 (SKL GT2)]  bugsbn1=0  buglbia=0  bugcopc=0  bugihfa=0
[0 Intel(R) HD Graphics 530 (SKL GT2)]  fp16p=1  fp16s=1  fp16a=1  int8s=1  int8a=1
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
Process 8606 stopped
* thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
    frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
   1369
   1370    assert(_set < MAX_PUSH_DESCRIPTORS);
   1371
-> 1372    struct anv_descriptor_set_layout *set_layout = layout->set[_set].layout;
   1373
   1374    struct anv_descriptor_set *set =
   1375       anv_cmd_buffer_push_descriptor_set(cmd_buffer, template->bind_point,
(lldb) bt
* thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
  * frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
    frame #1: 0x00000000004facce waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=0x00000008045e3400, buffer_bindings=0x00007fffc35ea418, image_bindings=0x00007fffc35ea0f0, constants=0x00007fffc35ea400, dispatcher=0x00007fffc35ea110) at command.cpp:1457:13
    frame #2: 0x00000000004f981c waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(ncnn::Pipeline const*, std::__1::vector<ncnn::VkMat, std::__1::allocator<ncnn::VkMat> > const&, std::__1::vector<ncnn::vk_constant_type, std::__1::allocator<ncnn::vk_constant_type> > const&, ncnn::VkMat const&) [inlined] ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, buffer_bindings=<unavailable>, image_bindings=0x00007fffc35ea0f0, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1187:5
    frame #3: 0x00000000004f97bb waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, bindings=<unavailable>, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1175
    frame #4: 0x000000000086b516 waifu2x-ncnn-vulkan`Waifu2x::process(this=0x00007fffffffdd58, inimage=0x00007fffc35eaf30, outimage=0x00007fffc35eaf70) const at waifu2x.cpp:457:25
    frame #5: 0x000000000084cd45 waifu2x-ncnn-vulkan`proc(args=0x00007fffffffdb70) at main.cpp:281:18
    frame #6: 0x00000008008fd1c9 libthr.so.3`thread_start(curthread=0x0000000807874300) at thr_create.c:292:16


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@544526 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit that referenced this pull request Aug 10, 2020
ncnn API is not stable, updates frequently break this port.
Binary is also smaller when using bundled ncnn.

 $ size $(which waifu2x-ncnn-vulkan)
    text    data     bss     dec     hex filename
-7245567  242384   58992 7546943  73283f /usr/local/bin/waifu2x-ncnn-vulkan
+3281223    3152   58840 3343215  33036f /usr/local/bin/waifu2x-ncnn-vulkan

$ waifu2x-ncnn-vulkan -i foo.png -o bar.png
[0 Intel(R) HD Graphics 530 (SKL GT2)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 Intel(R) HD Graphics 530 (SKL GT2)]  bugsbn1=0  buglbia=0  bugcopc=0  bugihfa=0
[0 Intel(R) HD Graphics 530 (SKL GT2)]  fp16p=1  fp16s=1  fp16a=1  int8s=1  int8a=1
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
Process 8606 stopped
* thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
    frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
   1369
   1370    assert(_set < MAX_PUSH_DESCRIPTORS);
   1371
-> 1372    struct anv_descriptor_set_layout *set_layout = layout->set[_set].layout;
   1373
   1374    struct anv_descriptor_set *set =
   1375       anv_cmd_buffer_push_descriptor_set(cmd_buffer, template->bind_point,
(lldb) bt
* thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
  * frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
    frame #1: 0x00000000004facce waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=0x00000008045e3400, buffer_bindings=0x00007fffc35ea418, image_bindings=0x00007fffc35ea0f0, constants=0x00007fffc35ea400, dispatcher=0x00007fffc35ea110) at command.cpp:1457:13
    frame #2: 0x00000000004f981c waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(ncnn::Pipeline const*, std::__1::vector<ncnn::VkMat, std::__1::allocator<ncnn::VkMat> > const&, std::__1::vector<ncnn::vk_constant_type, std::__1::allocator<ncnn::vk_constant_type> > const&, ncnn::VkMat const&) [inlined] ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, buffer_bindings=<unavailable>, image_bindings=0x00007fffc35ea0f0, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1187:5
    frame #3: 0x00000000004f97bb waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, bindings=<unavailable>, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1175
    frame #4: 0x000000000086b516 waifu2x-ncnn-vulkan`Waifu2x::process(this=0x00007fffffffdd58, inimage=0x00007fffc35eaf30, outimage=0x00007fffc35eaf70) const at waifu2x.cpp:457:25
    frame #5: 0x000000000084cd45 waifu2x-ncnn-vulkan`proc(args=0x00007fffffffdb70) at main.cpp:281:18
    frame #6: 0x00000008008fd1c9 libthr.so.3`thread_start(curthread=0x0000000807874300) at thr_create.c:292:16
uqs pushed a commit that referenced this pull request Aug 10, 2020
graphics/waifu2x-ncnn-vulkan: back out r539374

ncnn API is not stable, updates frequently break this port.
Binary is also smaller when using bundled ncnn.

 $ size $(which waifu2x-ncnn-vulkan)
    text    data     bss     dec     hex filename
-7245567  242384   58992 7546943  73283f /usr/local/bin/waifu2x-ncnn-vulkan
+3281223    3152   58840 3343215  33036f /usr/local/bin/waifu2x-ncnn-vulkan

$ waifu2x-ncnn-vulkan -i foo.png -o bar.png
[0 Intel(R) HD Graphics 530 (SKL GT2)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 Intel(R) HD Graphics 530 (SKL GT2)]  bugsbn1=0  buglbia=0  bugcopc=0  bugihfa=0
[0 Intel(R) HD Graphics 530 (SKL GT2)]  fp16p=1  fp16s=1  fp16a=1  int8s=1  int8a=1
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
Process 8606 stopped
* thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
    frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
   1369
   1370    assert(_set < MAX_PUSH_DESCRIPTORS);
   1371
-> 1372    struct anv_descriptor_set_layout *set_layout = layout->set[_set].layout;
   1373
   1374    struct anv_descriptor_set *set =
   1375       anv_cmd_buffer_push_descriptor_set(cmd_buffer, template->bind_point,
(lldb) bt
* thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
  * frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
    frame #1: 0x00000000004facce waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=0x00000008045e3400, buffer_bindings=0x00007fffc35ea418, image_bindings=0x00007fffc35ea0f0, constants=0x00007fffc35ea400, dispatcher=0x00007fffc35ea110) at command.cpp:1457:13
    frame #2: 0x00000000004f981c waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(ncnn::Pipeline const*, std::__1::vector<ncnn::VkMat, std::__1::allocator<ncnn::VkMat> > const&, std::__1::vector<ncnn::vk_constant_type, std::__1::allocator<ncnn::vk_constant_type> > const&, ncnn::VkMat const&) [inlined] ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, buffer_bindings=<unavailable>, image_bindings=0x00007fffc35ea0f0, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1187:5
    frame #3: 0x00000000004f97bb waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, bindings=<unavailable>, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1175
    frame #4: 0x000000000086b516 waifu2x-ncnn-vulkan`Waifu2x::process(this=0x00007fffffffdd58, inimage=0x00007fffc35eaf30, outimage=0x00007fffc35eaf70) const at waifu2x.cpp:457:25
    frame #5: 0x000000000084cd45 waifu2x-ncnn-vulkan`proc(args=0x00007fffffffdb70) at main.cpp:281:18
    frame #6: 0x00000008008fd1c9 libthr.so.3`thread_start(curthread=0x0000000807874300) at thr_create.c:292:16

Approved by:	ports-secteam blanket
uqs pushed a commit that referenced this pull request Oct 31, 2020
While upstream issue is in userland driver FreeBSD kernel driver may
fail to handle it gracefully e.g.,

  $ sway
  $ mpv --hwdec=vaapi /path/to/file

  pid 12449 (sway), jid 0, uid 1234: exited on signal 11
  WARNING !drm_modeset_is_locked(&crtc->mutex) failed at drm-kmod-drm_v5.4.62_3/drivers/gpu/drm/drm_atomic_helper.c:621
  #0 0xffffffff81f3e833 at linux_dump_stack+0x23
  #1 0xffffffff81ea43e3 at drm_atomic_helper_check_modeset+0xb3
  #2 0xffffffff8259492c at intel_atomic_check+0x8c
  #3 0xffffffff81ea3379 at drm_atomic_check_only+0x3f9
  #4 0xffffffff81ea37c3 at drm_atomic_commit+0x13
  #5 0xffffffff81eb0c3f at drm_client_modeset_commit_atomic+0x1af
  #6 0xffffffff81eb093a at drm_client_modeset_commit_force+0x6a
  #7 0xffffffff81efa12a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a
  #8 0xffffffff81ef2386 at vt_kms_postswitch+0x166
  #9 0xffffffff8076b66b at vt_window_switch+0x12b
  #10 0xffffffff807688ff at vtterm_cngrab+0x1f
  #11 0xffffffff80805a36 at cngrab+0x16
  #12 0xffffffff8086295c at vpanic+0xec
  #13 0xffffffff80862863 at panic+0x43
  #14 0xffffffff81f5d142 at dma_buf_poll+0x12
  #15 0xffffffff808d2959 at kern_poll+0x329
  #16 0xffffffff808d2620 at sys_poll+0x50
  #17 0xffffffff80b3353b at amd64_syscall+0xfb


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@553734 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit that referenced this pull request Oct 31, 2020
While upstream issue is in userland driver FreeBSD kernel driver may
fail to handle it gracefully e.g.,

  $ sway
  $ mpv --hwdec=vaapi /path/to/file

  pid 12449 (sway), jid 0, uid 1234: exited on signal 11
  WARNING !drm_modeset_is_locked(&crtc->mutex) failed at drm-kmod-drm_v5.4.62_3/drivers/gpu/drm/drm_atomic_helper.c:621
  #0 0xffffffff81f3e833 at linux_dump_stack+0x23
  #1 0xffffffff81ea43e3 at drm_atomic_helper_check_modeset+0xb3
  #2 0xffffffff8259492c at intel_atomic_check+0x8c
  #3 0xffffffff81ea3379 at drm_atomic_check_only+0x3f9
  #4 0xffffffff81ea37c3 at drm_atomic_commit+0x13
  #5 0xffffffff81eb0c3f at drm_client_modeset_commit_atomic+0x1af
  #6 0xffffffff81eb093a at drm_client_modeset_commit_force+0x6a
  #7 0xffffffff81efa12a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a
  #8 0xffffffff81ef2386 at vt_kms_postswitch+0x166
  #9 0xffffffff8076b66b at vt_window_switch+0x12b
  #10 0xffffffff807688ff at vtterm_cngrab+0x1f
  #11 0xffffffff80805a36 at cngrab+0x16
  #12 0xffffffff8086295c at vpanic+0xec
  #13 0xffffffff80862863 at panic+0x43
  #14 0xffffffff81f5d142 at dma_buf_poll+0x12
  #15 0xffffffff808d2959 at kern_poll+0x329
  #16 0xffffffff808d2620 at sys_poll+0x50
  #17 0xffffffff80b3353b at amd64_syscall+0xfb
uqs pushed a commit that referenced this pull request Dec 21, 2020
$ fnott &
$ notify-send "this is the summary" "this is the body"
$ fnottctl quit
Assertion failed: (fcCacheChains[i] == NULL), function FcCacheFini, file fccache.c, line 807.
(lldb) bt
* thread #1, name = 'fnott', stop reason = signal SIGABRT
  * frame #0: 0x00000008005eb30a libc.so.7`__sys_thr_kill at thr_kill.S:4
    frame #1: 0x0000000800556ff4 libc.so.7`__raise(s=6) at raise.c:52:10
    frame #2: 0x0000000800616be9 libc.so.7`abort at abort.c:67:8
    frame #3: 0x0000000800537b91 libc.so.7`__assert(func=<unavailable>, file=<unavailable>, line=<unavailable>, failedexpr=<unavailable>) at assert.c:51:2
    frame #4: 0x0000000800922b94 libfontconfig.so.1`FcCacheFini at fccache.c:807:6
    frame #5: 0x000000080093eafd libfontconfig.so.1`IA__FcFini at fcinit.c:205:5
    frame #6: 0x0000000800434989 libfcft.so.3`fini at fcft.c:233:5
    frame #7: 0x0000000800247906 ld-elf.so.1`objlist_call_fini(list=<unavailable>, root=<unavailable>, lockstate=<unavailable>) at rtld.c:2761:4
    frame #8: 0x00000008002401c9 ld-elf.so.1`rtld_exit at rtld.c:3148:5
    frame #9: 0x00000008006170ae libc.so.7`__cxa_finalize(dso=<unavailable>) at atexit.c:240:5
    frame #10: 0x0000000800617711 libc.so.7`exit(status=0) at exit.c:74:2
    frame #11: 0x000000000020c866 fnott`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:2


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@558862 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit that referenced this pull request Dec 21, 2020
$ fnott &
$ notify-send "this is the summary" "this is the body"
$ fnottctl quit
Assertion failed: (fcCacheChains[i] == NULL), function FcCacheFini, file fccache.c, line 807.
(lldb) bt
* thread #1, name = 'fnott', stop reason = signal SIGABRT
  * frame #0: 0x00000008005eb30a libc.so.7`__sys_thr_kill at thr_kill.S:4
    frame #1: 0x0000000800556ff4 libc.so.7`__raise(s=6) at raise.c:52:10
    frame #2: 0x0000000800616be9 libc.so.7`abort at abort.c:67:8
    frame #3: 0x0000000800537b91 libc.so.7`__assert(func=<unavailable>, file=<unavailable>, line=<unavailable>, failedexpr=<unavailable>) at assert.c:51:2
    frame #4: 0x0000000800922b94 libfontconfig.so.1`FcCacheFini at fccache.c:807:6
    frame #5: 0x000000080093eafd libfontconfig.so.1`IA__FcFini at fcinit.c:205:5
    frame #6: 0x0000000800434989 libfcft.so.3`fini at fcft.c:233:5
    frame #7: 0x0000000800247906 ld-elf.so.1`objlist_call_fini(list=<unavailable>, root=<unavailable>, lockstate=<unavailable>) at rtld.c:2761:4
    frame #8: 0x00000008002401c9 ld-elf.so.1`rtld_exit at rtld.c:3148:5
    frame #9: 0x00000008006170ae libc.so.7`__cxa_finalize(dso=<unavailable>) at atexit.c:240:5
    frame #10: 0x0000000800617711 libc.so.7`exit(status=0) at exit.c:74:2
    frame #11: 0x000000000020c866 fnott`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:2
uqs pushed a commit that referenced this pull request Apr 1, 2021
graphics/waifu2x-ncnn-vulkan: back out r539374

ncnn API is not stable, updates frequently break this port.
Binary is also smaller when using bundled ncnn.

 $ size $(which waifu2x-ncnn-vulkan)
    text    data     bss     dec     hex filename
-7245567  242384   58992 7546943  73283f /usr/local/bin/waifu2x-ncnn-vulkan
+3281223    3152   58840 3343215  33036f /usr/local/bin/waifu2x-ncnn-vulkan

$ waifu2x-ncnn-vulkan -i foo.png -o bar.png
[0 Intel(R) HD Graphics 530 (SKL GT2)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 Intel(R) HD Graphics 530 (SKL GT2)]  bugsbn1=0  buglbia=0  bugcopc=0  bugihfa=0
[0 Intel(R) HD Graphics 530 (SKL GT2)]  fp16p=1  fp16s=1  fp16a=1  int8s=1  int8a=1
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
Process 8606 stopped
* thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
    frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
   1369
   1370    assert(_set < MAX_PUSH_DESCRIPTORS);
   1371
-> 1372    struct anv_descriptor_set_layout *set_layout = layout->set[_set].layout;
   1373
   1374    struct anv_descriptor_set *set =
   1375       anv_cmd_buffer_push_descriptor_set(cmd_buffer, template->bind_point,
(lldb) bt
* thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
  * frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
    frame #1: 0x00000000004facce waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=0x00000008045e3400, buffer_bindings=0x00007fffc35ea418, image_bindings=0x00007fffc35ea0f0, constants=0x00007fffc35ea400, dispatcher=0x00007fffc35ea110) at command.cpp:1457:13
    frame #2: 0x00000000004f981c waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(ncnn::Pipeline const*, std::__1::vector<ncnn::VkMat, std::__1::allocator<ncnn::VkMat> > const&, std::__1::vector<ncnn::vk_constant_type, std::__1::allocator<ncnn::vk_constant_type> > const&, ncnn::VkMat const&) [inlined] ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, buffer_bindings=<unavailable>, image_bindings=0x00007fffc35ea0f0, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1187:5
    frame #3: 0x00000000004f97bb waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, bindings=<unavailable>, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1175
    frame #4: 0x000000000086b516 waifu2x-ncnn-vulkan`Waifu2x::process(this=0x00007fffffffdd58, inimage=0x00007fffc35eaf30, outimage=0x00007fffc35eaf70) const at waifu2x.cpp:457:25
    frame #5: 0x000000000084cd45 waifu2x-ncnn-vulkan`proc(args=0x00007fffffffdb70) at main.cpp:281:18
    frame #6: 0x00000008008fd1c9 libthr.so.3`thread_start(curthread=0x0000000807874300) at thr_create.c:292:16

Approved by:	ports-secteam blanket
uqs pushed a commit that referenced this pull request Apr 1, 2021
devel/android-tools-adb: fix TEST=on after r527733

socket_spec_test.cpp:101: Failure
Expected equality of these values:
  5555
  get_host_socket_spec_port("vsock:5555", &error)
    Which is: -1

* thread #1, name = 'adb_test', stop reason = signal SIGILL: privileged instruction
    frame #0: 0x00000000003fc604 adb_test`GetThreadId() at logger_write.cpp:240:31
   237  #endif
   238
   239  // Copied from base/threads.cpp
-> 240  static uint64_t GetThreadId() {
   241  #if defined(__BIONIC__)
   242    return gettid();
   243  #elif defined(__APPLE__)
(lldb) bt
* thread #1, name = 'adb_test', stop reason = signal SIGILL: privileged instruction
  * frame #0: 0x00000000003fc604 adb_test`GetThreadId() at logger_write.cpp:240:31
    frame #1: 0x00000000003fc3ce adb_test`::__android_log_stderr_logger(logger_data=0x00007fffffffce60, message="foobar") at logger_write.cpp:274:18
    frame #2: 0x00000000003fc92a adb_test`::__android_log_write_logger_data(logger_data=0x00007fffffffce60, msg="foobar") at logger_write.cpp:329:3
    frame #3: 0x00000000003f6c44 adb_test`android::base::LogMessage::LogLine(file="logging_test.cpp", line=603, severity=ERROR, tag=0x0000000000000000, message="foobar") at logging.cpp:581:5
    frame #4: 0x00000000003f683d adb_test`android::base::LogMessage::~LogMessage(this=0x00007fffffffd000) at logging.cpp:542:7
    frame #5: 0x00000000004f76fe adb_test`TestLoggingInConstructor() at logging_test.cpp:603:3

* thread #1, name = 'adb_test', stop reason = signal SIGSEGV: invalid address (fault address: 0x14)
    frame #0: 0x00000000004c8dc8 adb_test`file_RemoveFileIfExists_EACCES_Test::TestBody(this=0x0000000800f91060) at file_test.cpp:247:19
   244    // root can bypass permission restrictions, so drop root.
   245    if (getuid() == 0) {
   246      passwd* shell = getpwnam("shell");
-> 247      setgid(shell->pw_gid);
   248      setuid(shell->pw_uid);
   249    }
   250
(lldb) bt
* thread #1, name = 'adb_test', stop reason = signal SIGSEGV: invalid address (fault address: 0x14)
  * frame #0: 0x00000000004c8dc8 adb_test`file_RemoveFileIfExists_EACCES_Test::TestBody(this=0x0000000800f91060) at file_test.cpp:247:19
    frame #1: 0x0000000800982d6e libgtest.so`void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(object=0x0000000800f91060, method=21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00, location="the test body")(), char const*) at gtest.cc:2433:10
    frame #2: 0x0000000800962399 libgtest.so`void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(object=0x0000000800f91060, method=21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00, location="the test body")(), char const*) at gtest.cc:2469:14
    frame #3: 0x0000000800942b43 libgtest.so`testing::Test::Run(this=0x0000000800f91060) at gtest.cc:2508:5
    frame #4: 0x0000000800943792 libgtest.so`testing::TestInfo::Run(this=0x0000000800fa3ba0) at gtest.cc:2684:11
    frame #5: 0x0000000800943e17 libgtest.so`testing::TestSuite::Run(this=0x0000000800fa34a0) at gtest.cc:2816:28
    frame #6: 0x0000000800950480 libgtest.so`testing::internal::UnitTestImpl::RunAllTests(this=0x0000000800fa4000) at gtest.cc:5338:44
    frame #7: 0x0000000800987bfe libgtest.so`bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(object=0x0000000800fa4000, method=40 00 95 00 08 00 00 00 00 00 00 00 00 00 00 00, location="auxiliary test code (environments or event listeners)")(), char const*) at gtest.cc:2433:10
    frame #8: 0x00000008009650a9 libgtest.so`bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(object=0x0000000800fa4000, method=40 00 95 00 08 00 00 00 00 00 00 00 00 00 00 00, location="auxiliary test code (environments or event listeners)")(), char const*) at gtest.cc:2469:14
    frame #9: 0x000000080094ffd4 libgtest.so`testing::UnitTest::Run(this=0x000000080099a0d8) at gtest.cc:4925:10
    frame #10: 0x0000000000543cf1 adb_test`RUN_ALL_TESTS() at gtest.h:2473:46
    frame #11: 0x0000000000543c70 adb_test`main(argc=1, argv=0x00007fffffffeae8) at test_main.cpp:24:10
    frame #12: 0x000000000031710f adb_test`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:7

PR:		245642
Submitted by:	Marcin Cieślak (based on)
Approved by:	ports-secteam blanket (crash fix)
freebsd-git pushed a commit that referenced this pull request Dec 23, 2021
Something is wrong with the libunwind backend or libunwind itself
on FreeBSD 13.0 riscv64. Building the parse-zoneinfo 0.3.0 crate
crashes rustc:

 [New LWP 105346]
 [New LWP 101666]
 Core was generated by `/home/tobias/rust/bin/rustc --crate-name parse_zoneinfo src/lib.rs --error-forma'.
 Program terminated with signal SIGBUS, Bus error.
 #0  0x00000000401a6126 in libunwind::DwarfInstructions<libunwind::LocalAddressSpace, libunwind::Registers_riscv>::getSavedRegister (addressSpace=..., registers=..., cfa=<optimized out>, savedReg=...) at /usr/src/contrib/llvm-project/libunwind/src/DwarfInstructions.hpp:87
 [Current thread is 1 (LWP 105346)]
 #0  0x00000000401a6126 in libunwind::DwarfInstructions<libunwind::LocalAddressSpace, libunwind::Registers_riscv>::getSavedRegister (addressSpace=..., registers=..., cfa=<optimized out>, savedReg=...) at /usr/src/contrib/llvm-project/libunwind/src/DwarfInstructions.hpp:87
 #1  0x00000000401a5f56 in libunwind::DwarfInstructions<libunwind::LocalAddressSpace, libunwind::Registers_riscv>::stepWithDwarf (addressSpace=..., pc=<optimized out>, fdeStart=<optimized out>, registers=..., isSignalFrame=<optimized out>) at /usr/src/contrib/llvm-project/libunwind/src/DwarfInstructions.hpp:185
 #2  0x00000000401a5b3e in libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_riscv>::stepWithDwarfFDE (this=0x3fbffeeff8) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:929
 #3  libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_riscv>::step (this=0x3fbffeeff8) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:2004
 #4  0x00000000401a36e4 in _Unwind_Backtrace (callback=0x46ac1d78 <std::backtrace_rs::backtrace::libunwind::trace::trace_fn>, ref=0x3fbffef310) at /usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:131
 #5  0x0000000046a94618 in std::backtrace_rs::backtrace::libunwind::trace () at library/std/src/../../backtrace/src/backtrace/libunwind.rs:90
 #6  std::backtrace_rs::backtrace::trace_unsynchronized<std::backtrace::{impl#4}::create::{closure#0}> () at library/std/src/../../backtrace/src/backtrace/mod.rs:66
 #7  std::backtrace::Backtrace::create () at library/std/src/backtrace.rs:327
 #8  0x0000000046a945a8 in std::backtrace::Backtrace::force_capture () at library/std/src/backtrace.rs:310
 #9  0x0000000046313904 in rustc_errors::HandlerInner::delay_good_path_bug () at compiler/rustc_errors/src/lib.rs:1120
 #10 rustc_errors::Handler::delay_good_path_bug () at compiler/rustc_errors/src/lib.rs:816
 #11 0x00000000460dd744 in rustc_middle::ty::print::pretty::trimmed_def_paths () at compiler/rustc_middle/src/ty/print/pretty.rs:2402
 #12 0x00000000453a95d4 in rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}<rustc_middle::dep_graph::dep_node::DepKind, rustc_middle::ty::context::TyCtxt, (), std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, fn(&mut rustc_middle::ich::hcx::StableHashingContext, &std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>) -> core::option::Option<rustc_data_structures::fingerprint::Fingerprint>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/dep_graph/graph.rs:249
 #13 rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}::{closure#0}<rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}, std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/dep_graph/mod.rs:76
 #14 rustc_middle::ty::context::tls::enter_context::{closure#0}<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}::{closure#0}, std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #15 rustc_middle::ty::context::tls::set_tlv<rustc_middle::ty::context::tls::enter_context::{closure#0}, std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1762
 #16 rustc_middle::ty::context::tls::enter_context<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}::{closure#0}, std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #17 rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}<rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}, std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/dep_graph/mod.rs:76
 #18 rustc_middle::ty::context::tls::with_context::{closure#0}<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}, std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #19 rustc_middle::ty::context::tls::with_context_opt<rustc_middle::ty::context::tls::with_context::{closure#0}, std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1795
 #20 rustc_middle::ty::context::tls::with_context<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}, std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #21 rustc_middle::dep_graph::{impl#0}::with_deps<rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}, std::collections::hash::map::HashMap<rustc_span::def_id::DefId, std::collections::hash::map::HashMap<&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>, rustc_span::def_id::CrateNum, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/dep_graph/mod.rs:73
 #22 0x000000004526755a in rustc_query_system::dep_graph::graph::DepGraph::with_task_impl<rustc_middle::dep_graph::dep_node::DepKind, rustc_middle::ty::context::TyCtxt, (), std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, fn(&mut rustc_middle::ich::hcx::StableHashingContext, &std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>) -> core::option::Option<rustc_data_structures::fingerprint::Fingerprint>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/dep_graph/graph.rs:249
 #23 0x00000000450e0a52 in rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}<rustc_query_system::query::caches::ArenaCache<(), std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>>, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/dep_graph/graph.rs:219
 #24 stacker::maybe_grow<(std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/vendor/stacker/src/lib.rs:55
 #25 rustc_data_structures::stack::ensure_sufficient_stack<(std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_data_structures/src/stack.rs:16
 #26 0x0000000044f338ee in rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}::{closure#0}<(std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at compiler/rustc_query_impl/src/plumbing.rs:137
 #27 rustc_middle::ty::context::tls::enter_context::{closure#0}<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}::{closure#0}, (std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #28 rustc_middle::ty::context::tls::set_tlv<rustc_middle::ty::context::tls::enter_context::{closure#0}, (std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1762
 #29 rustc_middle::ty::context::tls::enter_context<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}::{closure#0}, (std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #30 rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}<(std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at compiler/rustc_query_impl/src/plumbing.rs:136
 #31 rustc_middle::ty::context::tls::with_related_context::{closure#0}<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}, (std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1822
 #32 rustc_middle::ty::context::tls::with_context::{closure#0}<rustc_middle::ty::context::tls::with_related_context::{closure#0}, (std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #33 rustc_middle::ty::context::tls::with_context_opt<rustc_middle::ty::context::tls::with_context::{closure#0}, (std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1795
 #34 rustc_middle::ty::context::tls::with_context<rustc_middle::ty::context::tls::with_related_context::{closure#0}, (std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #35 rustc_middle::ty::context::tls::with_related_context<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}, (std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1819
 #36 rustc_query_impl::plumbing::{impl#2}::start_query<(std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at compiler/rustc_query_impl/src/plumbing.rs:125
 #37 rustc_query_system::query::plumbing::force_query_with_job::{closure#0}<rustc_query_system::query::caches::ArenaCache<(), std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>>, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:680
 #38 rustc_query_system::query::plumbing::with_diagnostics<rustc_query_system::query::plumbing::force_query_with_job::{closure#0}, (std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:338
 #39 rustc_query_system::query::plumbing::force_query_with_job<rustc_query_system::query::caches::ArenaCache<(), std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>>, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:679
 #40 0x0000000044ebf206 in rustc_query_system::query::plumbing::try_execute_query<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::ArenaCache<(), std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:520
 #41 rustc_query_system::query::plumbing::get_query_impl<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::ArenaCache<(), std::collections::hash::map::HashMap<rustc_span::def_id::DefId, rustc_span::symbol::Symbol, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:730
 #42 0x0000000044feec34 in rustc_query_system::query::plumbing::get_query<rustc_query_impl::queries::trimmed_def_paths, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:853
 #43 0x00000000460caedc in rustc_middle::ty::query::TyCtxtAt::trimmed_def_paths () at compiler/rustc_middle/src/ty/query.rs:203
 #44 rustc_middle::ty::context::TyCtxt::trimmed_def_paths () at compiler/rustc_middle/src/ty/query.rs:184
 #45 rustc_middle::ty::print::pretty::PrettyPrinter::try_print_trimmed_def_path<rustc_middle::ty::print::pretty::FmtPrinter<&mut alloc::string::String>> () at compiler/rustc_middle/src/ty/print/pretty.rs:288
 #46 rustc_middle::ty::print::pretty::{impl#6}::print_def_path<&mut alloc::string::String> () at compiler/rustc_middle/src/ty/print/pretty.rs:1395
 #47 0x000000004601f77a in rustc_middle::ty::context::TyCtxt::def_path_str_with_substs () at compiler/rustc_middle/src/ty/print/pretty.rs:1363
 #48 0x000000004601f61a in rustc_middle::ty::context::TyCtxt::def_path_str () at compiler/rustc_middle/src/ty/print/pretty.rs:1356
 #49 0x0000000045bf6ff0 in rustc_lint::unused::{impl#0}::check_stmt::check_must_use_def::{closure#0} () at compiler/rustc_lint/src/unused.rs:311
 #50 core::ops::function::FnOnce::call_once<rustc_lint::unused::{impl#0}::check_stmt::check_must_use_def::{closure#0}, (rustc_middle::lint::LintDiagnosticBuilder)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/core/src/ops/function.rs:227
 #51 0x0000000045fccd16 in alloc::boxed::{impl#44}::call_once<(rustc_middle::lint::LintDiagnosticBuilder), dyn core::ops::function::FnOnce<(rustc_middle::lint::LintDiagnosticBuilder), Output=()>, alloc::alloc::Global> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/alloc/src/boxed.rs:1636
 #52 rustc_middle::lint::struct_lint_level::struct_lint_level_impl () at compiler/rustc_middle/src/lint.rs:379
 #53 0x0000000045b80c32 in rustc_middle::lint::struct_lint_level<rustc_lint::unused::{impl#0}::check_stmt::check_must_use_def::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/lint.rs:381
 #54 rustc_middle::ty::context::TyCtxt::struct_span_lint_hir<rustc_span::span_encoding::Span, rustc_lint::unused::{impl#0}::check_stmt::check_must_use_def::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:2690
 #55 rustc_lint::context::{impl#5}::lookup<rustc_span::span_encoding::Span, rustc_lint::unused::{impl#0}::check_stmt::check_must_use_def::{closure#0}> () at compiler/rustc_lint/src/context.rs:842
 #56 rustc_lint::context::LintContext::struct_span_lint<rustc_lint::context::LateContext, rustc_span::span_encoding::Span, rustc_lint::unused::{impl#0}::check_stmt::check_must_use_def::{closure#0}> () at compiler/rustc_lint/src/context.rs:795
 #57 rustc_lint::unused::{impl#0}::check_stmt::check_must_use_def () at compiler/rustc_lint/src/unused.rs:307
 #58 0x0000000045b7f9e6 in rustc_lint::unused::{impl#0}::check_stmt () at compiler/rustc_lint/src/unused.rs:122
 #59 0x0000000045bae62a in rustc_lint::{impl#10}::check_stmt () at compiler/rustc_lint/src/passes.rs:116
 #60 rustc_lint::late::{impl#1}::visit_stmt::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:184
 #61 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_stmt::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #62 rustc_lint::late::{impl#1}::visit_stmt<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:183
 #63 0x0000000045bb0e22 in rustc_hir::intravisit::walk_block<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1094
 #64 0x0000000045bb980c in rustc_lint::late::{impl#1}::visit_expr::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:175
 #65 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_expr::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #66 rustc_lint::late::{impl#1}::visit_expr<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:173
 #67 rustc_hir::intravisit::walk_expr<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1166
 #68 0x0000000045bbd528 in rustc_lint::late::{impl#1}::visit_expr::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:175
 #69 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_expr::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #70 rustc_lint::late::{impl#1}::visit_expr<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:173
 #71 rustc_hir::intravisit::walk_stmt<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1104
 #72 0x0000000045bae648 in rustc_lint::late::{impl#1}::visit_stmt<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:186
 #73 0x0000000045bb0e22 in rustc_hir::intravisit::walk_block<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1094
 #74 0x0000000045bb980c in rustc_lint::late::{impl#1}::visit_expr::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:175
 #75 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_expr::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #76 rustc_lint::late::{impl#1}::visit_expr<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:173
 #77 rustc_hir::intravisit::walk_expr<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1166
 #78 0x0000000045bbd528 in rustc_lint::late::{impl#1}::visit_expr::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:175
 #79 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_expr::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #80 rustc_lint::late::{impl#1}::visit_expr<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:173
 #81 rustc_hir::intravisit::walk_stmt<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1104
 #82 0x0000000045bae648 in rustc_lint::late::{impl#1}::visit_stmt<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:186
 #83 0x0000000045bb0e22 in rustc_hir::intravisit::walk_block<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1094
 #84 0x0000000045bb0e84 in rustc_lint::late::{impl#1}::visit_expr::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:175
 #85 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_expr::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #86 rustc_lint::late::{impl#1}::visit_expr<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:173
 #87 rustc_hir::intravisit::walk_block<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1095
 #88 0x0000000045bbd528 in rustc_lint::late::{impl#1}::visit_expr::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:175
 #89 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_expr::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #90 rustc_lint::late::{impl#1}::visit_expr<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:173
 #91 rustc_hir::intravisit::walk_stmt<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1104
 #92 0x0000000045bae648 in rustc_lint::late::{impl#1}::visit_stmt<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:186
 #93 0x0000000045bb0e22 in rustc_hir::intravisit::walk_block<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1094
 #94 0x0000000045bb798c in rustc_lint::late::{impl#1}::visit_expr::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:175
 #95 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_expr::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #96 rustc_lint::late::{impl#1}::visit_expr<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:173
 #97 rustc_hir::intravisit::walk_arm<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1244
 #98 0x0000000045bb9926 in rustc_lint::late::{impl#1}::visit_arm<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:277
 #99 rustc_hir::intravisit::walk_expr<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1175
 #100 0x0000000045bb92ae in rustc_hir::intravisit::walk_expr<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at compiler/rustc_lint/src/late.rs:244
 #101 0x0000000045bb0e84 in rustc_lint::late::{impl#1}::visit_expr::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:175
 #102 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_expr::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #103 rustc_lint::late::{impl#1}::visit_expr<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:173
 #104 rustc_hir::intravisit::walk_block<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1095
 #105 0x0000000045bb8ec8 in rustc_lint::late::{impl#1}::visit_expr::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:175
 #106 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_expr::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #107 rustc_lint::late::{impl#1}::visit_expr<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:173
 #108 rustc_hir::intravisit::walk_body<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:500
 #109 0x0000000045bb62ae in rustc_lint::late::{impl#1}::visit_body<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:136
 #110 rustc_lint::late::{impl#1}::visit_nested_body<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:118
 #111 rustc_hir::intravisit::walk_fn<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:980
 #112 0x0000000045bae77a in rustc_lint::late::{impl#1}::visit_fn<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:203
 #113 0x0000000045bb2826 in rustc_hir::intravisit::walk_impl_item<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1041
 #114 0x0000000045bac652 in rustc_lint::late::{impl#1}::visit_impl_item::{closure#0}::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:323
 #115 rustc_lint::late::LateContextAndPass::with_param_env<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_impl_item::{closure#0}::{closure#0}> () at compiler/rustc_lint/src/late.rs:75
 #116 rustc_lint::late::{impl#1}::visit_impl_item::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:321
 #117 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_impl_item::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #118 rustc_lint::late::{impl#1}::visit_impl_item<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:320
 #119 rustc_hir::intravisit::Visitor::visit_nested_impl_item<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:281
 #120 0x0000000045bbd140 in rustc_hir::intravisit::walk_impl_item_ref<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:1070
 #121 rustc_hir::intravisit::Visitor::visit_impl_item_ref<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:400
 #122 rustc_hir::intravisit::walk_item<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:625
 #123 0x0000000045babbe8 in rustc_lint::late::{impl#1}::visit_item::{closure#0}::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:148
 #124 rustc_lint::late::LateContextAndPass::with_param_env<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_item::{closure#0}::{closure#0}> () at compiler/rustc_lint/src/late.rs:75
 #125 rustc_lint::late::{impl#1}::visit_item::{closure#0}<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:146
 #126 rustc_lint::late::LateContextAndPass::with_lint_attrs<rustc_lint::BuiltinCombinedModuleLateLintPass, rustc_lint::late::{impl#1}::visit_item::{closure#0}> () at compiler/rustc_lint/src/late.rs:63
 #127 rustc_lint::late::{impl#1}::visit_item<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:145
 #128 rustc_hir::intravisit::Visitor::visit_nested_item<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:265
 #129 0x0000000045baf9f6 in rustc_hir::intravisit::walk_mod<rustc_lint::late::LateContextAndPass<rustc_lint::BuiltinCombinedModuleLateLintPass>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_hir/src/intravisit.rs:494
 #130 rustc_lint::late::LateContextAndPass::process_mod<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:81
 #131 rustc_lint::late::late_lint_mod_pass<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:400
 #132 rustc_lint::late::late_lint_mod<rustc_lint::BuiltinCombinedModuleLateLintPass> () at compiler/rustc_lint/src/late.rs:420
 #133 0x00000000453a73cc in rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}<rustc_middle::dep_graph::dep_node::DepKind, rustc_middle::ty::context::TyCtxt, rustc_span::def_id::LocalDefId, (), fn(&mut rustc_middle::ich::hcx::StableHashingContext, &()) -> core::option::Option<rustc_data_structures::fingerprint::Fingerprint>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/dep_graph/graph.rs:249
 #134 rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}::{closure#0}<rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/dep_graph/mod.rs:76
 #135 rustc_middle::ty::context::tls::enter_context::{closure#0}<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #136 rustc_middle::ty::context::tls::set_tlv<rustc_middle::ty::context::tls::enter_context::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1762
 #137 rustc_middle::ty::context::tls::enter_context<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #138 rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}<rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/dep_graph/mod.rs:76
 #139 rustc_middle::ty::context::tls::with_context::{closure#0}<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #140 rustc_middle::ty::context::tls::with_context_opt<rustc_middle::ty::context::tls::with_context::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1795
 #141 rustc_middle::ty::context::tls::with_context<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #142 rustc_middle::dep_graph::{impl#0}::with_deps<rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/dep_graph/mod.rs:73
 #143 0x000000004524f7e4 in rustc_query_system::dep_graph::graph::DepGraph::with_task_impl<rustc_middle::dep_graph::dep_node::DepKind, rustc_middle::ty::context::TyCtxt, rustc_span::def_id::LocalDefId, (), fn(&mut rustc_middle::ich::hcx::StableHashingContext, &()) -> core::option::Option<rustc_data_structures::fingerprint::Fingerprint>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/dep_graph/graph.rs:249
 #144 0x00000000450d2d16 in rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}<rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::LocalDefId, ()>, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/dep_graph/graph.rs:219
 #145 stacker::maybe_grow<((), rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/vendor/stacker/src/lib.rs:55
 #146 rustc_data_structures::stack::ensure_sufficient_stack<((), rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_data_structures/src/stack.rs:16
 #147 0x0000000044f30852 in rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}::{closure#0}<((), rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at compiler/rustc_query_impl/src/plumbing.rs:137
 #148 rustc_middle::ty::context::tls::enter_context::{closure#0}<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}::{closure#0}, ((), rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #149 rustc_middle::ty::context::tls::set_tlv<rustc_middle::ty::context::tls::enter_context::{closure#0}, ((), rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1762
 #150 rustc_middle::ty::context::tls::enter_context<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}::{closure#0}, ((), rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #151 rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}<((), rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at compiler/rustc_query_impl/src/plumbing.rs:136
 #152 rustc_middle::ty::context::tls::with_related_context::{closure#0}<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}, ((), rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1822
 #153 rustc_middle::ty::context::tls::with_context::{closure#0}<rustc_middle::ty::context::tls::with_related_context::{closure#0}, ((), rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #154 rustc_middle::ty::context::tls::with_context_opt<rustc_middle::ty::context::tls::with_context::{closure#0}, ((), rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1795
 #155 rustc_middle::ty::context::tls::with_context<rustc_middle::ty::context::tls::with_related_context::{closure#0}, ((), rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #156 rustc_middle::ty::context::tls::with_related_context<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}, ((), rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1819
 #157 rustc_query_impl::plumbing::{impl#2}::start_query<((), rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at compiler/rustc_query_impl/src/plumbing.rs:125
 #158 rustc_query_system::query::plumbing::force_query_with_job::{closure#0}<rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::LocalDefId, ()>, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:680
 #159 rustc_query_system::query::plumbing::with_diagnostics<rustc_query_system::query::plumbing::force_query_with_job::{closure#0}, ((), rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:338
 #160 rustc_query_system::query::plumbing::force_query_with_job<rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::LocalDefId, ()>, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:679
 #161 0x0000000044edfa78 in rustc_query_system::query::plumbing::try_execute_query<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::LocalDefId, ()>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:520
 #162 rustc_query_system::query::plumbing::get_query_impl<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::LocalDefId, ()>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:730
 #163 0x0000000044fe144e in rustc_query_system::query::plumbing::get_query<rustc_query_impl::queries::lint_mod, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:853
 #164 0x000000004248a5f2 in rustc_middle::ty::query::TyCtxtEnsure::lint_mod () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/query.rs:174
 #165 rustc_lint::late::check_crate::{closure#1}::{closure#0}::{closure#0}<rustc_lint::BuiltinCombinedLateLintPass, rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_lint/src/late.rs:506
 #166 core::iter::traits::iterator::Iterator::for_each::call::{closure#0}<(&rustc_span::def_id::LocalDefId, &rustc_hir::hir::ModuleItems), rustc_lint::late::check_crate::{closure#1}::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/core/src/iter/traits/iterator.rs:730
 #167 core::iter::traits::iterator::Iterator::fold<alloc::collections::btree::map::Iter<rustc_span::def_id::LocalDefId, rustc_hir::hir::ModuleItems>, (), core::iter::traits::iterator::Iterator::for_each::call::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/core/src/iter/traits/iterator.rs:2170
 #168 core::iter::traits::iterator::Iterator::for_each<alloc::collections::btree::map::Iter<rustc_span::def_id::LocalDefId, rustc_hir::hir::ModuleItems>, rustc_lint::late::check_crate::{closure#1}::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/core/src/iter/traits/iterator.rs:733
 #169 rustc_lint::late::check_crate::{closure#1}::{closure#0}<rustc_lint::BuiltinCombinedLateLintPass, rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_lint/src/late.rs:505
 #170 rustc_data_structures::profiling::VerboseTimingGuard::run<(), rustc_lint::late::check_crate::{closure#1}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_data_structures/src/profiling.rs:611
 #171 rustc_session::session::Session::time<(), rustc_lint::late::check_crate::{closure#1}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_session/src/utils.rs:16
 #172 rustc_lint::late::check_crate::{closure#1}<rustc_lint::BuiltinCombinedLateLintPass, rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_lint/src/late.rs:503
 #173 rustc_data_structures::sync::join<rustc_lint::late::check_crate::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_data_structures/src/sync.rs:119
 #174 0x000000004251c530 in rustc_lint::late::check_crate<rustc_lint::BuiltinCombinedLateLintPass, rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_lint/src/late.rs:495
 #175 rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}::{closure#0} () at compiler/rustc_interface/src/passes.rs:958
 #176 rustc_data_structures::profiling::VerboseTimingGuard::run<(), rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_data_structures/src/profiling.rs:611
 #177 rustc_session::session::Session::time<(), rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_session/src/utils.rs:16
 #178 rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3} () at compiler/rustc_interface/src/passes.rs:957
 #179 core::ops::function::FnOnce::call_once<rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/core/src/ops/function.rs:227
 #180 core::panic::unwind_safe::{impl#23}::call_once<(), rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/core/src/panic/unwind_safe.rs:271
 #181 std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}>, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/std/src/panicking.rs:403
 #182 std::panicking::try<(), core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/std/src/panicking.rs:367
 #183 std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#5}::{closure#0}::{closure#3}>, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/std/src/panic.rs:129
 #184 rustc_interface::passes::analysis::{closure#5}::{closure#0} () at compiler/rustc_interface/src/passes.rs:944
 #185 core::ops::function::FnOnce::call_once<rustc_interface::passes::analysis::{closure#5}::{closure#0}, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/core/src/ops/function.rs:227
 #186 core::panic::unwind_safe::{impl#23}::call_once<(), rustc_interface::passes::analysis::{closure#5}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/core/src/panic/unwind_safe.rs:271
 #187 0x000000004248927c in std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#5}::{closure#0}>, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/std/src/panicking.rs:403
 #188 std::panicking::try<(), core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#5}::{closure#0}>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/std/src/panicking.rs:367
 #189 std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<rustc_interface::passes::analysis::{closure#5}::{closure#0}>, ()> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/library/std/src/panic.rs:129
 #190 rustc_interface::passes::analysis::{closure#5} () at compiler/rustc_interface/src/passes.rs:940
 #191 rustc_data_structures::profiling::VerboseTimingGuard::run<(), rustc_interface::passes::analysis::{closure#5}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_data_structures/src/profiling.rs:611
 #192 rustc_session::session::Session::time<(), rustc_interface::passes::analysis::{closure#5}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_session/src/utils.rs:16
 #193 0x00000000424b5c14 in rustc_interface::passes::analysis () at compiler/rustc_interface/src/passes.rs:939
 #194 0x00000000453ac0f2 in rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}<rustc_middle::dep_graph::dep_node::DepKind, rustc_middle::ty::context::TyCtxt, (), core::result::Result<(), rustc_errors::ErrorReported>, fn(&mut rustc_middle::ich::hcx::StableHashingContext, &core::result::Result<(), rustc_errors::ErrorReported>) -> core::option::Option<rustc_data_structures::fingerprint::Fingerprint>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/dep_graph/graph.rs:249
 #195 rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}::{closure#0}<rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/dep_graph/mod.rs:76
 #196 rustc_middle::ty::context::tls::enter_context::{closure#0}<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #197 rustc_middle::ty::context::tls::set_tlv<rustc_middle::ty::context::tls::enter_context::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1762
 #198 rustc_middle::ty::context::tls::enter_context<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #199 rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}<rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/dep_graph/mod.rs:76
 #200 rustc_middle::ty::context::tls::with_context::{closure#0}<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #201 rustc_middle::ty::context::tls::with_context_opt<rustc_middle::ty::context::tls::with_context::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1795
 #202 rustc_middle::ty::context::tls::with_context<rustc_middle::dep_graph::{impl#0}::with_deps::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #203 rustc_middle::dep_graph::{impl#0}::with_deps<rustc_query_system::dep_graph::graph::{impl#3}::with_task_impl::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/dep_graph/mod.rs:73
 #204 0x0000000045250fd0 in rustc_query_system::dep_graph::graph::DepGraph::with_task_impl<rustc_middle::dep_graph::dep_node::DepKind, rustc_middle::ty::context::TyCtxt, (), core::result::Result<(), rustc_errors::ErrorReported>, fn(&mut rustc_middle::ich::hcx::StableHashingContext, &core::result::Result<(), rustc_errors::ErrorReported>) -> core::option::Option<rustc_data_structures::fingerprint::Fingerprint>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/dep_graph/graph.rs:249
 #205 0x00000000450d8ee0 in rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}<rustc_query_system::query::caches::DefaultCache<(), core::result::Result<(), rustc_errors::ErrorReported>>, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/dep_graph/graph.rs:219
 #206 stacker::maybe_grow<(core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/vendor/stacker/src/lib.rs:55
 #207 rustc_data_structures::stack::ensure_sufficient_stack<(core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_data_structures/src/stack.rs:16
 #208 0x0000000044f45290 in rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}::{closure#0}<(core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at compiler/rustc_query_impl/src/plumbing.rs:137
 #209 rustc_middle::ty::context::tls::enter_context::{closure#0}<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}::{closure#0}, (core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #210 rustc_middle::ty::context::tls::set_tlv<rustc_middle::ty::context::tls::enter_context::{closure#0}, (core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1762
 #211 rustc_middle::ty::context::tls::enter_context<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}::{closure#0}, (core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #212 rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}<(core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at compiler/rustc_query_impl/src/plumbing.rs:136
 #213 rustc_middle::ty::context::tls::with_related_context::{closure#0}<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}, (core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1822
 #214 rustc_middle::ty::context::tls::with_context::{closure#0}<rustc_middle::ty::context::tls::with_related_context::{closure#0}, (core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #215 rustc_middle::ty::context::tls::with_context_opt<rustc_middle::ty::context::tls::with_context::{closure#0}, (core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1795
 #216 rustc_middle::ty::context::tls::with_context<rustc_middle::ty::context::tls::with_related_context::{closure#0}, (core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1806
 #217 rustc_middle::ty::context::tls::with_related_context<rustc_query_impl::plumbing::{impl#2}::start_query::{closure#0}, (core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1819
 #218 rustc_query_impl::plumbing::{impl#2}::start_query<(core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::force_query_with_job::{closure#0}::{closure#0}> () at compiler/rustc_query_impl/src/plumbing.rs:125
 #219 rustc_query_system::query::plumbing::force_query_with_job::{closure#0}<rustc_query_system::query::caches::DefaultCache<(), core::result::Result<(), rustc_errors::ErrorReported>>, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:680
 #220 rustc_query_system::query::plumbing::with_diagnostics<rustc_query_system::query::plumbing::force_query_with_job::{closure#0}, (core::result::Result<(), rustc_errors::ErrorReported>, rustc_query_system::dep_graph::graph::DepNodeIndex)> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:338
 #221 rustc_query_system::query::plumbing::force_query_with_job<rustc_query_system::query::caches::DefaultCache<(), core::result::Result<(), rustc_errors::ErrorReported>>, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:679
 #222 0x0000000044ee890a in rustc_query_system::query::plumbing::try_execute_query<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<(), core::result::Result<(), rustc_errors::ErrorReported>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:520
 #223 rustc_query_system::query::plumbing::get_query_impl<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<(), core::result::Result<(), rustc_errors::ErrorReported>>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:730
 #224 0x0000000044fd9df6 in rustc_query_system::query::plumbing::get_query<rustc_query_impl::queries::analysis, rustc_query_impl::plumbing::QueryCtxt> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_query_system/src/query/plumbing.rs:853
 #225 0x00000000423e8ec2 in rustc_middle::ty::query::TyCtxtAt::analysis () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/query.rs:203
 #226 rustc_middle::ty::context::TyCtxt::analysis () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/query.rs:184
 #227 rustc_driver::run_compiler::{closure#1}::{closure#2}::{closure#3} () at compiler/rustc_driver/src/lib.rs:384
 #228 rustc_interface::passes::{impl#0}::enter::{closure#0}<rustc_driver::run_compiler::{closure#1}::{closure#2}::{closure#3}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_interface/src/passes.rs:779
 #229 rustc_middle::ty::context::tls::enter_context::{closure#0}<rustc_interface::passes::{impl#0}::enter::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #230 rustc_middle::ty::context::tls::set_tlv<rustc_middle::ty::context::tls::enter_context::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1762
 #231 rustc_middle::ty::context::tls::enter_context<rustc_interface::passes::{impl#0}::enter::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_middle/src/ty/context.rs:1778
 #232 rustc_interface::passes::QueryContext::enter<rustc_driver::run_compiler::{closure#1}::{closure#2}::{closure#3}, core::result::Result<(), rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_interface/src/passes.rs:779
 #233 0x00000000423b376e in rustc_driver::run_compiler::{closure#1}::{closure#2} () at compiler/rustc_driver/src/lib.rs:383
 #234 rustc_interface::interface::Compiler::enter<rustc_driver::run_compiler::{closure#1}::{closure#2}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_errors::ErrorReported>> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_interface/src/queries.rs:390
 #235 0x000000004236f7e0 in rustc_driver::run_compiler::{closure#1} () at compiler/rustc_driver/src/lib.rs:312
 #236 rustc_interface::interface::create_compiler_and_run::{closure#0}<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_interface/src/interface.rs:209
 #237 rustc_span::with_source_map<core::result::Result<(), rustc_errors::ErrorReported>, rustc_interface::interface::create_compiler_and_run::{closure#0}> () at /wrkdirs/usr/ports/lang/rust-bootstrap/work-riscv64/rustc-1.56.0-src/compiler/rustc_span/src/lib.rs:932
 #238 0x00000000423b4d00 in rustc_interface::interface::create_…
vishwin pushed a commit to vishwin/freebsd-ports that referenced this pull request Apr 21, 2022
patch -p1 -F0 -o helper/fast-import.patched.c git-core/builtin/fast-import.c < helper/fast-import.c.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/builtin/fast-import.c b/builtin/fast-import.c
|index 20406f6775..7ff0911c2c 100644
|--- a/builtin/fast-import.c
|+++ b/builtin/fast-import.c
--------------------------
Patching file git-core/builtin/fast-import.c using Plan A...
Hunk freebsd#1 failed at 19.
Hunk freebsd#2 succeeded at 747 (offset 9 lines).
Hunk freebsd#3 succeeded at 848 (offset 9 lines).
Hunk freebsd#4 failed at 867.
Hunk freebsd#5 succeeded at 967 (offset 9 lines).
Hunk freebsd#6 succeeded at 1653 (offset 9 lines).
Hunk freebsd#7 succeeded at 2222 (offset 9 lines).
Hunk freebsd#8 succeeded at 2288 (offset 9 lines).
2 out of 8 hunks failed--saving rejects to helper/fast-import.patched.c.rej
done
freebsd-git pushed a commit that referenced this pull request Aug 12, 2022
$ ffmpeg -hide_banner -i foo.y4m -c:v libsvtav1 -y foo.mp4
[...]
Segmentation fault
(lldb) bt
* thread #1, name = 'ffmpeg', stop reason = signal SIGSEGV: invalid address (fault address: 0x438)
  * frame #0: 0x00000008372f34b9 libSvtAv1Enc.so.1`svt_aom_copy_metadata_buffer(dst=0x000000089e044680, src=0x0000000000000438) at EbMetadataHandle.c:108:26
    frame #1: 0x00000008372e67c4 libSvtAv1Enc.so.1`copy_input_buffer(scs=0x0000000868186380, dst=0x000000089e044680, dst_y8b=0x000000089e047380, src=0x0000000820287b20, pass=0) at EbEncHandle.c:4820:13
    frame #2: 0x00000008372e64d4 libSvtAv1Enc.so.1`svt_av1_enc_send_picture(svt_enc_component=0x000000085f30de60, p_buffer=0x0000000820287b20) at EbEncHandle.c:4865:9
    frame #3: 0x000000082449de42 libavcodec.so.58`eb_receive_packet at libsvtav1.c:433:9
    frame #4: 0x000000082449dc7a libavcodec.so.58`eb_receive_packet(avctx=0x000000085f309300, pkt=0x000000085f312c00) at libsvtav1.c:503
    frame #5: 0x000000082419f960 libavcodec.so.58`encode_receive_packet_internal(avctx=0x000000085f309300, avpkt=0x000000085f312c00) at encode.c:301:15
    frame #6: 0x000000082419f893 libavcodec.so.58`avcodec_send_frame(avctx=0x000000085f309300, frame=0x0000000000000000) at encode.c:387:15
    frame #7: 0x0000000000231e9a ffmpeg`transcode at ffmpeg.c:1995:23
    frame #8: 0x0000000000231ce8 ffmpeg`transcode at ffmpeg.c:4825
    frame #9: 0x000000000022da03 ffmpeg`main(argc=<unavailable>, argv=<unavailable>) at ffmpeg.c:5010:9
    frame #10: 0x0000000000215ad0 ffmpeg`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:7

Regressed by:	https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/921c1877c050
See also:	https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/4243da4ff42e
freebsd-git pushed a commit that referenced this pull request Oct 18, 2022
$ ffmpeg -hide_banner -i foo.y4m -c:v libsvtav1 -y foo.ivf
$ ffmpeg -hide_banner -i foo.ivf -f null /dev/null
[libdav1d @ 0x250c2c00] libdav1d 1.0.0
[libdav1d @ 0x250c2c00] Frame size limit reduced from 2147483647 to 67108864.
Bus error

* thread #1, name = 'ffmpeg', stop reason = signal SIGBUS: hardware error
    frame #0: 0x22e8c816 libdav1d.so.6`dav1d_data_wrap(buf=0x25100390, ptr="\U00000012", sz=61259, free_callback=(libavcodec.so.58`libdav1d_data_free at libdav1d.c:189), user_data=0x250d66c0) at lib.c:734
(lldb) bt
* thread #1, name = 'ffmpeg', stop reason = signal SIGBUS: hardware error
  * frame #0: 0x22e8c816 libdav1d.so.6`dav1d_data_wrap(buf=0x25100390, ptr="\U00000012", sz=61259, free_callback=(libavcodec.so.58`libdav1d_data_free at libdav1d.c:189), user_data=0x250d66c0) at lib.c:734
    frame #1: 0x213a4c33 libavcodec.so.58`libdav1d_receive_frame(c=<unavailable>, frame=<unavailable>) at libdav1d.c:215:19
    frame #2: 0x21121082 libavcodec.so.58`decode_receive_frame_internal(avctx=0x250bfc00, frame=<unavailable>) at decode.c:546:15
    frame #3: 0x21120fd8 libavcodec.so.58`avcodec_send_packet(avctx=0x250bfc00, avpkt=0xffffd3d0) at decode.c:617:15
    frame #4: 0x20a5273d libavformat.so.58`try_decode_frame(s=<unavailable>, st=0x250f9000, avpkt=<unavailable>, options=<unavailable>) at utils.c:3084:19
    frame #5: 0x20a4fe73 libavformat.so.58`avformat_find_stream_info(ic=0x250d7000, options=0x250d61c0) at utils.c:3949:9
    frame #6: 0x00418cf6 ffmpeg`open_input_file(o=0xffffd80c, filename=<unavailable>) at ffmpeg_opt.c:1196:15
    frame #7: 0x004184c9 ffmpeg`open_files(l=<unavailable>, inout=<unavailable>, open_file=<unavailable>) at ffmpeg_opt.c:3338:15
    frame #8: 0x00418278 ffmpeg`ffmpeg_parse_options(argc=<unavailable>, argv=<unavailable>) at ffmpeg_opt.c:3378:11
    frame #9: 0x0042e6f0 ffmpeg`main(argc=7, argv=0xffffdc44) at ffmpeg.c:4988:11
    frame #10: 0x00417d0d ffmpeg`_start1(cleanup=0x204537e0, argc=7, argv=0xffffdc44) at crt1_c.c:72:7
    frame #11: 0x00417e70 ffmpeg`_start at crt1_s.S:46

$ make clean test -C graphics/libavif
[...]
45% tests passed, 6 tests failed out of 11

Total Test time (real) =  17.82 sec

The following tests FAILED:
          1 - aviftest (Bus error)
          5 - avifchangesettingtest (Bus error)
          6 - avifgridapitest (Bus error)
          7 - avifincrtest (Bus error)
          8 - avifmetadatatest (Bus error)
         11 - test_cmd (Failed)

* thread #1, name = 'aviftest', stop reason = signal SIGBUS: hardware error
    frame #0: 0x207a81f6 libdav1d.so.6`dav1d_data_wrap(buf=0xffffc7d4, ptr="\U00000012", sz=37169, free_callback=(libavif.so.15`avifDav1dFreeCallback at codec_dav1d.c:34), user_data=0x00000000) at lib.c:734
   731                      void (*const free_callback)(const uint8_t *data,
   732                                                  void *user_data),
   733                      void *const user_data)
-> 734  {
   735      return dav1d_data_wrap_internal(buf, ptr, sz, free_callback, user_data);
   736  }
   737
(lldb) bt
* thread #1, name = 'aviftest', stop reason = signal SIGBUS: hardware error
  * frame #0: 0x207a81f6 libdav1d.so.6`dav1d_data_wrap(buf=0xffffc7d4, ptr="\U00000012", sz=37169, free_callback=(libavif.so.15`avifDav1dFreeCallback at codec_dav1d.c:34), user_data=0x00000000) at lib.c:734
    frame #1: 0x204746a1 libavif.so.15`dav1dCodecGetNextImage(codec=0x215e9090, decoder=0x2182c000, sample=0x215e9060, alpha=0, isLimitedRangeAlpha=0xffffc93c, image=0x218400a0) at codec_dav1d.c:87:9
    frame #2: 0x2045c812 libavif.so.15`avifDecoderDecodeTiles(decoder=0x2182c000, nextImageIndex=0, firstTileIndex=0, tileCount=1, decodedTileCount=0x2183302c) at read.c:3853:14
    frame #3: 0x2045bf59 libavif.so.15`avifDecoderNextImage(decoder=0x2182c000) at read.c:3937:9
    frame #4: 0x004029a9 aviftest`runIOTests(dataDir="../libavif-0.11.0/tests/data/") at aviftest.c:255:54
    frame #5: 0x00402310 aviftest`main(argc=2, argv=0xffffdc0c) at aviftest.c:327:19
    frame #6: 0x00401f9d aviftest`_start1(cleanup=0x204157e0, argc=2, argv=0xffffdc0c) at crt1_c.c:72:7
    frame #7: 0x00402100 aviftest`_start at crt1_s.S:46
freebsd-git pushed a commit that referenced this pull request Oct 18, 2022
$ ffmpeg -hide_banner -i foo.y4m -c:v libsvtav1 -y foo.ivf
$ ffmpeg -hide_banner -i foo.ivf -f null /dev/null
[libdav1d @ 0x250c2c00] libdav1d 1.0.0
[libdav1d @ 0x250c2c00] Frame size limit reduced from 2147483647 to 67108864.
Bus error

* thread #1, name = 'ffmpeg', stop reason = signal SIGBUS: hardware error
    frame #0: 0x22e8c816 libdav1d.so.6`dav1d_data_wrap(buf=0x25100390, ptr="\U00000012", sz=61259, free_callback=(libavcodec.so.58`libdav1d_data_free at libdav1d.c:189), user_data=0x250d66c0) at lib.c:734
(lldb) bt
* thread #1, name = 'ffmpeg', stop reason = signal SIGBUS: hardware error
  * frame #0: 0x22e8c816 libdav1d.so.6`dav1d_data_wrap(buf=0x25100390, ptr="\U00000012", sz=61259, free_callback=(libavcodec.so.58`libdav1d_data_free at libdav1d.c:189), user_data=0x250d66c0) at lib.c:734
    frame #1: 0x213a4c33 libavcodec.so.58`libdav1d_receive_frame(c=<unavailable>, frame=<unavailable>) at libdav1d.c:215:19
    frame #2: 0x21121082 libavcodec.so.58`decode_receive_frame_internal(avctx=0x250bfc00, frame=<unavailable>) at decode.c:546:15
    frame #3: 0x21120fd8 libavcodec.so.58`avcodec_send_packet(avctx=0x250bfc00, avpkt=0xffffd3d0) at decode.c:617:15
    frame #4: 0x20a5273d libavformat.so.58`try_decode_frame(s=<unavailable>, st=0x250f9000, avpkt=<unavailable>, options=<unavailable>) at utils.c:3084:19
    frame #5: 0x20a4fe73 libavformat.so.58`avformat_find_stream_info(ic=0x250d7000, options=0x250d61c0) at utils.c:3949:9
    frame #6: 0x00418cf6 ffmpeg`open_input_file(o=0xffffd80c, filename=<unavailable>) at ffmpeg_opt.c:1196:15
    frame #7: 0x004184c9 ffmpeg`open_files(l=<unavailable>, inout=<unavailable>, open_file=<unavailable>) at ffmpeg_opt.c:3338:15
    frame #8: 0x00418278 ffmpeg`ffmpeg_parse_options(argc=<unavailable>, argv=<unavailable>) at ffmpeg_opt.c:3378:11
    frame #9: 0x0042e6f0 ffmpeg`main(argc=7, argv=0xffffdc44) at ffmpeg.c:4988:11
    frame #10: 0x00417d0d ffmpeg`_start1(cleanup=0x204537e0, argc=7, argv=0xffffdc44) at crt1_c.c:72:7
    frame #11: 0x00417e70 ffmpeg`_start at crt1_s.S:46

$ make clean test -C graphics/libavif
[...]
45% tests passed, 6 tests failed out of 11

Total Test time (real) =  17.82 sec

The following tests FAILED:
          1 - aviftest (Bus error)
          5 - avifchangesettingtest (Bus error)
          6 - avifgridapitest (Bus error)
          7 - avifincrtest (Bus error)
          8 - avifmetadatatest (Bus error)
         11 - test_cmd (Failed)

* thread #1, name = 'aviftest', stop reason = signal SIGBUS: hardware error
    frame #0: 0x207a81f6 libdav1d.so.6`dav1d_data_wrap(buf=0xffffc7d4, ptr="\U00000012", sz=37169, free_callback=(libavif.so.15`avifDav1dFreeCallback at codec_dav1d.c:34), user_data=0x00000000) at lib.c:734
   731                      void (*const free_callback)(const uint8_t *data,
   732                                                  void *user_data),
   733                      void *const user_data)
-> 734  {
   735      return dav1d_data_wrap_internal(buf, ptr, sz, free_callback, user_data);
   736  }
   737
(lldb) bt
* thread #1, name = 'aviftest', stop reason = signal SIGBUS: hardware error
  * frame #0: 0x207a81f6 libdav1d.so.6`dav1d_data_wrap(buf=0xffffc7d4, ptr="\U00000012", sz=37169, free_callback=(libavif.so.15`avifDav1dFreeCallback at codec_dav1d.c:34), user_data=0x00000000) at lib.c:734
    frame #1: 0x204746a1 libavif.so.15`dav1dCodecGetNextImage(codec=0x215e9090, decoder=0x2182c000, sample=0x215e9060, alpha=0, isLimitedRangeAlpha=0xffffc93c, image=0x218400a0) at codec_dav1d.c:87:9
    frame #2: 0x2045c812 libavif.so.15`avifDecoderDecodeTiles(decoder=0x2182c000, nextImageIndex=0, firstTileIndex=0, tileCount=1, decodedTileCount=0x2183302c) at read.c:3853:14
    frame #3: 0x2045bf59 libavif.so.15`avifDecoderNextImage(decoder=0x2182c000) at read.c:3937:9
    frame #4: 0x004029a9 aviftest`runIOTests(dataDir="../libavif-0.11.0/tests/data/") at aviftest.c:255:54
    frame #5: 0x00402310 aviftest`main(argc=2, argv=0xffffdc0c) at aviftest.c:327:19
    frame #6: 0x00401f9d aviftest`_start1(cleanup=0x204157e0, argc=2, argv=0xffffdc0c) at crt1_c.c:72:7
    frame #7: 0x00402100 aviftest`_start at crt1_s.S:46

(cherry picked from commit f61964e)
vishwin pushed a commit to vishwin/freebsd-ports that referenced this pull request Nov 15, 2022
https://forums.freebsd.org/threads/vulkan-caps-viewer-segmentation-fault.87083/

$ pkg delete qt5-wayland
$ env -u WAYLAND_DISPLAY vulkanCapsViewer
Reading extensions
Device "Intel(R) HD Graphics 530 (SKL GT2)"
Reading Vulkan 1.1 core properties
Reading Vulkan 1.2 core properties
Reading Vulkan 1.3 core properties
Reading layers
Reading queue families
Reading physical feattures
Reading Vulkan 1.1 core features
Reading Vulkan 1.2 core features
Reading Vulkan 1.3 core features
Reading limits
Reading memory properties
Reading surface info
Segmentation fault

```c++
(lldb) bt
* thread freebsd#1, name = 'vulkanCapsViewer', stop reason = signal SIGSEGV: invalid address (fault address: 0x18)
  * frame #0: 0x0000000824ac758e libwayland-client.so.0`wl_proxy_create_wrapper(proxy=0x0000000000000000) at wayland-client.c:2406:37
    frame freebsd#1: 0x00000008749dc1ef libvulkan_intel.so`wsi_wl_display_init(wsi_wl=0x000000085c889660, display=0x000000082088e668, wl_display=0x0000000000000000, get_format_list=true, sw=false) at wsi_common_wayland.c:558:34
    frame freebsd#2: 0x00000008749dca1b libvulkan_intel.so`wsi_wl_surface_get_formats(icd_surface=0x000000085ca621a0, wsi_device=0x000000085c8beb58, pSurfaceFormatCount=0x000000082088e7c0, pSurfaceFormats=0x0000000000000000) at wsi_common_wayland.c:779:8
    frame freebsd#3: 0x00000008749d16b1 libvulkan_intel.so`wsi_GetPhysicalDeviceSurfaceFormatsKHR(physicalDevice=0x000000085c8be000, _surface=0x000000085ca621a0, pSurfaceFormatCount=0x000000082088e7c0, pSurfaceFormats=0x0000000000000000) at wsi_common.c:709:11
    frame freebsd#4: 0x00000008749ed972 libvulkan_intel.so`vk_tramp_GetPhysicalDeviceSurfaceFormatsKHR(physicalDevice=0x000000085c8be000, surface=0x000000085ca621a0, pSurfaceFormatCount=0x000000082088e7c0, pSurfaceFormats=0x0000000000000000) at vk_dispatch_trampolines.c:162:12
    frame freebsd#5: 0x00000000003bf422 vulkanCapsViewer`VulkanSurfaceInfo::get(this=0x000000085c978348, device=0x000000085ca7a280, surface=0x000000085c8892a0) at vulkansurfaceinfo.hpp:61:13
    frame freebsd#6: 0x000000000039d67b vulkanCapsViewer`VulkanDeviceInfo::readSurfaceInfo(this=0x000000085c977c00, surface=0x000000085c8892a0, surfaceExtension="VK_KHR_wayland_surface") at vulkanDeviceInfo.cpp:760:17
    frame freebsd#7: 0x00000000002fc8da vulkanCapsViewer`VulkanCapsViewer::getGPUinfo(this=0x000000082088f448, GPU=0x000000085c977c00, id=0, device=0x000000085ca7a280) at vulkancapsviewer.cpp:809:10
    frame freebsd#8: 0x00000000002f792b vulkanCapsViewer`VulkanCapsViewer::getGPUs(this=0x000000082088f448) at vulkancapsviewer.cpp:902:9
    frame freebsd#9: 0x00000000002f6317 vulkanCapsViewer`VulkanCapsViewer::VulkanCapsViewer(this=0x000000082088f448, parent=0x0000000000000000) at vulkancapsviewer.cpp:262:5
    frame freebsd#10: 0x00000000002a438d vulkanCapsViewer`main(argc=1, argv=0x000000082088fc68) at main.cpp:93:22
    frame freebsd#11: 0x000000000029c2d0 vulkanCapsViewer`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:7
```
freebsd-git pushed a commit that referenced this pull request Nov 15, 2022
https://forums.freebsd.org/threads/vulkan-caps-viewer-segmentation-fault.87083/

$ pkg delete qt5-wayland
$ env -u WAYLAND_DISPLAY vulkanCapsViewer
Reading extensions
Device "Intel(R) HD Graphics 530 (SKL GT2)"
Reading Vulkan 1.1 core properties
Reading Vulkan 1.2 core properties
Reading Vulkan 1.3 core properties
Reading layers
Reading queue families
Reading physical feattures
Reading Vulkan 1.1 core features
Reading Vulkan 1.2 core features
Reading Vulkan 1.3 core features
Reading limits
Reading memory properties
Reading surface info
Segmentation fault

```c++
(lldb) bt
* thread #1, name = 'vulkanCapsViewer', stop reason = signal SIGSEGV: invalid address (fault address: 0x18)
  * frame #0: 0x0000000824ac758e libwayland-client.so.0`wl_proxy_create_wrapper(proxy=0x0000000000000000) at wayland-client.c:2406:37
    frame #1: 0x00000008749dc1ef libvulkan_intel.so`wsi_wl_display_init(wsi_wl=0x000000085c889660, display=0x000000082088e668, wl_display=0x0000000000000000, get_format_list=true, sw=false) at wsi_common_wayland.c:558:34
    frame #2: 0x00000008749dca1b libvulkan_intel.so`wsi_wl_surface_get_formats(icd_surface=0x000000085ca621a0, wsi_device=0x000000085c8beb58, pSurfaceFormatCount=0x000000082088e7c0, pSurfaceFormats=0x0000000000000000) at wsi_common_wayland.c:779:8
    frame #3: 0x00000008749d16b1 libvulkan_intel.so`wsi_GetPhysicalDeviceSurfaceFormatsKHR(physicalDevice=0x000000085c8be000, _surface=0x000000085ca621a0, pSurfaceFormatCount=0x000000082088e7c0, pSurfaceFormats=0x0000000000000000) at wsi_common.c:709:11
    frame #4: 0x00000008749ed972 libvulkan_intel.so`vk_tramp_GetPhysicalDeviceSurfaceFormatsKHR(physicalDevice=0x000000085c8be000, surface=0x000000085ca621a0, pSurfaceFormatCount=0x000000082088e7c0, pSurfaceFormats=0x0000000000000000) at vk_dispatch_trampolines.c:162:12
    frame #5: 0x00000000003bf422 vulkanCapsViewer`VulkanSurfaceInfo::get(this=0x000000085c978348, device=0x000000085ca7a280, surface=0x000000085c8892a0) at vulkansurfaceinfo.hpp:61:13
    frame #6: 0x000000000039d67b vulkanCapsViewer`VulkanDeviceInfo::readSurfaceInfo(this=0x000000085c977c00, surface=0x000000085c8892a0, surfaceExtension="VK_KHR_wayland_surface") at vulkanDeviceInfo.cpp:760:17
    frame #7: 0x00000000002fc8da vulkanCapsViewer`VulkanCapsViewer::getGPUinfo(this=0x000000082088f448, GPU=0x000000085c977c00, id=0, device=0x000000085ca7a280) at vulkancapsviewer.cpp:809:10
    frame #8: 0x00000000002f792b vulkanCapsViewer`VulkanCapsViewer::getGPUs(this=0x000000082088f448) at vulkancapsviewer.cpp:902:9
    frame #9: 0x00000000002f6317 vulkanCapsViewer`VulkanCapsViewer::VulkanCapsViewer(this=0x000000082088f448, parent=0x0000000000000000) at vulkancapsviewer.cpp:262:5
    frame #10: 0x00000000002a438d vulkanCapsViewer`main(argc=1, argv=0x000000082088fc68) at main.cpp:93:22
    frame #11: 0x000000000029c2d0 vulkanCapsViewer`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:7
```

(cherry picked from commit 387f99b)
freebsd-git pushed a commit that referenced this pull request Nov 21, 2022
$ echo 'exec swaymsg -t get_outputs' >/tmp/sway.conf
$ WLR_BACKENDS=headless sway -c /tmp/sway.conf
00:00:00.067 [wlr] [types/wlr_drm_lease_v1.c:716] No DRM backend supplied, failed to create wlr_drm_lease_v1_manager
00:00:00.000 [common/ipc-client.c:87] Unable to receive IPC response
Segmentation fault
(lldb) bt
* thread #1, name = 'sway', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
  * frame #0: 0x000000082b381e84 libc.so.7`strlen + 84
    frame #1: 0x0000000822cc530d libjson-c.so.5`json_object_new_string(s=0x0000000000000000) at json_object.c:1276:36
    frame #2: 0x0000000000234de9 sway`ipc_json_describe_output(output=0x0000000871982200, object=0x00000008755e63b0) at ipc-json.c:255:4
    frame #3: 0x000000000023441f sway`ipc_json_describe_node(node=0x0000000871982200) at ipc-json.c:707:3
    frame #4: 0x0000000000239d07 sway`ipc_client_handle_command(client=0x000000084e3a1380, payload_length=0, payload_type=IPC_GET_OUTPUTS) at ipc-server.c:672:31
    frame #5: 0x00000000002397fa sway`ipc_client_handle_readable(client_fd=27, mask=1, data=0x000000084e3a1380) at ipc-server.c:267:3
    frame #6: 0x00000008271b88c7 libwayland-server.so.0`wl_event_source_fd_dispatch(source=0x000000084e3a16c0, ep=0x0000000820f4e360) at event-loop.c:112:9
    frame #7: 0x00000008271b9fd4 libwayland-server.so.0`wl_event_loop_dispatch(loop=0x000000084e344320, timeout=-1) at event-loop.c:1027:4
    frame #8: 0x00000008271b5c6f libwayland-server.so.0`wl_display_run(display=0x000000084e35e000) at wayland-server.c:1431:3
    frame #9: 0x000000000023e205 sway`server_run(server=0x00000000002a3070) at server.c:310:2
    frame #10: 0x000000000023cd84 sway`main(argc=3, argv=0x0000000820f4e608) at main.c:431:2
    frame #11: 0x000000000022ca10 sway`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:7
(lldb) f 2
frame #2: 0x0000000000234de9 sway`ipc_json_describe_output(output=0x0000000871982200, object=0x00000008755e63b0) at ipc-json.c:255:4
   252                          json_object_new_string(
   253                                  ipc_json_orientation_description(L_NONE)));
   254          json_object_object_add(object, "make",
-> 255                          json_object_new_string(wlr_output->make));
   256          json_object_object_add(object, "model",
   257                          json_object_new_string(wlr_output->model));
   258          json_object_object_add(object, "serial",
(lldb) p *wlr_output
(wlr_output) $0 = {
[...]
  make = 0x0000000000000000
  model = 0x0000000000000000
  serial = 0x0000000000000000
[...]

PR:		267853
Reported by:	lbartoletti
Regressed by:	https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/be86145322e6
freebsd-git pushed a commit that referenced this pull request Nov 23, 2022
$ mpv --vo=gpu-next foo.mp4
[...]
Segmentation fault
(lldb) bt
* thread #10, name = 'mpv/vo', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
  * frame #0: 0x000000083b4c8e84 libc.so.7`strlen + 84
    frame #1: 0x000000083b4996bd libc.so.7`vsscanf + 173
    frame #2: 0x000000083b48c72d libc.so.7`sscanf + 141
    frame #3: 0x00000000004c0dd4 mpv`gl_parse_3dlut_size(arg=0x0000000000000000, p1=0x000000088fcf7d3c, p2=0x000000088fcf7d38, p3=0x000000088fcf7d34) at lcms.h:45:9
    frame #4: 0x00000000004c085b mpv`update_icc_opts(p=0x00000008792f9b10, opts=0x0000000891370050) at vo_gpu_next.c:1619:5
    frame #5: 0x00000000004c00ef mpv`update_render_options(vo=0x0000000875b38910) at vo_gpu_next.c:1863:5
    frame #6: 0x00000000004bde05 mpv`preinit(vo=0x0000000875b38910) at vo_gpu_next.c:1426:5
    frame #7: 0x000000000048cc99 mpv`vo_thread(ptr=0x0000000875b38910) at vo.c:1088:13
    frame #8: 0x000000083bc4783a libthr.so.3`___lldb_unnamed_symbol556 + 314
freebsd-git pushed a commit that referenced this pull request Jan 17, 2023
ChangeLog:
	[decof/du/tru64] Remove support because the os is no longer updated for more than 10 years

	[openstep/nextstep] Remove support because the os is no longer updated for more than 20 years

	Add experimental build system based on Autotools (#270)

	Fixed LTsock testing on darwin (#272)

	Remove NEW and OLD folders (#6)

	Fix FreeBSD testcases (#271)

	Rewrite documentation and publish at https://lsof.readthedocs.io/
freebsd-git pushed a commit that referenced this pull request May 4, 2023
$ baka-mplayer
Segmentation fault

* thread #1, name = 'baka-mplayer', stop reason = signal SIGBUS: hardware error
    frame #0: 0x0000000820df9a52 libX11.so.6`_XInternAtom(dpy=0x000000088683af00, name="_NET_WM_CM_S0", onlyIfExists=0, psig=0x000000082092bd70, pidx=0x000000082092bd6c, pn=0x000000082092bd68) at IntAtom.c:86:30
   83       if (atoms) {
   84           firstidx = idx = HASH(sig);
   85           while ((e = atoms->table[idx])) {
-> 86               if (e != RESERVED && e->sig == sig) {
   87                   for (i = n, s1 = (char *)name, s2 = EntryName(e); --i >= 0; ) {
   88                       if (*s1++ != *s2++)
   89                           goto nomatch;
(lldb) bt
* thread #1, name = 'baka-mplayer', stop reason = signal SIGBUS: hardware error
  * frame #0: 0x0000000820df9a52 libX11.so.6`_XInternAtom(dpy=0x000000088683af00, name="_NET_WM_CM_S0", onlyIfExists=0, psig=0x000000082092bd70, pidx=0x000000082092bd6c, pn=0x000000082092bd68) at IntAtom.c:86:30
    frame #1: 0x0000000820df97d9 libX11.so.6`XInternAtom(dpy=0x000000088683af00, name="_NET_WM_CM_S0", onlyIfExists=0) at IntAtom.c:176:17
    frame #2: 0x0000000000263695 baka-mplayer`Util::DimLightsSupported() at linux.cpp:28:14
    frame #3: 0x000000000026c71a baka-mplayer`BakaEngine::BakaEngine(this=0x00000008a964bd00, parent=0x000000082092fe10) at bakaengine.cpp:31:8
    frame #4: 0x00000000002b1739 baka-mplayer`MainWindow::MainWindow(this=0x000000082092fe10, parent=0x0000000000000000) at mainwindow.cpp:31:16
    frame #5: 0x00000000002648ec baka-mplayer`main(argc=1, argv=0x000000082092ff48) at main.cpp:21:16
    frame #6: 0x00000000002633a0 baka-mplayer`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:7

(cherry picked from commit 7a77117)
freebsd-git pushed a commit that referenced this pull request May 4, 2023
$ baka-mplayer
Segmentation fault

* thread #1, name = 'baka-mplayer', stop reason = signal SIGBUS: hardware error
    frame #0: 0x0000000820df9a52 libX11.so.6`_XInternAtom(dpy=0x000000088683af00, name="_NET_WM_CM_S0", onlyIfExists=0, psig=0x000000082092bd70, pidx=0x000000082092bd6c, pn=0x000000082092bd68) at IntAtom.c:86:30
   83       if (atoms) {
   84           firstidx = idx = HASH(sig);
   85           while ((e = atoms->table[idx])) {
-> 86               if (e != RESERVED && e->sig == sig) {
   87                   for (i = n, s1 = (char *)name, s2 = EntryName(e); --i >= 0; ) {
   88                       if (*s1++ != *s2++)
   89                           goto nomatch;
(lldb) bt
* thread #1, name = 'baka-mplayer', stop reason = signal SIGBUS: hardware error
  * frame #0: 0x0000000820df9a52 libX11.so.6`_XInternAtom(dpy=0x000000088683af00, name="_NET_WM_CM_S0", onlyIfExists=0, psig=0x000000082092bd70, pidx=0x000000082092bd6c, pn=0x000000082092bd68) at IntAtom.c:86:30
    frame #1: 0x0000000820df97d9 libX11.so.6`XInternAtom(dpy=0x000000088683af00, name="_NET_WM_CM_S0", onlyIfExists=0) at IntAtom.c:176:17
    frame #2: 0x0000000000263695 baka-mplayer`Util::DimLightsSupported() at linux.cpp:28:14
    frame #3: 0x000000000026c71a baka-mplayer`BakaEngine::BakaEngine(this=0x00000008a964bd00, parent=0x000000082092fe10) at bakaengine.cpp:31:8
    frame #4: 0x00000000002b1739 baka-mplayer`MainWindow::MainWindow(this=0x000000082092fe10, parent=0x0000000000000000) at mainwindow.cpp:31:16
    frame #5: 0x00000000002648ec baka-mplayer`main(argc=1, argv=0x000000082092ff48) at main.cpp:21:16
    frame #6: 0x00000000002633a0 baka-mplayer`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:7
freebsd-git pushed a commit that referenced this pull request May 17, 2023
Fixed in LLVM 16:
fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/bin/c++ -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/wrkdirs/usr/ports/devel/qcoro/work-qt5/.build\" -DQT_TESTLIB_LIB -DQT_USE_STRINGBUILDER -I/wrkdirs/usr/ports/devel/qcoro/work-qt5/.build/tests/test-qcorosignal_autogen/include -I/wrkdirs/usr/ports/devel/qcoro/work-qt5/qcoro-0.9.0/tests/testlibs -I/wrkdirs/usr/ports/devel/qcoro/work-qt5/qcoro-0.9.0 -I/wrkdirs/usr/ports/devel/qcoro/work-qt5/qcoro-0.9.0/qcoro -I/wrkdirs/usr/ports/devel/qcoro/work-qt5/qcoro-0.9.0/qcoro/core -I/wrkdirs/usr/ports/devel/qcoro/work-qt5/.build/qcoro/core -I/wrkdirs/usr/ports/devel/qcoro/work-qt5/.build/qcoro -I/wrkdirs/usr/ports/devel/qcoro/work-qt5/qcoro-0.9.0/qcoro/test -I/wrkdirs/usr/ports/devel/qcoro/work-qt5/.build/qcoro/test -isystem /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtCore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang -isystem /usr/local/include/qt5/QtTest -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fcoroutines-ts -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=gnu++20 -fPIC -pthread -MD -MT tests/CMakeFiles/test-qcorosignal.dir/qcorosignal.cpp.o -MF tests/CMakeFiles/test-qcorosignal.dir/qcorosignal.cpp.o.d -o tests/CMakeFiles/test-qcorosignal.dir/qcorosignal.cpp.o -c /wrkdirs/usr/ports/devel/qcoro/work-qt5/qcoro-0.9.0/tests/qcorosignal.cpp
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/wrkdirs/usr/ports/devel/qcoro/work-qt5/qcoro-0.9.0/tests/qcorosignal.cpp'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_ZZ19qCoroSignalListenerI15MultiSignalTestM10SignalTestFvvEEN5QCoro14AsyncGeneratorINS4_6detail16QCoroSignalQueueIT_T0_E11result_type10value_typeEEEPS8_OS9_NSt3__16chrono8durationIxNSF_5ratioILl1ELl1000EEEEEENKUlNSF_10unique_ptrINS7_IS0_S3_EENSF_14default_deleteISM_EEEEE_clESP_.resume'
 #0 0x0000000014b1252c (/usr/bin/c+++0x14b1252c)
 #1 0x0000000014b0fd00 (/usr/bin/c+++0x14b0fd00)
 #2 0x0000000014aab0cc (/usr/bin/c+++0x14aab0cc)
 #3 0x0000000014aab020 (/usr/bin/c+++0x14aab020)
 #4 0x0000000014afc590 (/usr/bin/c+++0x14afc590)
 #5 0x00000000117cd530 (/usr/bin/c+++0x117cd530)
 #6 0x0000000014ab4fe0 (/usr/bin/c+++0x14ab4fe0)
 #7 0x0000000014ab4e6c (/usr/bin/c+++0x14ab4e6c)
 #8 0x00000000154bd3f0 (/usr/bin/c+++0x154bd3f0)
 #9 0x0000000014d5f9d0 (/usr/bin/c+++0x14d5f9d0)
c++: error: clang frontend command failed with exit code 70 (use -v to see invocation)
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
Target: powerpc64le-unknown-freebsd13.2
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/qcorosignal-479743.cpp
c++: note: diagnostic msg: /tmp/qcorosignal-479743.sh
c++: note: diagnostic msg:

********************
freebsd-git pushed a commit that referenced this pull request May 28, 2023
Fixed in LLVM 16:
/usr/bin/c++ -DCRCPP_EXPORT_API -Dconcurrencpp_EXPORTS -isystem /wrkdirs/usr/ports/devel/concurrencpp/work/concurrencpp-v.0.1.6/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -std=c++20 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -pthread -MD -MT CMakeFiles/concurrencpp.dir/source/timers/timer_queue.cpp.o -MF CMakeFiles/concurrencpp.dir/source/timers/timer_queue.cpp.o.d -o CMakeFiles/concurrencpp.dir/source/timers/timer_queue.cpp.o -c /wrkdirs/usr/ports/devel/concurrencpp/work/concurrencpp-v.0.1.6/source/timers/timer_queue.cpp
fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/bin/c++ -DCRCPP_EXPORT_API -Dconcurrencpp_EXPORTS -isystem /wrkdirs/usr/ports/devel/concurrencpp/work/concurrencpp-v.0.1.6/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=c++20 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -pthread -MD -MT CMakeFiles/concurrencpp.dir/source/timers/timer_queue.cpp.o -MF CMakeFiles/concurrencpp.dir/source/timers/timer_queue.cpp.o.d -o CMakeFiles/concurrencpp.dir/source/timers/timer_queue.cpp.o -c /wrkdirs/usr/ports/devel/concurrencpp/work/concurrencpp-v.0.1.6/source/timers/timer_queue.cpp
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/wrkdirs/usr/ports/devel/concurrencpp/work/concurrencpp-v.0.1.6/source/timers/timer_queue.cpp'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_ZN12concurrencpp11timer_queue22make_delay_object_implENSt3__16chrono8durationIxNS1_5ratioILl1ELl1000EEEEENS1_10shared_ptrIS0_EENS7_INS_8executorEEE.resume'
 #0 0x0000000014b1252c (/usr/bin/c+++0x14b1252c)
 #1 0x0000000014b0fd00 (/usr/bin/c+++0x14b0fd00)
 #2 0x0000000014aab0cc (/usr/bin/c+++0x14aab0cc)
 #3 0x0000000014aab020 (/usr/bin/c+++0x14aab020)
 #4 0x0000000014afc590 (/usr/bin/c+++0x14afc590)
 #5 0x00000000117cd530 (/usr/bin/c+++0x117cd530)
 #6 0x0000000014ab4fe0 (/usr/bin/c+++0x14ab4fe0)
 #7 0x0000000014ab4e6c (/usr/bin/c+++0x14ab4e6c)
 #8 0x00000000154bd3f0 (/usr/bin/c+++0x154bd3f0)
 #9 0x0000000014d5f9d0 (/usr/bin/c+++0x14d5f9d0)
c++: error: clang frontend command failed with exit code 70 (use -v to see invocation)
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
Target: powerpc64le-unknown-freebsd13.2
Thread model: posix
InstalledDir: /usr/bin
freebsd-git pushed a commit that referenced this pull request Jun 10, 2023
Use newer LLVM:
fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/c++ -DHAVE_COLORSCHEME -DHAVE_KDBUSADDONS -DHAVE_KIO -DHAVE_RUNNER -DHAVE_WINDOWSYSTEM -DHAVE_X11 -DKCOREADDONS_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQUOTIENT_07 -DQUOTIENT_STATIC -DQuotient_VERSION_MAJOR=0 -DQuotient_VERSION_MINOR=7 -DQuotient_VERSION_PATCH=1 -DQuotient_VERSION_STRING=\"0.7.1\" -D_LARGEFILE64_SOURCE -I/wrkdirs/usr/ports/net-im/neochat/work/.build/src -I/wrkdirs/usr/ports/net-im/neochat/work/neochat-23.04.1/src -I/wrkdirs/usr/ports/net-im/neochat/work/.build/src/neochat_autogen/include -I/wrkdirs/usr/ports/net-im/neochat/work/.build -isystem /usr/local/include/KF5/KConfigWidgets -isystem /usr/local/include/KF5 -isystem /usr/local/include/KF5/KWidgetsAddons -isystem /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtWidgets -isystem /usr/local/include/qt5/QtGui -isystem /usr/local/include -isystem /usr/local/include/qt5/QtCore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang -isystem /usr/local/include/KF5/KConfig -isystem /usr/local/include/KF5/KConfigGui -isystem /usr/local/include/qt5/QtXml -isystem /usr/local/include/KF5/KConfigCore -isystem /usr/local/include/KF5/KCoreAddons -isystem /usr/local/include/KF5/KCodecs -isystem /usr/local/include/KF5/KAuthWidgets -isystem /usr/local/include/KF5/KAuthCore -isystem /usr/local/include/KF5/KAuth -isystem /usr/local/include/KF5/KWindowSystem -isystem /usr/local/include/qt5/QtQuick -isystem /usr/local/include/qt5/QtQmlModels -isystem /usr/local/include/qt5/QtQml -isystem /usr/local/include/qt5/QtNetwork -isystem /usr/local/include/qt5/QtMultimedia -isystem /usr/local/include/qt5/QtQuickControls2 -isystem /usr/local/include/KF5/KI18n -isystem /usr/local/include/KF5/Kirigami2 -isystem /usr/local/include/KF5/KNotifications -isystem /usr/local/include/qt5/QtDBus -isystem /usr/local/include/KF5/SonnetCore -isystem /usr/local/include/KF5/Sonnet -isystem /usr/local/include/KF5/KItemModels -isystem /usr/local/include/Quotient -isystem /usr/local/include/qcoro5 -isystem /usr/local/include/qcoro5/qcoro -isystem /usr/local/include/qcoro5/QCoro -isystem /usr/local/include/KF5/KIOWidgets -isystem /usr/local/include/KF5/KIOGui -isystem /usr/local/include/KF5/KIOCore -isystem /usr/local/include/KF5/KIO -isystem /usr/local/include/KF5/KService -isystem /usr/local/include/qt5/QtConcurrent -isystem /usr/local/include/KF5/KJobWidgets -isystem /usr/local/include/KF5/Solid -isystem /usr/local/include/KF5/KCompletion -isystem /usr/local/include/KF5/KDBusAddons -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -fcoroutines-ts -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=gnu++20 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -MD -MT src/CMakeFiles/neochat.dir/neochatroom.cpp.o -MF src/CMakeFiles/neochat.dir/neochatroom.cpp.o.d -o src/CMakeFiles/neochat.dir/neochatroom.cpp.o -c /wrkdirs/usr/ports/net-im/neochat/work/neochat-23.04.1/src/neochatroom.cpp
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module '/wrkdirs/usr/ports/net-im/neochat/work/neochat-23.04.1/src/neochatroom.cpp'.
4.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_Z5qCoroI12QMediaPlayerMS0_FvNS0_11MediaStatusEEEN5QCoro4TaskINS4_6detail11QCoroSignalIT_T0_E11result_typeEEEPS8_OS9_NSt3__16chrono8durationIxNSF_5ratioILl1ELl1000EEEEE.resume'
 #0 0x0000000014b1252c (/usr/bin/c+++0x14b1252c)
 #1 0x0000000014b0fd00 (/usr/bin/c+++0x14b0fd00)
 #2 0x0000000014aab0cc (/usr/bin/c+++0x14aab0cc)
 #3 0x0000000014aab020 (/usr/bin/c+++0x14aab020)
 #4 0x0000000014afc590 (/usr/bin/c+++0x14afc590)
 #5 0x00000000117cd530 (/usr/bin/c+++0x117cd530)
 #6 0x0000000014ab4fe0 (/usr/bin/c+++0x14ab4fe0)
 #7 0x0000000014ab4e6c (/usr/bin/c+++0x14ab4e6c)
 #8 0x00000000154bd3f0 (/usr/bin/c+++0x154bd3f0)
 #9 0x0000000014d5f9d0 (/usr/bin/c+++0x14d5f9d0)
c++: error: clang frontend command failed with exit code 70 (use -v to see invocation)
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
Target: powerpc64le-unknown-freebsd13.2
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg:
freebsd-git pushed a commit that referenced this pull request Aug 10, 2023
$ mono foo
Segmentation fault

* thread #1, name = 'mono-sgen', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
    frame #0: 0x00000000005632f9 mono`mono_arch_create_sdb_trampoline(single_step=0, info=0x0000000820fe7d90, aot=0) at tramp-amd64.c:854:2
   851          // IP saved at CFA - 8
   852          mono_add_unwind_op_offset (unwind_ops, code, buf, AMD64_RIP, -cfa_offset);
   853
-> 854          amd64_push_reg (code, AMD64_RBP);
   855          cfa_offset += sizeof(mgreg_t);
   856          mono_add_unwind_op_def_cfa_offset (unwind_ops, code, buf, cfa_offset);
   857          mono_add_unwind_op_offset (unwind_ops, code, buf, AMD64_RBP, - cfa_offset);
(lldb) bt
* thread #1, name = 'mono-sgen', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
  * frame #0: 0x00000000005632f9 mono`mono_arch_create_sdb_trampoline(single_step=0, info=0x0000000820fe7d90, aot=0) at tramp-amd64.c:854:2
    frame #1: 0x000000000047cf36 mono`mini_get_breakpoint_trampoline at mini-trampolines.c:1812:12
    frame #2: 0x00000000004dc5a1 mono`mono_arch_init at mini-amd64.c:1405:19
    frame #3: 0x000000000035fde4 mono`mini_init(filename="foo", runtime_version=0x0000000000000000) at mini-runtime.c:4364:2
    frame #4: 0x0000000000426853 mono`mono_main(argc=2, argv=0x0000000820fe8268) at driver.c:2470:11
    frame #5: 0x0000000000359363 mono`mono_main_with_options(argc=2, argv=0x0000000820fe8268) at main.c:50:9
    frame #6: 0x00000000003589b1 mono`main(argc=2, argv=0x0000000820fe8268) at main.c:406:9
    frame #7: 0x0000000000358770 mono`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:7
freebsd-git pushed a commit that referenced this pull request Aug 26, 2023
$ vkcube-wayland
Selected GPU 0: Intel(R) HD Graphics 530 (SKL GT2), type: IntegratedGpu
Segmentation fault

(lldb) bt
* thread #1, name = 'vkcube-wayland', stop reason = signal SIGSEGV: invalid address (fault address: 0x40)
  * frame #0: 0x000000082114a4dc libwayland-client.so`wl_proxy_get_version(proxy=0x0000000000000000) at wayland-client.c:2248:16
    frame #1: 0x000000082b8543e1 libvulkan_intel.so`wp_tearing_control_manager_v1_get_tearing_control(wp_tearing_control_manager_v1=0x0000000000000000, surface=0x0000245a71e110a0) at tearing-control-v1-client-protocol.h:191:90
    frame #2: 0x000000082b852016 libvulkan_intel.so`wsi_wl_surface_create_swapchain(icd_surface=0x0000245a71e32e00, device=0x0000245a71f47400, wsi_device=0x0000245a71eb1ae0, pCreateInfo=0x0000000820617900, pAllocator=0x0000245a71f47440, swapchain_out=0x00000008206178d8) at wsi_common_wayland.c:2277:10
    frame #3: 0x000000082b842be4 libvulkan_intel.so`wsi_CreateSwapchainKHR(_device=0x0000245a71f47400, pCreateInfo=0x0000000820617900, pAllocator=0x0000000000000000, pSwapchain=0x0000000820618700) at wsi_common.c:930:22
    frame #4: 0x0000000822051bef libvulkan.so.1`terminator_CreateSwapchainKHR + 223
    frame #5: 0x000000000021136b vkcube-wayland`demo_prepare_buffers(demo=0x0000000820617c30) at cube.c:1408:11
    frame #6: 0x000000000020c679 vkcube-wayland`demo_prepare(demo=0x0000000820617c30) at cube.c:2302:5
    frame #7: 0x000000000020af7a vkcube-wayland`main(argc=1, argv=0x0000000820618a38) at cube.c:4592:5
    frame #8: 0x000000082356e5fa libc.so.7`__libc_start1(argc=1, argv=0x0000000820618a38, env=0x0000000820618a48, cleanup=<unavailable>, mainX=(vkcube-wayland`main at cube.c:4574)) at libc_start1.c:157:7
    frame #9: 0x00000000002085d0 vkcube-wayland`_start at crt1_s.S:83
(lldb) f 2
frame #2: 0x000000082b852016 libvulkan_intel.so`wsi_wl_surface_create_swapchain(icd_surface=0x0000245a71e32e00, device=0x0000245a71f47400, wsi_device=0x0000245a71eb1ae0, pCreateInfo=0x0000000820617900, pAllocator=0x0000245a71f47440, swapchain_out=0x00000008206178d8) at wsi_common_wayland.c:2277:10
   2274
   2275    if (chain->base.present_mode == VK_PRESENT_MODE_IMMEDIATE_KHR) {
   2276       chain->tearing_control =
-> 2277          wp_tearing_control_manager_v1_get_tearing_control(wsi_wl_surface->display->tearing_control_manager,
   2278                                                            wsi_wl_surface->surface);
   2279       if (!chain->tearing_control) {
   2280          result = VK_ERROR_OUT_OF_HOST_MEMORY;
(lldb) p wsi_wl_surface->display->tearing_control_manager
(wp_tearing_control_manager_v1 *) $0 = NULL
freebsd-git pushed a commit that referenced this pull request Sep 13, 2023
regcache_map_entry_size() doesn't do the magic to convert size == 0 to
register_size, so we must supply sizes for all registers if we're going
to use it.

This fixes handling of the trapframe so that we can actually unwind
properly, where-as before we would end up with, e.g.,

 #6 0xffff0000004b4860 in kdb_trap (type=60, code=0, tf=<optimized out>)
  at /usr/src/sys/kern/subr_kdb.c:790
 #7 <signal handler called>
 #8 <signal handler called>
 #9 <signal handler called>
 #10 <signal handler called>
 #11 <signal handler called>

Reported by:	Mark Millard
Approved by:	jhb (implicit, kgdb maintainer)
MFH:		2023Q3
freebsd-git pushed a commit that referenced this pull request Sep 13, 2023
regcache_map_entry_size() doesn't do the magic to convert size == 0 to
register_size, so we must supply sizes for all registers if we're going
to use it.

This fixes handling of the trapframe so that we can actually unwind
properly, where-as before we would end up with, e.g.,

 #6 0xffff0000004b4860 in kdb_trap (type=60, code=0, tf=<optimized out>)
  at /usr/src/sys/kern/subr_kdb.c:790
 #7 <signal handler called>
 #8 <signal handler called>
 #9 <signal handler called>
 #10 <signal handler called>
 #11 <signal handler called>

Reported by:	Mark Millard
Approved by:	jhb (implicit, kgdb maintainer)

(cherry picked from commit a22f1db)
freebsd-git pushed a commit that referenced this pull request Apr 22, 2024
* thread #1, name = 'xdg-desktop-port', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x0)
    frame #0: 0x000000000026acf0 xdg-desktop-portal-hyprland`dmabufFeedbackMainDevice(data=0x0000000000000000, feedback=0x0000182398a105c0, device_arr=0x0000182398a891d0) at PortalManager.cpp:90:5
   87   static void dmabufFeedbackMainDevice(void* data, zwp_linux_dmabuf_feedback_v1* feedback, wl_array* device_arr) {
   88       Debug::log(LOG, "[core] dmabufFeedbackMainDevice");
   89
-> 90       RASSERT(!g_pPortalManager->m_sWaylandConnection.gbm, "double dmabuf feedback");
   91
   92       dev_t device;
   93       assert(device_arr->size == sizeof(device));
(lldb) bt
* thread #1, name = 'xdg-desktop-port', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x0)
  * frame #0: 0x000000000026acf0 xdg-desktop-portal-hyprland`dmabufFeedbackMainDevice(data=0x0000000000000000, feedback=0x0000182398a105c0, device_arr=0x0000182398a891d0) at PortalManager.cpp:90:5
    frame #1: 0x000000082c61067a libffi.so.8`ffi_call_unix64 at unix64.S:104
    frame #2: 0x000000082c60f8f9 libffi.so.8`ffi_call_int(cif=0x0000000820fbba80, fn=(xdg-desktop-portal-hyprland`dmabufFeedbackMainDevice(void*, zwp_linux_dmabuf_feedback_v1*, wl_array*) at PortalManager.cpp:87), rvalue=0x0000000000000000, avalue=0x0000000820fbbab0, closure=0x0000000000000000) at ffi64.c:673:3
    frame #3: 0x000000082c60f452 libffi.so.8`ffi_call(cif=0x0000000820fbba80, fn=(xdg-desktop-portal-hyprland`dmabufFeedbackMainDevice(void*, zwp_linux_dmabuf_feedback_v1*, wl_array*) at PortalManager.cpp:87), rvalue=0x0000000000000000, avalue=0x0000000820fbbab0) at ffi64.c:710:3
    frame #4: 0x00000008242fac28 libwayland-client.so.0`wl_closure_invoke(closure=0x0000182398a89100, flags=1, target=0x0000182398a105c0, opcode=2, data=0x0000000000000000) at connection.c:1025:2
    frame #5: 0x00000008242f84cf libwayland-client.so.0`dispatch_event(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1631:3
    frame #6: 0x00000008242f72f4 libwayland-client.so.0`dispatch_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1777:3
    frame #7: 0x00000008242f70bd libwayland-client.so.0`wl_display_dispatch_queue_pending(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:2019:8
    frame #8: 0x00000008242f6c8e libwayland-client.so.0`wl_display_dispatch_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1995:9
    frame #9: 0x00000008242f6814 libwayland-client.so.0`wl_display_roundtrip_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1403:9
    frame #10: 0x00000008242f6ce0 libwayland-client.so.0`wl_display_roundtrip(display=0x0000182398a1b140) at wayland-client.c:1432:9
    frame #11: 0x0000000000326718 xdg-desktop-portal-hyprland`CToplevelManager::activate(this=0x0000182398a19240) at ToplevelManager.cpp:109:5
    frame #12: 0x0000000000267b72 xdg-desktop-portal-hyprland`CPortalManager::onGlobal(this=0x0000182398a1b000, data=0x0000000000000000, registry=0x0000182398a10440, name=24, interface="zwlr_foreign_toplevel_manager_v1", version=3) at PortalManager.cpp:261:34
    frame #13: 0x00000000002675e5 xdg-desktop-portal-hyprland`handleGlobal(data=0x0000000000000000, registry=0x0000182398a10440, name=24, interface="zwlr_foreign_toplevel_manager_v1", version=3) at PortalManager.cpp:20:23
    frame #14: 0x000000082c61067a libffi.so.8`ffi_call_unix64 at unix64.S:104
    frame #15: 0x000000082c60f8f9 libffi.so.8`ffi_call_int(cif=0x0000000820fbc140, fn=(xdg-desktop-portal-hyprland`handleGlobal(void*, wl_registry*, unsigned int, char const*, unsigned int) at PortalManager.cpp:19), rvalue=0x0000000000000000, avalue=0x0000000820fbc170, closure=0x0000000000000000) at ffi64.c:673:3
    frame #16: 0x000000082c60f452 libffi.so.8`ffi_call(cif=0x0000000820fbc140, fn=(xdg-desktop-portal-hyprland`handleGlobal(void*, wl_registry*, unsigned int, char const*, unsigned int) at PortalManager.cpp:19), rvalue=0x0000000000000000, avalue=0x0000000820fbc170) at ffi64.c:710:3
    frame #17: 0x00000008242fac28 libwayland-client.so.0`wl_closure_invoke(closure=0x0000182398a1b8c0, flags=1, target=0x0000182398a10440, opcode=0, data=0x0000000000000000) at connection.c:1025:2
    frame #18: 0x00000008242f84cf libwayland-client.so.0`dispatch_event(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1631:3
    frame #19: 0x00000008242f72f4 libwayland-client.so.0`dispatch_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1777:3
    frame #20: 0x00000008242f70bd libwayland-client.so.0`wl_display_dispatch_queue_pending(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:2019:8
    frame #21: 0x00000008242f6c8e libwayland-client.so.0`wl_display_dispatch_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1995:9
    frame #22: 0x00000008242f6814 libwayland-client.so.0`wl_display_roundtrip_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1403:9
    frame #23: 0x00000008242f6ce0 libwayland-client.so.0`wl_display_roundtrip(display=0x0000182398a1b140) at wayland-client.c:1432:9
    frame #24: 0x00000000002689a4 xdg-desktop-portal-hyprland`CPortalManager::init(this=0x0000182398a1b000) at PortalManager.cpp:312:5
    frame #25: 0x00000000002a3f76 xdg-desktop-portal-hyprland`main(argc=1, argv=0x0000000820fbc870, envp=0x0000000820fbc880) at main.cpp:38:23
    frame #26: 0x000000082a0172aa libc.so.7`__libc_start1(argc=1, argv=0x0000000820fbc870, env=0x0000000820fbc880, cleanup=<unavailable>, mainX=(xdg-desktop-portal-hyprland`main at main.cpp:15)) at libc_start1.c:157:7
    frame #27: 0x0000000000267520 xdg-desktop-portal-hyprland`_start at crt1_s.S:83

* thread #1, name = 'xdg-desktop-port', stop reason = signal SIGILL: privileged opcode
    frame #0: 0x0000000824c5f7cf libc++.so.1`std::__1::mutex::unlock(this=<unavailable>) at mutex.cpp:39:3
   36   void mutex::unlock() noexcept {
   37     int ec = __libcpp_mutex_unlock(&__m_);
   38     (void)ec;
-> 39     _LIBCPP_ASSERT_VALID_EXTERNAL_API_CALL(
   40         ec == 0, "call to mutex::unlock failed. A possible reason is that the mutex wasn't locked");
   41   }
   42
(lldb) bt
* thread #1, name = 'xdg-desktop-port', stop reason = signal SIGILL: privileged opcode
  * frame #0: 0x0000000824c5f7cf libc++.so.1`std::__1::mutex::unlock(this=<unavailable>) at mutex.cpp:39:3
    frame #1: 0x00000000002691d3 xdg-desktop-portal-hyprland`CPortalManager::startEventLoop(this=0x000021aa1001b000) at PortalManager.cpp:424:48
    frame #2: 0x0000000000268f06 xdg-desktop-portal-hyprland`CPortalManager::init(this=0x000021aa1001b000) at PortalManager.cpp:335:5
    frame #3: 0x00000000002a3f56 xdg-desktop-portal-hyprland`main(argc=1, argv=0x0000000820d386c8, envp=0x0000000820d386d8) at main.cpp:38:23
    frame #4: 0x00000008274222aa libc.so.7`__libc_start1(argc=1, argv=0x0000000820d386c8, env=0x0000000820d386d8, cleanup=<unavailable>, mainX=(xdg-desktop-portal-hyprland`main at main.cpp:15)) at libc_start1.c:157:7
    frame #5: 0x0000000000267520 xdg-desktop-portal-hyprland`_start at crt1_s.S:83
(lldb) f 1
frame #1: 0x00000000002691d3 xdg-desktop-portal-hyprland`CPortalManager::startEventLoop(this=0x000021aa1001b000) at PortalManager.cpp:424:48
   421
   422      while (1) { // dbus events
   423          // wait for being awakened
-> 424          m_sEventLoopInternals.loopRequestMutex.unlock(); // unlock, we are ready to take events
   425
   426          std::unique_lock lk(m_sEventLoopInternals.loopMutex);
   427          if (m_sEventLoopInternals.shouldProcess == false) // avoid a lock if a thread managed to request something already since we .unlock()ed

PR:		278496
Reported by:	shurd
freebsd-git pushed a commit that referenced this pull request Apr 22, 2024
* thread #1, name = 'xdg-desktop-port', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x0)
    frame #0: 0x000000000026acf0 xdg-desktop-portal-hyprland`dmabufFeedbackMainDevice(data=0x0000000000000000, feedback=0x0000182398a105c0, device_arr=0x0000182398a891d0) at PortalManager.cpp:90:5
   87   static void dmabufFeedbackMainDevice(void* data, zwp_linux_dmabuf_feedback_v1* feedback, wl_array* device_arr) {
   88       Debug::log(LOG, "[core] dmabufFeedbackMainDevice");
   89
-> 90       RASSERT(!g_pPortalManager->m_sWaylandConnection.gbm, "double dmabuf feedback");
   91
   92       dev_t device;
   93       assert(device_arr->size == sizeof(device));
(lldb) bt
* thread #1, name = 'xdg-desktop-port', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x0)
  * frame #0: 0x000000000026acf0 xdg-desktop-portal-hyprland`dmabufFeedbackMainDevice(data=0x0000000000000000, feedback=0x0000182398a105c0, device_arr=0x0000182398a891d0) at PortalManager.cpp:90:5
    frame #1: 0x000000082c61067a libffi.so.8`ffi_call_unix64 at unix64.S:104
    frame #2: 0x000000082c60f8f9 libffi.so.8`ffi_call_int(cif=0x0000000820fbba80, fn=(xdg-desktop-portal-hyprland`dmabufFeedbackMainDevice(void*, zwp_linux_dmabuf_feedback_v1*, wl_array*) at PortalManager.cpp:87), rvalue=0x0000000000000000, avalue=0x0000000820fbbab0, closure=0x0000000000000000) at ffi64.c:673:3
    frame #3: 0x000000082c60f452 libffi.so.8`ffi_call(cif=0x0000000820fbba80, fn=(xdg-desktop-portal-hyprland`dmabufFeedbackMainDevice(void*, zwp_linux_dmabuf_feedback_v1*, wl_array*) at PortalManager.cpp:87), rvalue=0x0000000000000000, avalue=0x0000000820fbbab0) at ffi64.c:710:3
    frame #4: 0x00000008242fac28 libwayland-client.so.0`wl_closure_invoke(closure=0x0000182398a89100, flags=1, target=0x0000182398a105c0, opcode=2, data=0x0000000000000000) at connection.c:1025:2
    frame #5: 0x00000008242f84cf libwayland-client.so.0`dispatch_event(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1631:3
    frame #6: 0x00000008242f72f4 libwayland-client.so.0`dispatch_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1777:3
    frame #7: 0x00000008242f70bd libwayland-client.so.0`wl_display_dispatch_queue_pending(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:2019:8
    frame #8: 0x00000008242f6c8e libwayland-client.so.0`wl_display_dispatch_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1995:9
    frame #9: 0x00000008242f6814 libwayland-client.so.0`wl_display_roundtrip_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1403:9
    frame #10: 0x00000008242f6ce0 libwayland-client.so.0`wl_display_roundtrip(display=0x0000182398a1b140) at wayland-client.c:1432:9
    frame #11: 0x0000000000326718 xdg-desktop-portal-hyprland`CToplevelManager::activate(this=0x0000182398a19240) at ToplevelManager.cpp:109:5
    frame #12: 0x0000000000267b72 xdg-desktop-portal-hyprland`CPortalManager::onGlobal(this=0x0000182398a1b000, data=0x0000000000000000, registry=0x0000182398a10440, name=24, interface="zwlr_foreign_toplevel_manager_v1", version=3) at PortalManager.cpp:261:34
    frame #13: 0x00000000002675e5 xdg-desktop-portal-hyprland`handleGlobal(data=0x0000000000000000, registry=0x0000182398a10440, name=24, interface="zwlr_foreign_toplevel_manager_v1", version=3) at PortalManager.cpp:20:23
    frame #14: 0x000000082c61067a libffi.so.8`ffi_call_unix64 at unix64.S:104
    frame #15: 0x000000082c60f8f9 libffi.so.8`ffi_call_int(cif=0x0000000820fbc140, fn=(xdg-desktop-portal-hyprland`handleGlobal(void*, wl_registry*, unsigned int, char const*, unsigned int) at PortalManager.cpp:19), rvalue=0x0000000000000000, avalue=0x0000000820fbc170, closure=0x0000000000000000) at ffi64.c:673:3
    frame #16: 0x000000082c60f452 libffi.so.8`ffi_call(cif=0x0000000820fbc140, fn=(xdg-desktop-portal-hyprland`handleGlobal(void*, wl_registry*, unsigned int, char const*, unsigned int) at PortalManager.cpp:19), rvalue=0x0000000000000000, avalue=0x0000000820fbc170) at ffi64.c:710:3
    frame #17: 0x00000008242fac28 libwayland-client.so.0`wl_closure_invoke(closure=0x0000182398a1b8c0, flags=1, target=0x0000182398a10440, opcode=0, data=0x0000000000000000) at connection.c:1025:2
    frame #18: 0x00000008242f84cf libwayland-client.so.0`dispatch_event(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1631:3
    frame #19: 0x00000008242f72f4 libwayland-client.so.0`dispatch_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1777:3
    frame #20: 0x00000008242f70bd libwayland-client.so.0`wl_display_dispatch_queue_pending(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:2019:8
    frame #21: 0x00000008242f6c8e libwayland-client.so.0`wl_display_dispatch_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1995:9
    frame #22: 0x00000008242f6814 libwayland-client.so.0`wl_display_roundtrip_queue(display=0x0000182398a1b140, queue=0x0000182398a1b230) at wayland-client.c:1403:9
    frame #23: 0x00000008242f6ce0 libwayland-client.so.0`wl_display_roundtrip(display=0x0000182398a1b140) at wayland-client.c:1432:9
    frame #24: 0x00000000002689a4 xdg-desktop-portal-hyprland`CPortalManager::init(this=0x0000182398a1b000) at PortalManager.cpp:312:5
    frame #25: 0x00000000002a3f76 xdg-desktop-portal-hyprland`main(argc=1, argv=0x0000000820fbc870, envp=0x0000000820fbc880) at main.cpp:38:23
    frame #26: 0x000000082a0172aa libc.so.7`__libc_start1(argc=1, argv=0x0000000820fbc870, env=0x0000000820fbc880, cleanup=<unavailable>, mainX=(xdg-desktop-portal-hyprland`main at main.cpp:15)) at libc_start1.c:157:7
    frame #27: 0x0000000000267520 xdg-desktop-portal-hyprland`_start at crt1_s.S:83

* thread #1, name = 'xdg-desktop-port', stop reason = signal SIGILL: privileged opcode
    frame #0: 0x0000000824c5f7cf libc++.so.1`std::__1::mutex::unlock(this=<unavailable>) at mutex.cpp:39:3
   36   void mutex::unlock() noexcept {
   37     int ec = __libcpp_mutex_unlock(&__m_);
   38     (void)ec;
-> 39     _LIBCPP_ASSERT_VALID_EXTERNAL_API_CALL(
   40         ec == 0, "call to mutex::unlock failed. A possible reason is that the mutex wasn't locked");
   41   }
   42
(lldb) bt
* thread #1, name = 'xdg-desktop-port', stop reason = signal SIGILL: privileged opcode
  * frame #0: 0x0000000824c5f7cf libc++.so.1`std::__1::mutex::unlock(this=<unavailable>) at mutex.cpp:39:3
    frame #1: 0x00000000002691d3 xdg-desktop-portal-hyprland`CPortalManager::startEventLoop(this=0x000021aa1001b000) at PortalManager.cpp:424:48
    frame #2: 0x0000000000268f06 xdg-desktop-portal-hyprland`CPortalManager::init(this=0x000021aa1001b000) at PortalManager.cpp:335:5
    frame #3: 0x00000000002a3f56 xdg-desktop-portal-hyprland`main(argc=1, argv=0x0000000820d386c8, envp=0x0000000820d386d8) at main.cpp:38:23
    frame #4: 0x00000008274222aa libc.so.7`__libc_start1(argc=1, argv=0x0000000820d386c8, env=0x0000000820d386d8, cleanup=<unavailable>, mainX=(xdg-desktop-portal-hyprland`main at main.cpp:15)) at libc_start1.c:157:7
    frame #5: 0x0000000000267520 xdg-desktop-portal-hyprland`_start at crt1_s.S:83
(lldb) f 1
frame #1: 0x00000000002691d3 xdg-desktop-portal-hyprland`CPortalManager::startEventLoop(this=0x000021aa1001b000) at PortalManager.cpp:424:48
   421
   422      while (1) { // dbus events
   423          // wait for being awakened
-> 424          m_sEventLoopInternals.loopRequestMutex.unlock(); // unlock, we are ready to take events
   425
   426          std::unique_lock lk(m_sEventLoopInternals.loopMutex);
   427          if (m_sEventLoopInternals.shouldProcess == false) // avoid a lock if a thread managed to request something already since we .unlock()ed

PR:		278496
Reported by:	shurd

(cherry picked from commit 78fbf8e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet