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

Segmentation fault on Debian buster #76

Closed
XReyRobert opened this issue Mar 1, 2020 · 9 comments
Closed

Segmentation fault on Debian buster #76

XReyRobert opened this issue Mar 1, 2020 · 9 comments

Comments

@XReyRobert
Copy link

XReyRobert commented Mar 1, 2020

Hi All,
I've tried to compile lineapple on debian buster (inside a docker container - see attached Dockerfile)

Compilation goes through but I have a segmentation fault trying to execute...
Any idea where to start looking ?

(Interestingly I compiled it and ran with success in a docker container but using a arm32 version of debian stretch)

Dockerfile.txt

@ghedger
Copy link
Contributor

ghedger commented Mar 2, 2020

Build with debug option (see Makefile) and run it in gdb; when it seg faults do a bt to get the traceback.

@ghedger
Copy link
Contributor

ghedger commented Mar 2, 2020

Also, as a workaround if you just want to run the emulator, you can re-enable the old, slow, singlethreaded video update behavior by adding this to your linapple.conf:

Singlethreaded = 1

However, if you could send me that backtrace from gdb, it would help fix this issue.

@ghedger
Copy link
Contributor

ghedger commented Mar 3, 2020

Added fallback to singlethreaded if error creating worker thread. I'm not very familiar with Docker; I suspect what may have happened is it's a singlethreaded machine. Installing Debian Buster now (VirtualBox, amd64) to check behavior there.

In the absence of additional info that's the best we can do at the moment...

@ghedger ghedger self-assigned this Mar 3, 2020
@ghedger
Copy link
Contributor

ghedger commented Mar 3, 2020

Attempt #1 to install this Debian failed (something about mirrors and proxies; changing mirror location didn't seem to help); Trying attempt #2

@ghedger
Copy link
Contributor

ghedger commented Mar 3, 2020

Attempt #2 to install this Debian failed with a different error ("Error installing base system"). Trying attempt #3, this time not using graphical installer.

@ghedger
Copy link
Contributor

ghedger commented Mar 3, 2020

Attempt #3 failed, same error. Going to delete the entire VM and start over with Attempt #4

@ghedger
Copy link
Contributor

ghedger commented Mar 3, 2020

Attempt #4 failed. Attempt #5 failed as well, but got really far along in the process like Attempt #1. I've spent enough of my time trying to recreate the reported environment; Suggest someone with a working instance of Debian 10.3 attempt to reproduce (and ideally fix) the issue. Thank you.

@XReyRobert
Copy link
Author

Thanks @ghedger, I'm still investigating butI think a bad DISPLAY parameter or non accessible X11 server is the reason...

@ghedger
Copy link
Contributor

ghedger commented Mar 4, 2020

Also, the video_draw_mutex application to CreateDIBSections (thank you) may indeed have addressed this.

My sincere apologies for not being successful in reproducing this environment. VirtualBox has not been kind lately...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants