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
Using --autoload cmdline option results in seg_fault #1091
Comments
Hmmm....interesting ....which Ubuntu release was that? I can install locally on same hardware and compare |
TBH, I really DO expect my LFS builds to do the unexpected, and I likely wouldn't be here typing if that were only the case, but when I see the (stock, nothing special) Debian 10.13 doing the same thing, I have to wonder if the issue is related (segmentation fault share common ground)... Firstly FTR ~ a fresh install of Debian 11.6, add dependencies as per amiberry github build instructions, git clone the amiberry tree and issue 'make PLATFORM=x86-64' , download AddamsFamily_v1.3_0419.lha and copy required kickstart roms into place, launch amiberry with ' ./amiberry --autoload AddamsFamily_v1.3_0419.lha ' ....works as expected. To recreate the issue appears to be trivial for me; Fresh install of Debian 10.13 (using --> https://gemmei.ftp.acc.umu.se/cdimage/unofficial/non-free/cd-including-firmware/archive/10.13.0+nonfree/amd64/iso-cd/firmware-10.13.0-amd64-netinst.iso) Normal install, just XFCE4 as WM (nothing else, no gnome etc), ssh server and general system utilities. Start fresh system, install required tools & dependencies as per amiberry github build instructions, git clone the amiberry tree and issue 'make PLATFORM=x86-64' , download AddamsFamily_v1.3_0419.lha and copy required kickstart roms into place, and launch amiberry with ./amiberry --autoload AddamsFamily_v1.3_0419.lha ....segmentation fault. [note: regarding github page the debian target for binary libserialport is "libserialport0" not "libserialport" ] |
//...can't believe I just found this.... you can recreate this by following on with the example above. layout: You've downloaded and compiled amiberry from git-master, so $HOMEDIR contains ~/amiberry Copy AddamsFamily_v1.3_0419.lha to ~/amiberry/AddamsFamily_v1.3_0419.lha Also have a copy of AddamsFamily_v1.3_0419.lha in $HOMEDIR ...ie; ~/AddamsFamily_v1.3_0419.lha cd amiberry ./amiberry --autoload AddamsFamily_v1.3_0419.lha --> seg_fault ./amiberry --autoload ./AddamsFamily_v1.3_0419.lha --> game starts and runs ./amiberry --autoload ../AddamsFamily_v1.3_0419.lha --> game starts and runs mkdir ~/amiberry/lha ./amiberry --autoload lha/AddamsFamily_v1.3_0419.lha --> game starts and runs I only twigged this after seeing you'd done the same thing. I checked all this on the Debian 10.13 instance, and then recreated same (with same results) on my LFS 11.0 builds. Question is, why is it so? It almost seems like amiberry has no fix on where cwd is?....weird. I mean to say, it shouldn't need an explicit path to the whdload.lha file -- this is problematic when I try to create a default action for a downloaded whdload.lha file...ie; default action would be amiberry --autoload %f Any fix for this? TIA |
Command: valgrind -s amiberry.dbg --autoload AddamsFamily_v1.3_0419.lha ==2288== Invalid read of size 1 Note: LFS 11.3-x86-64 ; 'amiberry.dbg' is compiled with DEBUG=1 (git-master amiberry 5.6.1) |
@giantclambake |
amiberry v5.6.1 / x86-64
I've been aware of this for a while, but didn't immediately report it because Quickstart ->WHDload auto-config method via GUI works fine. I just now crossed paths with it again, trying to define custom actions for the mime-type in qtfm ...ie; either 'lha x %F' to extract arc, or else 'amiberry -G --autoload %F' to run the whdload-game.lha directly.
To recreate;
Obtain known working good .lha archive (referenced target: https://www.whdownload.com/games/A/AddamsFamily_v1.3_0419.lha)
//sanity check// Start amiberry from cmdline, in the GUI goto Quickstart -> WHDload auto-config, and select the archive download above then simply hit start ---- archive should be parsed correctly, and game starts as expected. Quit game/amiberry
At the cmdline, issue 'amiberry --autoload AddamsFamily_v1.3_0419.lha' --- here I hit a segmentation fault (any/all whdload archives)
//tail of dmesg;
Running a debug build of amiberry with gdb, leadup to the crash looks like ;
TIA
The text was updated successfully, but these errors were encountered: