This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/13283] script -> C translator incorrect comparison (using ==) of kernel_string() operands
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 12 Oct 2011 17:37:07 +0000
- Subject: [Bug translator/13283] script -> C translator incorrect comparison (using ==) of kernel_string() operands
- Auto-submitted: auto-generated
- References: <bug-13283-6586@http.sourceware.org/bugzilla/>
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.