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/13283] script -> C translator incorrect comparison (using ==) of kernel_string() operands


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

--- Comment #4 from Josh Stone <jistone at redhat dot com> 2011-10-12 17:37:07 UTC ---
I tried briefly to reproduce this with numbers, but it seems that we're at the
mercy of the compiler to decide when to read the __retvalue.  But with strings
I reproduced it easily:

$ cat pr13283.stp
function foo() { return "foo"; }
function bar() { return "bar"; }
probe begin { println(foo() == bar()) exit(); }

$ stap pr13283.stp
1

-- 
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]