Skip to content
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

Problem after building monero from source #8907

Open
SnAFKe opened this issue Jun 15, 2023 · 17 comments
Open

Problem after building monero from source #8907

SnAFKe opened this issue Jun 15, 2023 · 17 comments
Labels

Comments

@SnAFKe
Copy link

SnAFKe commented Jun 15, 2023

I'm running AMR64 on Debian 11 and trying to building monero from source.

I'm compile static binaries, building finish without issue.

When i'm try to run monerod without issue but flood me with this.

[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:133	Exception: std::bad_alloc
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:134	Unwound call stack:
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [1] /usr/local/bin/monerod(+0x4eb634) [0xaaaad8f6b634] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [2] /usr/local/bin/monerod(+0x873af4) [0xaaaad92f3af4] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [3] /usr/local/bin/monerod(+0x86d17c) [0xaaaad92ed17c] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [4] /usr/local/bin/monerod(+0x86a32c) [0xaaaad92ea32c] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [5] /usr/local/bin/monerod(+0x4b287c) [0xaaaad8f3287c] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [6] /usr/local/bin/monerod(+0x4b37e0) [0xaaaad8f337e0] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [7] /usr/local/bin/monerod(+0x49b54c) [0xaaaad8f1b54c] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [8] /usr/local/bin/monerod(+0x49b734) [0xaaaad8f1b734] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [9] /usr/local/bin/monerod(+0x49b7fc) [0xaaaad8f1b7fc] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [10] /usr/local/bin/monerod(+0x442e44) [0xaaaad8ec2e44] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [11] /usr/local/bin/monerod(+0x4e413c) [0xaaaad8f6413c] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [12] /usr/local/bin/monerod(+0x4e49ac) [0xaaaad8f649ac] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [13] /usr/local/bin/monerod(+0x449908) [0xaaaad8ec9908] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [14] /usr/local/bin/monerod(+0x46ae88) [0xaaaad8eeae88] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [15] /usr/local/bin/monerod(+0x3ff004) [0xaaaad8e7f004] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [16] /usr/local/bin/monerod(+0x1715f4) [0xaaaad8bf15f4] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [17] /usr/local/bin/monerod(+0x3e8288) [0xaaaad8e68288] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [18] /usr/local/bin/monerod(+0x3e966c) [0xaaaad8e6966c] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [19] /usr/local/bin/monerod(+0x25cd84) [0xaaaad8cdcd84] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [20] /usr/local/bin/monerod(+0x13fc2c) [0xaaaad8bbfc2c] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [21] /usr/local/bin/monerod(+0x37bd7c) [0xaaaad8dfbd7c] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [22] /usr/local/bin/monerod(+0x3b1898) [0xaaaad8e31898] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [23] /usr/local/bin/monerod(+0xa8377c) [0xaaaad950377c] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [24] /lib/aarch64-linux-gnu/libpthread.so.0(+0x7648) [0xffffa19db648] 
[P2P6]	INFO	stacktrace	src/common/stack_trace.cpp:172	    [25] /lib/aarch64-linux-gnu/libc.so.6(+0xd1fdc) [0xffffa1931fdc] 

This only happen building monero from source and if i use official binary not have this issue.

I've enough memory and space too, also i not have any memory issue.

Not sure what i doing wrong from building from source.

@0xFFFC0000
Copy link
Collaborator

Can you build a debug build?

This should not happen. It seems there is an issue/mismatch with one of the libraries you are using to build Monero.

@SnAFKe
Copy link
Author

SnAFKe commented Jun 15, 2023

How i can build debug static armv8?

@0xFFFC0000
Copy link
Collaborator

Are you cross-compiling?

I am not sure about your specific architecture. But generally, you can build debug binaries via

make debug

@selsta
Copy link
Collaborator

selsta commented Jun 15, 2023

That's the libunwind library. The official binaries don't ship with libunwind, that's why you don't see these log messages.

@SnAFKe
Copy link
Author

SnAFKe commented Jun 15, 2023

Are you cross-compiling?

I am not sure about your specific architecture. But generally, you can build debug binaries via

make debug

No.

That's the libunwind library. The official binaries don't ship with libunwind, that's why you don't see these log messages.

I already see somewhere in here but i uninstall libunwind8-dev (debian) and still give me this error.

@selsta
Copy link
Collaborator

selsta commented Jun 15, 2023

You have to uninstall it and then do a clean recompile, just uninstalling isn't enough.

Also libunwind and libunbound are not the same thing, you have to uninstall the correct library.

@SnAFKe
Copy link
Author

SnAFKe commented Jun 15, 2023

I know, even i delete folder and clone again and still.

@selsta
Copy link
Collaborator

selsta commented Jun 15, 2023

Please share a build log on paste.debian.net so that I can see if libunwind is still used or not.

@SnAFKe
Copy link
Author

SnAFKe commented Jun 15, 2023

Sorry, where are the logs located?

@selsta
Copy link
Collaborator

selsta commented Jun 15, 2023

It prints it to the command line after entering make.

@SnAFKe
Copy link
Author

SnAFKe commented Jun 15, 2023

@selsta
Copy link
Collaborator

selsta commented Jun 15, 2023

-- Stack trace on exception enabled (using easylogging++)

it uses a different library, will have to check how to disable it

@selsta
Copy link
Collaborator

selsta commented Jun 15, 2023

Try to delete all this code and build again: https://github.com/monero-project/monero/blob/master/CMakeLists.txt#L528-L561

@SnAFKe
Copy link
Author

SnAFKe commented Jun 16, 2023

Seems to work now, running about 12h and not issue.

But my curious why you can build without this error and not modify anything?

Hope now my other problem solve to apply patch for that issue.

@selsta
Copy link
Collaborator

selsta commented Jun 16, 2023

It's not an error, it's just logging. You just disabled the logging of this exception but the exception itself continues to happen.

@SnAFKe
Copy link
Author

SnAFKe commented Jun 16, 2023

But that is ignoring the error and not solving the problem, that does not generate a loss of performance.

Damn it, the other problem not fix issue, i'm sick with that error i going to create separate issue.

@selsta
Copy link
Collaborator

selsta commented Jun 16, 2023

Try to enable hugepages: https://xmrig.com/docs/miner/hugepages

See also #8790 (comment)

@0xFFFC0000 0xFFFC0000 added the arm label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants