Does Valgrind support modify_ldt() syscall on amd64-linux platform?

View: New views
3 Messages — Rating Filter:   Alert me  

Does Valgrind support modify_ldt() syscall on amd64-linux platform?

by scameung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I tried to run a amd64-linux program on valgrind 3.5.0, but valgrind said modify_ldt syscall is missing. After checking the 3.5.0 source code, I think Valgrind 3.5.0 does not support modify_ldt amd64-linux.

Is there a plan to implement it recently? Or how hard is it to support modify_ldt on amd64-linux?

If it is not hard, I'll tried to port x86 support to amd64 by myself. However I looked at VEX/pub/libvex_guest_amd64.h, but it seems that VexGuestAMD64State does not have a full support for segmentation registers...

Your comments are really appreciated.

Thanks!

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: Does Valgrind support modify_ldt() syscall on amd64-linux platform?

by tom fogal-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yami <yamisoe@...> writes:
> I tried to run a amd64-linux program on valgrind 3.5.0, but valgrind
> said modify_ldt syscall is missing. After checking the 3.5.0 source
> code, I think Valgrind 3.5.0 does not support modify_ldt amd64-linux.

http://valgrind.org/docs/manual/dist.readme-missing.html

See: "Writing your own syscall wrappers (see below for ioctl wrappers)"

-tom

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: Does Valgrind support modify_ldt() syscall on amd64-linux platform?

by Bugzilla from tom@compton.nu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 28/09/09 04:54, tom fogal wrote:
> yami<yamisoe@...>  writes:
>> I tried to run a amd64-linux program on valgrind 3.5.0, but valgrind
>> said modify_ldt syscall is missing. After checking the 3.5.0 source
>> code, I think Valgrind 3.5.0 does not support modify_ldt amd64-linux.
>
> http://valgrind.org/docs/manual/dist.readme-missing.html
>
> See: "Writing your own syscall wrappers (see below for ioctl wrappers)"

Perfectly good advice for a "normal" system call, but modify_ldt is very
much a special case and is not at all simple to implement.

Ticket https://bugs.kde.org/show_bug.cgi?id=175985 is already open for
this. Using modify_ldt on x86_64 is pretty unusual though so it doesn't
look like there has been much headway in fixing it.

Tom

--
Tom Hughes (tom@...)
http://www.compton.nu/

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users