Hi all, i,m trying to bind l4linux to ankh. After launching with attached config files, l4linux doesn't see eth0 interface. What am i doing wrong? Log attached. [modules.list] entry L4Linux-mag-x86 roottask moe rom/l4lx-gfx.cfg module l4re module ned module l4lx-gfx.cfg module io module ankh module ankh.vbus module fb-drv module mag module x86-legacy.devs module l4lx-x86.io module vmlinuz module drops-rd.rd -- Galiullin Timur
В сообщении от 25 марта 2012 17:02:23 вы написали:
Hi all, i,m trying to bind l4linux to ankh. After launching with attached config files, l4linux doesn't see eth0 interface. What am i doing wrong? Log attached.
[modules.list] entry L4Linux-mag-x86 roottask moe rom/l4lx-gfx.cfg module l4re module ned module l4lx-gfx.cfg module io module ankh module ankh.vbus module fb-drv module mag module x86-legacy.devs module l4lx-x86.io module vmlinuz module drops-rd.rd
ok, i've build l4linux incorrectly. But after rebuild i receive kernel panic: -- Galiullin Timur
i think its a problem with alloc inside strdup(): shmc/lib/ringbuf/ringbuf.c: l4smc_rb_generic_init(+98) and l4shmc_rb_eneric_signal_init(+106) 2012/3/26 Timur <galiullintimur@gmail.com>:
В сообщении от 25 марта 2012 17:02:23 вы написали:
Hi all, i,m trying to bind l4linux to ankh. After launching with attached config files, l4linux doesn't see eth0 interface. What am i doing wrong? Log attached.
[modules.list] entry L4Linux-mag-x86 roottask moe rom/l4lx-gfx.cfg module l4re module ned module l4lx-gfx.cfg module io module ankh module ankh.vbus module fb-drv module mag module x86-legacy.devs module l4lx-x86.io module vmlinuz module drops-rd.rd
ok, i've build l4linux incorrectly. But after rebuild i receive kernel panic:
-- Galiullin Timur _______________________________________________ l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
-- Sartakov A. Vasily
Yes Sartakov is correct. I was getting the same crash. And after debugging I found out that in file "pkg/shmc/lib/ringbuf/ringbuf.c", in method "l4shmc_rb_generic_init" at the following line buf->_chunkname = strdup(chunk_name); strdup() returns null. So buf->_chunckname is null which causes crash. Also the same problem is also there in function "l4shmc_rb_generic_signal_init" at line buf->_signame = strdup(sig_name); My temporary fix looks like below. Which seems to work for now. buf->_chunkname = chunk_name; & buf->_signame = sig_name; Now, I know this is risky and might cause crashes if "chunk_name" or "sig_name" are freed somewhere. I tried using "malloc()" to allocate new buffer and copy from "chunk_name", but "malloc()" does not work either. It would be great if Adam or Björn can look into it and explain why strdup and/or malloc dont work. -Shashi Sharma On Mon, 2012-03-26 at 00:47 +0400, Sartakov A. Vasily wrote:
i think its a problem with alloc inside strdup(): shmc/lib/ringbuf/ringbuf.c: l4smc_rb_generic_init(+98) and l4shmc_rb_eneric_signal_init(+106)
2012/3/26 Timur <galiullintimur@gmail.com>:
В сообщении от 25 марта 2012 17:02:23 вы написали:
Hi all, i,m trying to bind l4linux to ankh. After launching with attached config files, l4linux doesn't see eth0 interface. What am i doing wrong? Log attached.
[modules.list] entry L4Linux-mag-x86 roottask moe rom/l4lx-gfx.cfg module l4re module ned module l4lx-gfx.cfg module io module ankh module ankh.vbus module fb-drv module mag module x86-legacy.devs module l4lx-x86.io module vmlinuz module drops-rd.rd
ok, i've build l4linux incorrectly. But after rebuild i receive kernel panic:
-- Galiullin Timur _______________________________________________ l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
I think for temporary "fix" better use static buffer for _chunkname and _signame 26.03.2012, в 22:15, Shashi Sharma <ssharma@viosoft.com> написал(а):
Yes Sartakov is correct. I was getting the same crash. And after debugging I found out that in file "pkg/shmc/lib/ringbuf/ringbuf.c", in method "l4shmc_rb_generic_init" at the following line
buf->_chunkname = strdup(chunk_name);
strdup() returns null. So buf->_chunckname is null which causes crash.
Also the same problem is also there in function "l4shmc_rb_generic_signal_init" at line
buf->_signame = strdup(sig_name);
My temporary fix looks like below. Which seems to work for now.
buf->_chunkname = chunk_name; & buf->_signame = sig_name;
Now, I know this is risky and might cause crashes if "chunk_name" or "sig_name" are freed somewhere.
I tried using "malloc()" to allocate new buffer and copy from "chunk_name", but "malloc()" does not work either.
It would be great if Adam or Björn can look into it and explain why strdup and/or malloc dont work.
-Shashi Sharma
On Mon, 2012-03-26 at 00:47 +0400, Sartakov A. Vasily wrote:
i think its a problem with alloc inside strdup(): shmc/lib/ringbuf/ringbuf.c: l4smc_rb_generic_init(+98) and l4shmc_rb_eneric_signal_init(+106)
2012/3/26 Timur <galiullintimur@gmail.com>:
В сообщении от 25 марта 2012 17:02:23 вы написали:
Hi all, i,m trying to bind l4linux to ankh. After launching with attached config files, l4linux doesn't see eth0 interface. What am i doing wrong? Log attached.
[modules.list] entry L4Linux-mag-x86 roottask moe rom/l4lx-gfx.cfg module l4re module ned module l4lx-gfx.cfg module io module ankh module ankh.vbus module fb-drv module mag module x86-legacy.devs module l4lx-x86.io module vmlinuz module drops-rd.rd
ok, i've build l4linux incorrectly. But after rebuild i receive kernel panic:
-- Galiullin Timur _______________________________________________ l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
Hi Timur, l4linux | add_chunk: area 0xa82a240c, name '(null)', size 16420 l4linux | Page fault (non-resolved): pfa=0 pc=a800ea25 Die message: Trap: 14 l4linux | panic: going to sleep forever, bye Have you tried to figure out what function the PC 0xA800EA25 is in? Bjoern -- Dipl.-Inf. Bjoern Doebel Mail: doebel@tudos.org TU Dresden, OS Chair Phone: +49 351 463 38 799 Noethnitzer Str. 46 Fax: +49 351 463 38 284 01187 Dresden, Germany WWW: http://www.tudos.org/~doebel -- "Futbol no es en simple juego. Es una arma de la revolucion!"
participants (4)
-
Björn Döbel -
Sartakov A. Vasily -
Shashi Sharma -
Timur