[GH-ISSUE #571] memory.h:22:28: fatal error: memdbg_defines.h: No such file or directory #245

Closed
opened 2026-10-14 02:57:55 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @kholia on GitHub (Apr 22, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/571

Originally assigned to: @jfoug on GitHub.

$ git rev-parse HEAD
7f2ee9f8e6a341c4b54c68ecf9e95560c9224386
Originally created by @kholia on GitHub (Apr 22, 2014). Original GitHub issue: https://github.com/openwall/john/issues/571 Originally assigned to: @jfoug on GitHub. ``` $ git rev-parse HEAD 7f2ee9f8e6a341c4b54c68ecf9e95560c9224386 ```
bsakaguchi 2026-10-14 02:57:55 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jfoug commented on GitHub (Apr 22, 2014):

This file is in git-ignore. It is not supposed to be checked in a git diff, etc. However, we need to force add the 'default' one, at least the first time. From that point on, it should be ignored.

That file is the local file that turns on 'features' in the mem-dbg code. Normally ALL is turned off. All mallocs go to libc.malloc, all frees to libc.free, etc. That way, even with the memdbg code there, it is a no-op, and should behave exactly like before memdbg was added.

<!-- gh-comment-id:41033807 --> @jfoug commented on GitHub (Apr 22, 2014): This file is in git-ignore. It is not supposed to be checked in a git diff, etc. However, we need to force add the 'default' one, at least the first time. From that point on, it should be ignored. That file is the local file that turns on 'features' in the mem-dbg code. Normally ALL is turned off. All mallocs go to libc.malloc, all frees to libc.free, etc. That way, even with the memdbg code there, it is a no-op, and should behave exactly like before memdbg was added.
Author
Owner

@kholia commented on GitHub (Apr 22, 2014):

Fixed in commit e2ab565eae. Thanks!

<!-- gh-comment-id:41038543 --> @kholia commented on GitHub (Apr 22, 2014): Fixed in commit e2ab565eae4305416a451fdc683181a9620336ae. Thanks!
Author
Owner

@magnumripper commented on GitHub (Apr 22, 2014):

I must have had the file in place when testing, and it was 'invisible' due to the .gitignore stuff. I should have remembered this but that branch was so old :-)

<!-- gh-comment-id:41074426 --> @magnumripper commented on GitHub (Apr 22, 2014): I must have had the file in place when testing, and it was 'invisible' due to the .gitignore stuff. I should have remembered this but that branch was so old :-)
Author
Owner

@jfoug commented on GitHub (Apr 22, 2014):

It took a bit of time for me to figure this out also, because I had a copy. But a fresh clone, and it was not there, then I remembered that we did not want it to be trashed by someone doing testing, so made it .gitignore. This one likely required a direct commit, not a commit all changes. But it is there now, and the default 'version'.

<!-- gh-comment-id:41074958 --> @jfoug commented on GitHub (Apr 22, 2014): It took a bit of time for me to figure this out also, because I had a copy. But a fresh clone, and it was not there, then I remembered that we did not want it to be trashed by someone doing testing, so made it .gitignore. This one likely required a direct commit, not a commit all changes. But it is there now, and the default 'version'.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#245
No description provided.