Hi,

I am new bie to this group and have recently started playing around
with UML. I was writing a small file system module and using UML for
it. I tried to use gdb and break on register_filesystem, but whenever
it gets called it crashes with the following stack

Program received signal SIGSEGV, Segmentation fault.
0x080599bb in copy_chunk_from_user (from=136896536, len=4072,
arg=0x9586e70) at include/asm/arch/string.h:38
38      __asm__ __volatile__(
(gdb) bt
#0  0x080599bb in copy_chunk_from_user (from=136896536, len=4072,
arg=0x9586e70) at include/asm/arch/string.h:38
#1  0x08059816 in do_op_one_page (addr=134520856, len=4072,
is_write=0, op=0x80599a6 <copy_chunk_from_user>, arg=0x9586e70)
    at arch/um/kernel/skas/uaccess.c:55
#2  0x080598ad in do_buffer_op (jmpbuf=0x9586de8, arg_ptr=0x9586e04)
at arch/um/kernel/skas/uaccess.c:83
#3  0x08066161 in setjmp_wrapper (proc=0x8059824 <do_buffer_op>) at
arch/um/os-Linux/util.c:100
#4  0x0805997b in buffer_op (addr=134520856, len=46126, is_write=0,
op=0x80599a6 <copy_chunk_from_user>, arg=0x9586e70)
    at arch/um/kernel/skas/uaccess.c:125
#5  0x08059a44 in copy_from_user_skas (to=0xa805000, from=0x804a018,
n=156790384) at arch/um/kernel/skas/uaccess.c:149
#6  0x0808a2ee in load_module (umod=0x804a018, len=46126,
uargs=0x804a008 "P��;") at arch/um/include/um_uaccess.h:43
#7  0x0808abf9 in sys_init_module (umod=0x804a018, len=46126,
uargs=0x804a008 "P��;") at kernel/module.c:1990
#8  0x0805941a in handle_syscall (r=0x89ba514) at
arch/um/kernel/skas/syscall.c:38
#9  0x080677f2 in handle_trap (pid=13368, regs=0x89ba514,
local_using_sysemu=2) at arch/um/os-Linux/skas/process.c:173
#10 0x08067be9 in userspace (regs=0x89ba514) at
arch/um/os-Linux/skas/process.c:330
#11 0x080591c5 in fork_handler () at arch/um/kernel/skas/process.c:96
#12 0x00000000 in ?? ()

Any suggestions what might be going wrong. Note that it crashes only
when i use gdb. Otherwise i am able to successfully load my filesystem
module in UML and see in /proc/filesystems.

-- 
Thanks & Regards,
********************************************
Manish Katiyar  ( http://mkatiyar.googlepages.com )
3rd Floor, Fair Winds Block
EGL Software Park
Off Intermediate Ring Road
Bangalore 560071, India
***********************************************
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to