Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rump core on module load

On Fri, 5 May 2017, Patrick Welche wrote:

Toying with a kernel module,

export RUMP_SERVER=unix:///tmp/sock
rump_allserver -svm /usr/src/sys/modules/abt/obj.amd64/abt.kmod ${RUMP_SERVER}

dumps core. The odd thing is that modload is happy!

#0  0x00000000e5405e57 in ?? ()
#1  0x00007f7fe48b0efb in module_do_load (name=0x7f7ff7bccc00 "/module.mod",
   isdep=false, flags=0, props=0x0, modp=0x0, modclass=MODULE_CLASS_ANY,
   at /usr/src/lib/librump/../../sys/rump/../kern/kern_module.c:1127
#2  0x00007f7fe48afd0b in module_load (filename=0x7f7ff7bccc00 "/module.mod",
   flags=0, props=0x0, modclass=MODULE_CLASS_ANY)
   at /usr/src/lib/librump/../../sys/rump/../kern/kern_module.c:593
#3  0x00007f7fe484e78c in handle_modctl_load (
   ml_filename=0x204297 "/module.mod", ml_flags=0, ml_props=0x0,
   at /usr/src/lib/librump/../../sys/rump/../kern/sys_module.c:103

The address in traceback #1 appears to be the retrun from calling the module's xxx_modcmd(MODULE_CMD_INIT, ...) so I would add some printf()s into the module to see why it is dying.

| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |

Home | Main Index | Thread Index | Old Index