Re: [l4linux+ankh] no eth0
Shashi Sharma <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.devel |
|---|---|
| Organization | Viosoft Inc. |
| Message-ID | <1332785758.8753.140.camel@shashi-desktop> |
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 <[email protected]>: > > В сообщении от 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 > > [email protected] > > http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers > > > > > _______________________________________________ l4-hackers mailing list [email protected] http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers