Bug 66894 - strace pretends not to know modify_ldt
Summary: strace pretends not to know modify_ldt
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: strace
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-06-18 04:45 UTC by John Reiser
Modified: 2007-04-18 16:43 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-06-18 04:46:04 UTC
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2002-06-18 04:45:59 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-6.2.16-KRUD-perfctr2.3.6
i586)

Description of problem:
strace-4.4-4.src.rpm has an oversight which inhibits meaningful
output for the modify_ldt() system call.  All the source to fully
decode modify_ldt is in function sys_modify_ldt() in mem.c at
about line 509.  But file linux/dummy.h has
	#define sys_modify_ldt    printargs
in full view, so the output from strace contains only the top-level
3 arguments, instead of the exploded modify_ldt_ldt_s structure.


Version-Release number of selected component (if applicable):
strace-4.4-4.src.rpm

How reproducible:
Always

Steps to Reproduce:
1. run strace on any i686 pthreaded program
2. look at the output for calls to modify_ldt
3.
	

Actual Results:  You get, for example
	modify_ldt(1, 0xbffffedc, 0x10) = 0


Expected Results:  You should want, for example
	modify_ldt(1, {entry_number:0, base_address:0x400c1234, limit:1056, ...


Additional info:

Here is the fix [adjust tabbing]:
put the #define for modify_ldt under the #if DONE conditional
[which is 0, hence comments-out things which appear in its scope].
========================
--- dummy.h.orig	Mon Jun 17 21:28:31 2002
+++ dummy.h	Mon Jun 17 21:29:19 2002
@@ -33,7 +33,6 @@
 #define	sys_syslog		printargs
 #define	sys_iopl		printargs
 #define	sys_vm86old		printargs
-#define	sys_modify_ldt		printargs
 #define	sys_get_kernel_syms	printargs
 #define	sys_bdflush		printargs
 #define	sys_sysfs		printargs
@@ -205,4 +204,5 @@
 #define	sys_quotactl		printargs
 #define sys_mlockall		printargs
 #define	sys_reboot		printargs
+#define	sys_modify_ldt		printargs
 #endif

Comment 1 Jakub Jelinek 2002-08-16 08:29:45 UTC
Should be fixed in strace-4.4-6 in rawhide.


Note You need to log in before you can comment on or make changes to this bug.