mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-06 02:49:45 -06:00
Get rid of backtrace machinery
It is currently very fragile, due to:
* Differing versions of compilers/DWARF version result in a variety
of breakages in the our code which analyzes the DWARF info;
* With musl, libunwind seems to be currently unable to traverse
beyond signal handlers, due to the DWARF information not
being present in the signal frame.
See <https://maskray.me/blog/2022-04-10-unwinding-through-signal-handler>.
Note that I have not verified that the problem in the blog
post above is indeed what we're hitting, but it seems plausible.
This commit is contained in:
@@ -261,7 +261,7 @@ private:
|
||||
try {
|
||||
reqHeader.unpack(reqBbuf);
|
||||
} catch (const BincodeException& err) {
|
||||
LOG_ERROR(_env, "%s\nstacktrace:\n%s", err.what(), err.getStackTrace());
|
||||
LOG_ERROR(_env, "could not parse: %s", err.what());
|
||||
RAISE_ALERT(_env, "could not parse request header from %s, dropping it.", clientAddr);
|
||||
continue;
|
||||
}
|
||||
@@ -277,7 +277,7 @@ private:
|
||||
_cdcReqContainer.unpack(reqBbuf, reqHeader.kind);
|
||||
LOG_DEBUG(_env, "parsed request: %s", _cdcReqContainer);
|
||||
} catch (const BincodeException& exc) {
|
||||
LOG_ERROR(_env, "%s\nstacktrace:\n%s", exc.what(), exc.getStackTrace());
|
||||
LOG_ERROR(_env, "could not parse: %s", exc.what());
|
||||
RAISE_ALERT(_env, "could not parse CDC request of kind %s from %s, will reply with error.", reqHeader.kind, clientAddr);
|
||||
err = EggsError::MALFORMED_REQUEST;
|
||||
}
|
||||
@@ -325,7 +325,7 @@ private:
|
||||
try {
|
||||
respHeader.unpack(reqBbuf);
|
||||
} catch (BincodeException err) {
|
||||
LOG_ERROR(_env, "%s\nstacktrace:\n%s", err.what(), err.getStackTrace());
|
||||
LOG_ERROR(_env, "could not parse: %s", err.what());
|
||||
RAISE_ALERT(_env, "could not parse response header, dropping response");
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user