[Bug translator/13283] script -> C translator incorrect comparison (using ==) of kernel_string() operands
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Oct 12 17:37:00 GMT 2011
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.
More information about the Systemtap
mailing list