<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
Hi,<br>
<br>
I am trying to call set_thread_area() (syscall(243, ) in lguest guest machine, and I am getting:<br>[ 81.364146] set_thread_area[848] general protection ip:b7f1d5db sp:bfaac13c error:0 in ld-2.11.2.so[b7f10000+1b000]<br><br>I tried it in debian 2.6.30 and kernel.org's 2.6.36 (Segmentation fault) kernel but got the same result.<br><br>I am running the set_thread_area02.c from:<br>http://ossipedia.ipa.go.jp/crackerjack/cjk/system_calls/265.html<br><br>#include <stdio.h><br>#include <errno.h><br>#include <linux/unistd.h><br>#include <asm/ldt.h><br><br>int main(int ac, char **av)<br>{<br> struct user_desc u_info;<br> u_info.entry_number = 6;<br> int result = syscall(244, &u_info); //call get_thread_area()<br> if(result == -1)<br> {<br> printf("FAIL ------ call get_thread_area() failed with errno:%d\n", errno);<br> return -1;<br> }<br> u_info.entry_number = -1;<br> result = syscall(243, &u_info); //call set_thread_area()<br> if(result == 0)<br> {<br> printf("PASS ------ \n");<br> return 0;<br> }<br> else<br> {<br> printf("FAIL ------ call set_thread_area() failed with errno:%d\n", errno);<br> return -1;<br> }<br>}<br><br>We are trying to run wine under lguest and this is the first problem we encountered.<br><br>Is this possible? Any suggestions in getting this to work?<br><br>Thank you<br><br>Elisha<br> </body>
</html>