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/11751] on s390x, externalvar.exp gets libdwfl failures


------- Additional Comments From mjw at redhat dot com  2010-06-30 08:54 -------
(In reply to comment #3)
> Here you go:
> 
> Running /root/src/testsuite/systemtap.base/externalvar.exp ...
> Executing on host: gcc /root/src/testsuite/systemtap.base/externalvar_lib.c  -g
> -O0 -fPIC -shared  -lm   -o /root/s390x/testsuite/libexternalvar.so    (timeout
> = 300)
> Executing on host: gcc /root/src/testsuite/systemtap.base/externalvar.c  -g -O0
> -L/root/s390x/testsuite -lexternalvar -Wl,-rpath,/root/s390x/testsuite  -lm   -o
> /root/s390x/testsuite/externalvar    (timeout = 300)
> cmd: stap -d /root/s390x/testsuite/libexternalvar.so -d
> /root/s390x/testsuite/externalvar -c /root/s390x/testsuite/externalvar
> /root/src/testsuite/systemtap.base/externalvar.stp
> cmd output: semantic error: emit_address internal error, dwfl_addrmodule failed,
> address 0x1a70: identifier '$libvar' at
> /root/src/testsuite/systemtap.base/externalvar.stp:24:27
>         source:   printf("libvar = %d\n", $libvar);
>                                           ^

OK, so this is for all the variables in the library. We think we found, libvar
in this case, at address 0x1a70, we try to translate it to a location
expression, so we ask libdwfl about it to determine which dwfl module exactly it
is in. But then dwfl_addrmodule fails for some reason (but without it setting an
error code).

Could you try to build the libexternalvar.so as above (or just comment out the
rm in the exp file) and see waht loc2c-test says about it?

$ ./loc2c-test testsuite/libexternalvar.so 0x1a70

$ ./loc2c-test testsuite/libexternalvar.so 0x1a70 libvar

and what does eu-readelf say about the lib_call function?

$ eu-readelf -s testsuite/libexternalvar.so | grep lib_call

-- 


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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