New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
separate debuginfo failures #542
Comments
Some tests that pass normally fail with separate debuginfo (which is how system debuginfo is shipped in Fedora) (I stripped the debuginfo by building and installing the testsuite, then running There are some new failures |
Hi @stanfordcox, I have seen once aborting at that line (BPatch_snippet.C:223) but couldn't reproduce it. But it wasn't with separate debuginfo files. In your case, what binaries had their debug info separated, the system dependencies or the testsuite mutatees? Are you using the master branch last commit? Is it x86_64? |
@sashanicolas So I forced the testsuite to use separate debuginfo for all the tests by using: find-debuginfo.sh creates separate debuginfo in /usr/lib/debug, so this forces it to createthe separate *.debug files in the working dir% cd .../dyninst-testsuite/install/bin/testsuite now create the separate debuginfo for all executables and libraries in testsuite install dir% RPM_BUILD_ROOT=$(pwd) /usr/lib/rpm/find-debuginfo.sh . >& tee /tmp/,fdbi now all testsuite debuginfo is stripped% ls *.debug Now I just run the testsuite (results without and with separate debuginfo attached(I've been looking at symtabAPI/src/dwarfWalker.C et al to try and narrow this down but I don't have a good handle yet on how this all fits together) |
@stanfordcox it seems that something is wrong with:
It seems it's trying to start stripping them but fails. Did you mean to redirect to the program |
Ah sorry, cut and paste error: Yes I meant to redirect via tee RPM_BUILD_ROOT=$(pwd) /usr/lib/rpm/find-debuginfo.sh . |& tee /tmp/,fdbi |
@stanfordcox Yeah, I tested that before assuming you meant that. But same result.
|
Heh, not sure where that is coming from. (The ln -s . usr;ln -s . lib;ln -s . debug; links are setup?) @sashanicolas could you try: |
|
...shopt: not found... % help shopt @sashanicolas Are you using the bash shell? Any chance you are using zsh or tsh? The first line of find-debuginfo.sh is |
|
It seems the first error occurs at line 76 But nout is a variable declared before, not a file. Command set also works. |
Something is odd here but it is not obvious to me what it is. What version of linux, bash and rpm-build? My find-debuginfo.sh is different at line 76 but based on context the complaint seems to be at the while: If that is the case then I don't know why it would think i and nout were files as opposed to shell variables. Normally shell variables are prefixed with '$' but so ((i < nout)) should evaluate the condition and interpret i and nout as shell variables. Does this small example work as expected? |
Well, here's the reason.
|
@stanfordcox
|
Hmm I am not sure about the debugedit complain. I get a similar invocation for -b and -d but no error:
Guess I can poke at the source and try to guess what is going on |
I read about this dest dir and base dir fairly enough to know that it's just a way to avoid dealing with strings.
My find-debuginfo.sh is somehow invoking sh which for Ubuntu is different from bash. And was complaining about the syntax use of nout. |
@stanfordcox I believe this commit will fix it c371022 |
Aha, was not looking at the right module; seems fine now, thanks! |
No description provided.
The text was updated successfully, but these errors were encountered: