s-macke / jor1k

Online OR1K Emulator running Linux
http://jor1k.com
BSD 2-Clause "Simplified" License
1.73k stars 196 forks source link

`ls /usr/lib` fails #31

Closed copy closed 9 years ago

copy commented 9 years ago

Running ls /usr/lib on http://s-macke.github.io/jor1k/ seems to trigger a bug:

screenshot - 10202014 - 11 10 50 pm

I found the problem while running find /, possibly there are more directories that have this problem.

s-macke commented 9 years ago

I can reproduce the problem. "echo /ur/lib/*" works for some reason.

s-macke commented 9 years ago

Following patch seems to solve the problem. https://github.com/s-macke/jor1k/commit/b1b66545685eddad79b589f4287f7123ab80471e It looks like there is a problem with the IOUNIT when opening the file. But I am not sure why.

s-macke commented 9 years ago

Better patch: https://github.com/s-macke/jor1k/commit/0bd2b80ccd89840cf9b749bc0b0af659cf4c6142

The problem "with rm -rf *" remains however.

s-macke commented 9 years ago

I checked the last days for an occurence of the /usr/lib in other directores. For me, the problem is solved.