-
Notifications
You must be signed in to change notification settings - Fork 56
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
Bees dump core on "--help" #126
Comments
Actually also having problems with the latest git versions: # beesd --help
Usage: beesd [options] <btrfs_uuid>
- - -
bees version v0.6-76-g4363463-dirty
2019-11-27 10:22:10 12393.12393<7> bees: Masking signals
2019-11-27 10:22:10 12393.12393<7> bees: BeesThread exec progress_report
2019-11-27 10:22:10 12393.12393<7> bees: BeesThread exec status_report
2019-11-27 10:22:10 12393.12400<7> progress_report: Starting thread progress_report
Usage: /usr/lib/bees/bees [options] fs-root-path [fs-root-path-2...]
Performs best-effort extent-same deduplication on btrfs.
fs-root-path MUST be the root of a btrfs filesystem tree (id 5).
Other directories will be rejected.
Options:
-h, --help Show this help
Load management options:
-c, --thread-count Worker thread count (default CPU count * factor)
-C, --thread-factor Worker thread factor (default 1)
-G, --thread-min Minimum worker thread count (default 0)
-g, --loadavg-target Target load average for worker threads (default none)
Filesystem tree traversal options:
-m, --scan-mode Scanning mode (0..2, default 0)
Workarounds:
-a, --workaround-btrfs-send Workaround for btrfs send
Logging options:
-t, --timestamps Show timestamps in log output (default)
-T, --no-timestamps Omit timestamps in log output
-p, --absolute-paths Show absolute paths (default)
-P, --strip-paths Strip $CWD from beginning of all paths in the log
-v, --verbose Set maximum log level (0..8, default 8)
Optional environment variables:
BEESHOME Path to hash table and configuration files
(default is .beeshome/ in the root of each filesystem).
BEESSTATUS File to write status to (tmpfs recommended, e.g. /run).
No status is written if this variable is unset.
2019-11-27 10:22:10 12393.12393<7> bees: BeesThread destructor status_report
2019-11-27 10:22:10 12393.12393<7> bees: Cancelling thread status_report
2019-11-27 10:22:10 12393.12393<7> bees: Waiting for thread status_report
terminate called without an active exception
Aborted /etc/bees/6tb.conf: UUID="fe0a1142-51ab-4181-b635-adbf9f4ea6e6"
## System Vars
# Change carefully
WORK_DIR="/run/bees"
MNT_DIR="$WORK_DIR/mnt/$UUID"
BEESHOME="$MNT_DIR/.beeshome"
BEESSTATUS="$WORK_DIR/$UUID.status"
DB_SIZE=$((256*1024*1024)) # 256MiB in bytes And this is trying to run # BEESHOME="/mnt/6TB/.beeshome/" /usr/lib/bees/bees -v /mnt/6TB/
bees version v0.6-76-g4363463-dirty
2019-11-27 10:27:34 12709.12709<7> bees: Masking signals
2019-11-27 10:27:34 12709.12709<7> bees: BeesThread exec progress_report
2019-11-27 10:27:34 12709.12709<7> bees: BeesThread exec status_report
2019-11-27 10:27:34 12709.12710<7> progress_report: Starting thread progress_report
2019-11-27 10:27:34 12709.12709<7> bees: BeesThread destructor status_report
2019-11-27 10:27:34 12709.12709<7> bees: Cancelling thread status_report
2019-11-27 10:27:34 12709.12709<7> bees: Waiting for thread status_report
terminate called without an active exception
Aborted I'm using gcc-9.2.0 on Gentoo with kernel 5.4.0. |
Is this a coredump? It says "Aborted" without "core dumped". I've posted a few PR that may have an impact on this. You may want to try merging those locally and rebuild. Also, after changing the GCC version you should clean the build directory. You should be fine, tho, when using the 9999 ebuild. If you want to use the 9999 ebuild with my PRs applied, just checkout the branches locally and run Maybe also try this and see if it relaxes resource usage and report back there: |
I tried two ways. First I did a normal got clone to a local did and did make/make install. Secondly I tried the ebuild 9999 version. I removed all old files first. Same issue both times. I haven't tried those patches yet. |
Could you rebuild glibc, then rebuild bees? |
Did that. Seems to work now. Why is that? |
I don't know, a similar (or identical) crash crept in before: Seems to be Gentoo specific. Rebuilding glibc under new gcc seems to fix it, as you tested. I saw a few similar problems also in wine. Also, to get some programs running which have been compiled with older gcc (i.e., most Steam games), I needed to add
Maybe it's something similar in this case. Some other packages may also be affected in your system. You may want to run |
FWIW I've never seen this behavior on Debian. |
I had a look and glibc was updated not too long ago, so it looks like that might be it. Perhaps a recompile |
@Zygo Yes, because in Debian, glibc, gcc and all other packages are from the same building session. In Gentoo, this is different. Packages sometimes need to be built in specific order, and the emerge tool does not always enforce this (it has build time source dependencies but lacks ABI runtime deps for a lot of packages). So, sometimes you have to rebuilt glibc with the updated gcc, and then maybe a few other packages. @Gatak This is usually what the |
Related by query: #81
I found the following crash when running
bees --help
:Bees version is v0.6-75-g7117cb4
I'm not sure why the message is in German even with
LANG=C
, but it says "Aborted (core dumped)".The text was updated successfully, but these errors were encountered: