[yoshimi] Re: Crash happening when I enter /usr/share/

  • From: Frank Neumann <beachnase@xxxxxx>
  • To: Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx>
  • Date: Mon, 5 Apr 2021 14:08:14 +0200


Hi Will and all,

I found a reproducible crash (SIGSEGV) today, based on current Yoshimi (git
commit 22beca9b4).

[..]

Can anyone reproduce this? Or, would you have suggestion how I should further
instrument the code to find out more?

Thanks,
Frank

I never expected anyone to have so many files in a directory!
FilerLine size shares MIDI_LEARN_BLOCK which is currently set to 400.

As a test, try temporarily changing all occurrences of this in
src/UI/MasterUI.fl to something like 600.

Originally I tried to make this variable size, but kept hitting obscure
problems. I guess I'll have to give that another try :(

Yep, confirmed - that fixes it. Thanks! :-)

Yeah, hard-coded "guessed maximum" values are dangerous - as in "640kB is 
enough for anyone".
In my case, that large number of entries in /usr/share/ comes from my default
setup operation of installing some 2000+ packages on my machine for all kinds
of -dev packages and their dependencies.
I want to be able to build a lot of sw from source myself, so this machine is
currently listing some 3680 packages installed..that's "normal" for me.

Greetings,
Frank
Yoshimi source code is available from either: 
https://sourceforge.net/projects/yoshimi
Or: https://github.com/Yoshimi/yoshimi
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx

Other related posts: