Bug 269673 - audio/yoshimi: won't run, core dumps
Summary: audio/yoshimi: won't run, core dumps
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL: https://github.com/Yoshimi/yoshimi/is...
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2023-02-19 00:05 UTC by Luc
Modified: 2023-02-19 18:45 UTC (History)
3 users (show)

See Also:
grahamperrin: maintainer-feedback? (yuri)


Attachments
terminal output (37.80 KB, image/png)
2023-02-19 00:05 UTC, Luc
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luc 2023-02-19 00:05:59 UTC
Created attachment 240248 [details]
terminal output

Yoshimi won't run, core dumps. Screenshot attached.
Comment 1 Mina Galić freebsd_triage 2023-02-19 09:43:44 UTC
that screenshot, aside from not being very accessible, only tells us that there was a core dump, not why.

can you please try to obtain a backtrace: https://docs.freebsd.org/en/books/developers-handbook/tools/#_examining_a_core_file_with_lldb
and paste it as a comment, instead of a screenshot.
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2023-02-19 10:28:30 UTC
Luc, please: for port bug reports, make it habit to begin the summary line with the category and name of the port, for example: 

audio/yoshimi: 

– this will allow automation of things such as assignment. 

Thank you

<https://wiki.freebsd.org/Bugzilla/>
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2023-02-19 17:02:28 UTC
(In reply to Luc from comment #0)

Hi Luc,


Thanks for the report.

I can't reproduce the problem - both locally built executable and the executable from the centrally built package work fine.

In order to troubleshoot the problem you can build yoshimi with debug info:

$ cd /usr/ports/audio/yoshimi
$ sudo make clean install WITH_DEBUG=yes
$ gdb /usr/local/bin/yoshimi
Then type "r" and Enter.

Please publish the stack trace (the 'bt' command in gdb).


Yuri
Comment 4 Luc 2023-02-19 17:22:20 UTC
(In reply to Mina Galić from comment #1)

How is a screenshot "not very accessible"?

Please let me know if this is enough:

root@fsd1:/home/luc # lldb -c yoshimi.core -- yoshimi
(lldb) target create "yoshimi" --core "yoshimi.core"
Core file '/home/luc/yoshimi.core' (x86_64) was loaded.
(lldb) target create yoshimi --core yoshimi.core
Core file '/home/luc/yoshimi.core' (x86_64) was loaded.
(lldb) thread backtrace all
* thread #1, name = 'yoshimi', stop reason = signal SIGABRT
  * frame #0: 0x00000008013a733a libc.so.7`__sys_thr_kill + 10
    frame #1: 0x000000080131fc74 libc.so.7`__raise + 52
    frame #2: 0x00000008013d1109 libc.so.7`abort + 73
    frame #3: 0x00000000008207c1 yoshimi`___lldb_unnamed_symbol5527 + 369
    frame #4: 0x000000000082019a yoshimi`___lldb_unnamed_symbol5524 + 2122
    frame #5: 0x0000000000b4c147 yoshimi`___lldb_unnamed_symbol8943 + 87
    frame #6: 0x0000000000b4d0cb yoshimi`___lldb_unnamed_symbol8949 + 2187
    frame #7: 0x00000000002d0570 yoshimi`___lldb_unnamed_symbol8956 + 256
(lldb)
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2023-02-19 18:02:24 UTC
I can reproduce when config files are removed from the user's home directory.

This is up to the upstream to resolve.
Comment 6 Yuri Victorovich freebsd_committer freebsd_triage 2023-02-19 18:11:08 UTC
(In reply to Luc from comment #0)


Luc,

The problem is that yoshimi defaults to ALSA but it isn't linked with ALSA, and yoshimi doesn't produce adequate error message.

The workaround for now is to use 'yoshimi -J -j' to force Jack.
Jack has to be started on your system.
Comment 7 Mina Galić freebsd_triage 2023-02-19 18:20:46 UTC
(In reply to Luc from comment #4)
some people are blind, and some people just have terrible eyesight.
Screenshots are not accessible if they have no Alt text. 
the only way to make a screenshot of terminal output accessible is to paste text of the terminal output into the description / Alt text box. and at that point, you can just paste the text of the terminal output into the comment
Comment 8 commit-hook freebsd_committer freebsd_triage 2023-02-19 18:43:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e65d3eeb6a497f9af9aff37eda0ee050e70dd5c6

commit e65d3eeb6a497f9af9aff37eda0ee050e70dd5c6
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-19 18:33:35 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-19 18:42:28 +0000

    audio/yoshimi: Fix bug when yoshimi asserted because it defaulted to ALSA

    ... which it isn't linked with.

    PR:             269673
    Reported by:    Luc <lucmove@gmail.com>

 audio/yoshimi/Makefile                        |  3 +++
 audio/yoshimi/files/patch-src_globals.h (new) | 15 +++++++++++++++
 2 files changed, 18 insertions(+)
Comment 9 commit-hook freebsd_committer freebsd_triage 2023-02-19 18:44:09 UTC
A commit in branch 2023Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5830649683dbde1ed850a7c065e0a4137fb1b6e8

commit 5830649683dbde1ed850a7c065e0a4137fb1b6e8
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-19 18:33:35 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-19 18:43:07 +0000

    audio/yoshimi: Fix bug when yoshimi asserted because it defaulted to ALSA

    ... which it isn't linked with.

    PR:             269673
    Reported by:    Luc <lucmove@gmail.com>

    (cherry picked from commit e65d3eeb6a497f9af9aff37eda0ee050e70dd5c6)

 audio/yoshimi/Makefile                        |  3 +++
 audio/yoshimi/files/patch-src_globals.h (new) | 15 +++++++++++++++
 2 files changed, 18 insertions(+)
Comment 10 Yuri Victorovich freebsd_committer freebsd_triage 2023-02-19 18:45:27 UTC
The default audio backend was changed to JACK in the port.

Thanks for reporting the problem!