sajjadtamimi / embox

Automatically exported from code.google.com/p/embox
0 stars 0 forks source link

LUA io problem #557

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Add to file system file named "tofi.lua":

io.write("Enter new file name:\n")
local filename = io.read()
local ouf = assert(io.open(filename, "w"))
io.write("Type strings and press ENTER. All strings will be put in the file 
named " .. filename .. "\n")
local finish = ":save"
io.write("To stop fill file please type <" .. finish .. "> and press ENTER.\n")
local str = ""
while str ~= finish do
   str=io.read()
   if str ~= finish then
      ouf:write(str.."\n")
   end
end
ouf:close()

2.  make confload-x86/lua-demo
3.  make
4.  ./auto_qemu
5.  embox>lua tofi.lua

PANIC: unprotected error in call to Lua API (tofi.lua:1: attempt to index 
global 'io' (a nil value))

ASSERTION FAILED at src/kernel/thread/sched_strategy/simple_queue.c : 194,
        in function runq_switch:

next != NULL
kernel debug panicQEMU: Terminated

What is the expected output? What do you see instead?
I prepare this file to read strings from terminal and put them
to the file. In Ubuntu it is works, but do not works in Embox.

What version of the product are you using? On what operating system?
It was in r9054 , ubuntu, qemu.

Original issue reported on code.google.com by ershpush on 19 Mar 2013 at 1:34

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by sikmir on 14 Sep 2013 at 11:43

GoogleCodeExporter commented 9 years ago

Original comment by sikmir on 14 Sep 2013 at 11:45

GoogleCodeExporter commented 9 years ago
fixed by r14447

Original comment by ki.s...@gmail.com on 29 Jul 2014 at 9:54