Date: Sun, 14 Jun 2009 16:27:45 +0200 (CEST) From: Alexander Best <alexbestms@math.uni-muenster.de> To: <freebsd-current@FreeBSD.org> Subject: linux syscall get_robust_list causes panic Message-ID: <permail-20090614142745f7e55a9d00004f58-a_best01@message-id.uni-muenster.de>
next in thread | raw e-mail | index | archive | help
This is a MIME encoded multipart message. --+permail-20090614142745f7e55a9d00004f58-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi there, i tried to run the latest release (20090531) of the linux test project (ltp) with emulators/linux_dist-gentoo-stage3. however the kernel panics after ltp's get_robust_list(2) test. set_robust_list(2) passes without any problems. i've attached a screenshot of the panic and the source which is causing the panic. you won't be able to compile it without ltp however. after installing and compiling ltp the source and the executable can be found in "/usr/local/gentoo-stage3/ltp-full-20090531/testcases/kernel/syscalls/get_robust_list". simply running the "/usr/local/gentoo-stage3/ltp-full-20090531/testcases/kernel/syscalls/get_robust_list/get_robust_list01" executable results in a panic. unfortunately i cannot supply a complete bt, because i only own a usb keyboard which doesn't respond after the panic. actually i'm a bit surprised the debugger was started, because i have "KDB_UNATTENDED" in my kernel conf. any reason the machine doesn't reboot and save the dump to /var/crash/vmcore.*? i'm running r193846 (CURRENT). cheers. --+permail-20090614142745f7e55a9d00004f58-a_best01+ Content-Type: application/octet-stream Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="getrobustlist01.c" LyoKICoKICogICBDb3B5cmlnaHQgKGMpIEludGVybmF0aW9uYWwgQnVzaW5lc3MgTWFjaGluZXMg IENvcnAuLCAyMDAxCiAqCiAqICAgVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU7ICB5b3Ug Y2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5CiAqICAgaXQgdW5kZXIgdGhlIHRlcm1z IG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnkKICogICB0 aGUgRnJlZSBTb2Z0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kIGNs ZWFudXAodm9pZCkKewoJVEVTVF9DTEVBTlVQOwoKCXRzdF9leGl0KCk7Cn0KCiNlbHNlCgppbnQg bWFpbigpCnsKCXRzdF9yZXNtKFRDT05GLCAiZ2V0X3JvYnVzdF9saXN0OiBzeXN0ZW0gY2FsbCBu b3QgYXZhaWxhYmxlIik7Cgl0c3RfZXhpdCgpOwp9CgojZW5kaWYK --+permail-20090614142745f7e55a9d00004f58-a_best01+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-20090614142745f7e55a9d00004f58-a_best01>