This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/1295] i386 RHEL4U2 problem with some variables


http://sourceware.org/bugzilla/show_bug.cgi?id=1295

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsmith at redhat dot com

--- Comment #26 from David Smith <dsmith at redhat dot com> 2011-03-17 15:40:08 UTC ---
I've tested this one with the latest RHEL4 rpms:

kernel-2.6.9 100.EL.i686
gcc-3.4.6 11.el4_8.1.i386

Both with systemtap-1.3 5.el4.i386 and current git head systemtap, the behavior
is now correct for both sys_time() and sys_open().  However, glibc has changed
a bit making this harder to verify.

When I originally ran the test program and systemtap script attached to this
bug (after updating the script a bit), I was always getting '0' for the
argument of sys_time().  After digging a bit deeper, I realized that strace
also showed time() being called with NULL.  So, the glibc time() wrapper is
calling time() with NULL and then copying the output to the argument.  After
changing the test program to use 'syscall(SYS_TIME, &t)', I'm now seeing the
proper argument to sys_time().

Here's the output I now get from the (updated) test program:

Addr of tloc = 0xbffe0be0
Addr of filename = 0x80485a0

Here's the output from the (updated) script:

Addr of tloc = 0x0
Addr of tloc = 0xbfe640a0
Addr of filename = 0x80485a0
    filename = myfile

So, the arguments to those two syscalls are now correct.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]