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

crashing on start in big sur #311

Open
rjkroege opened this issue Sep 21, 2020 · 5 comments
Open

crashing on start in big sur #311

rjkroege opened this issue Sep 21, 2020 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@rjkroege
Copy link
Owner

On MacOS Big Sur (beta 7), intermittent crashes on start:

panic: runtime error: index out of range [10] with length 10

goroutine 66 [running, locked to thread]:main.(*Column).Grow(0xc0000d6000, 0xc000271000, 0x1)
	/Users/rjkroege/tools/edwood/col.go:456 +0x1138
main.(*Text).Show(0xc000271120, 0xd8, 0x6b2, 0x501)
	/Users/rjkroege/tools/edwood/text.go:1205 +0x385
main.flushwarnings()
	/Users/rjkroege/tools/edwood/util.go:289 +0x194
main.mousethread(0x159d900, 0xc00011a1e0)
	/Users/rjkroege/tools/edwood/acme.go:304 +0x59
created by main.main.func2
	/Users/rjkroege/tools/edwood/acme.go:186 +0x82a
@rjkroege
Copy link
Owner Author

That looks like a race condition to me.

@rjkroege rjkroege self-assigned this Sep 21, 2020
@rjkroege rjkroege added the bug Something isn't working label Sep 21, 2020
@fhs
Copy link
Contributor

fhs commented Sep 21, 2020

Possibly related to #265?

@rjkroege
Copy link
Owner Author

After investigating: I think that this bug is exposed by #312: the win session starts from a dump file, promptly dies, is removed during the execution of the loop in Column.Grow.

@rjkroege
Copy link
Owner Author

I was wrong. It's more likely to be flushing a warning while continuing to reconstitute a dump file.

@rjkroege
Copy link
Owner Author

Both this and #265 are probably related. There's a general need for Edwood to be more principled about row and window concurrency control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants