Proxmark / proxmark3

Proxmark 3
http://www.proxmark.org/
GNU General Public License v2.0
3.14k stars 906 forks source link

Script Functionality is Broken as of 5249ff94 #272

Closed digitalentropy closed 7 years ago

digitalentropy commented 7 years ago

The commit on 03/31 appears to have broken listing/running scripts, at least in my macOS build environment. It appears to be looking in the wrong working directory for the scripts folder.

Error is "Couldn't open the scripts-directory"

Problem is not observed on previous commits.

pwpiwi commented 7 years ago

Which commands do you use to install?

Where is your scripts directory?

digitalentropy commented 7 years ago

My usual protocol is to “make clean” and “make all” from the main proxmark3 directory, which compiles both the firmware and the client. The scripts directory is in the default location inside the client directory.

On Apr 10, 2017, at 3:05 AM, pwpiwi notifications@github.com wrote:

Which commands do you use to install?

Where is your scripts directory?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Proxmark/proxmark3/issues/272#issuecomment-292866613, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWMviXr35L8_aGbZ1n3NqVjdOWaLJG9ks5rudTUgaJpZM4M4XRG.

pwpiwi commented 7 years ago

Any warnings or errors during compile?

digitalentropy commented 7 years ago

I mean, sure, tons of warnings but no errors. I don’t think I’ve ever seen a proxmark3 client compile on a system without any warnings. Most of it is deprecated stuff though, nothing major.

Just to clarify though, the commit that it started exhibiting this behavior on was 5249ff94. I thought I updated the issue but I guess it didn’t save the edit.

On Apr 10, 2017, at 4:07 AM, pwpiwi notifications@github.com wrote:

Any warnings or errors during compile?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Proxmark/proxmark3/issues/272#issuecomment-292878515, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWMvh__tSssBy81v_8bogtRE-1-_LrOks5rueNLgaJpZM4M4XRG.

pwpiwi commented 7 years ago

Two quite interesting statements:

the commit that it started exhibiting this behavior on was 5249ff9

... Which has no changes relating to the script directory

sure, tons of warnings but no errors. I don’t think I’ve ever seen a proxmark3 client compile on a system without any warnings.

I am used to zero warnings during the build process. Could you please post the log?

digitalentropy commented 7 years ago

Yes, I also found it interesting for the same reason, but it appears to be fairly reproducible. This is why I opened the issue, because I couldn't find any obvious changes myself and I was hoping someone else can lend their experience and troubleshooting it.

I've not observed the issue when compiling on Windows, and I haven't tested it on Linux.

I'm attaching two logs. The first one is compiling 4ab135c0 from source. You'll see the many clang warnings yelling about deprecated functions here and there, but nothing super scary. You'll also see me run the client and have it work as expected.

The second, 5249ff94, appears to compile in the same way and interacting with scripts even works correctly the first time, and fails every subsequent attempt. Even more fun, something is taking focus away from the terminal window right after I execute the proxmark3 binary (which doesn't happen on previous builds) AND I get a CoreAnimation error every time I exit.

I'm guessing this is going to be a very stupid issue, but I'm not sure where to focus yet.

4ab135c0.txt 5249ff94.txt

iceman-1 commented 7 years ago

Iceman fork got a PR for an null terminal string bug.

On 10 Apr 2017, at 10:23, digitalentropy notifications@github.com wrote:

Yes, I also found it interesting for the same reason, but it appears to be fairly reproducible. This is why I opened the issue, because I couldn't find any obvious changes myself and I was hoping someone else can lend their experience and troubleshooting it.

I've not observed the issue when compiling on Windows, and I haven't tested it on Linux.

I'm attaching two logs. The first one is compiling 4ab135c from source. You'll see the many clang warnings yelling about deprecated functions here and there, but nothing super scary. You'll also see me run the client and have it work as expected.

The second, 5249ff9, appears to compile in the same way and interacting with scripts even works correctly the first time, and fails every subsequent attempt. Even more fun, something is taking focus away from the terminal window right after I execute the proxmark3 binary (which doesn't happen on previous builds) AND I get a CoreAnimation error every time I exit.

I'm guessing this is going to be a very stupid issue, but I'm not sure where to focus yet.

4ab135c0.txt 5249ff94.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

pwpiwi commented 7 years ago

@iceman-1: great! Will fix when I am back at keyboard.

pwpiwi commented 7 years ago

Fix committed. You may try again, please.

digitalentropy commented 7 years ago

Thanks @pwpiwi! Script functionality has resumed but I'm still getting the following error upon exiting the client:

CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces, or set CA_ASSERT_MAIN_THREAD_TRANSACTIONS=1 to abort when an implicit transaction isn't created on a main thread.

digitalentropy commented 7 years ago

Perhaps close this issue and open a new one? I don't know if the two were related, but they popped up at the same time in the same commit for me.

pwpiwi commented 7 years ago

Perhaps close this issue and open a new one? I don't know if the two were related, but they popped up at the same time in the same commit for me.

They are not related (have seen it long before). Yes, please open a new issue.

btw: I have also committed some changes which should dramatically reduce the number of warnings during build. I would be interested to see which warnings remain...

digitalentropy commented 7 years ago

Will do.

Remaining warnings enclosed.

compiling.txt