Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Dec 2017 15:43:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 224599] net-p2p/monero-cli: Segmentation fault with any operation
Message-ID:  <bug-224599-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224599

            Bug ID: 224599
           Summary: net-p2p/monero-cli: Segmentation fault with any
                    operation
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: thierry@FreeBSD.org

Trying to run monerod, with any arg, ends with a segfault:

$ gdb801 /usr/local/bin/monerod
GNU gdb (GDB) 8.0.1 [GDB v8.0.1 for FreeBSD]
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.htm=
l>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd11.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/monerod...(no debugging symbols
found)...done.
(gdb) r --help
Starting program: /usr/local/bin/monerod --help
Monero 'Helium Hydra' (v0.11.1.0-release)

Usage: /usr/local/bin/monerod [options|settings] [daemon_command...]

Options:
  --help                                Produce help message
  --version                             Output version information
  --os-version                          OS for which this executable was=20
                                        compiled
  --config-file arg (=3D/home/thierry/.bitmonero/bitmonero.conf)
                                        Specify configuration file
  --test-dbg-lock-sleep arg (=3D0)        Sleep time in ms, defaults to 0 (=
off),=20
                                        used to debug before/after locking=
=20
                                        mutex. Values 100 to 1000 are good =
for=20
                                        tests.
  --detach                              Run as daemon
  --pidfile arg                         File path to write the daemon's PID=
 to=20
                                        (optional, requires --detach)
  --non-interactive                     Run non-interactive

Settings:
  --log-file arg (=3D/home/thierry/.bitmonero/bitmonero.log)
                                        Specify log file
  --log-level arg
  --max-concurrency arg (=3D0)            Max number of threads to use for =
a=20
                                        parallel job
  --data-dir arg (=3D/home/thierry/.bitmonero)
                                        Specify data directory
  --testnet-data-dir arg (=3D/home/thierry/.bitmonero/testnet)
                                        Specify testnet data directory
  --test-drop-download                  For net tests: in download, discard=
 ALL
                                        blocks instead checking/saving them=
=20
                                        (very fast)
  --test-drop-download-height arg (=3D0)  Like test-drop-download but disar=
ds=20
                                        only after around certain height
  --testnet                             Run on testnet. The wallet must be=
=20
                                        launched with --testnet flag.
  --enforce-dns-checkpointing           checkpoints from DNS server will be=
=20
                                        enforced
  --db-type arg (=3Dlmdb)                 Specify database type, available:=
 lmdb
  --prep-blocks-threads arg (=3D4)        Max number of threads to use when=
=20
                                        preparing block hashes in groups.
  --fast-block-sync arg (=3D1)            Sync up most of the way by using=
=20
                                        embedded, known block hashes.
  --db-sync-mode arg (=3Dfast:async:1000) Specify sync option, using format=
=20
                                        [safe|fast|fastest]:[sync|async]:[n=
bloc
                                        ks_per_sync].
  --db-salvage                          Try to salvage a blockchain databas=
e if
                                        it seems corrupted
  --show-time-stats arg (=3D0)            Show time-stats when processing=20
                                        blocks/txs and disk synchronization.
  --block-sync-size arg (=3D0)            How many blocks to sync at once d=
uring=20
                                        chain synchronization (0 =3D adapti=
ve).
  --check-updates arg (=3Dnotify)         Check for new versions of monero:=
=20
                                        [disabled|notify|download|update]
  --fluffy-blocks                       Relay blocks as fluffy blocks where=
=20
                                        possible (automatic on testnet)
  --testnet-p2p-bind-port arg (=3D28080)  Port for testnet p2p network prot=
ocol
  --p2p-bind-port arg (=3D18080)          Port for p2p network protocol
  --extra-messages-file arg             Specify file for extra messages to=
=20
                                        include into coinbase transactions
  --start-mining arg                    Specify wallet address to mining for
  --mining-threads arg                  Specify mining threads count
  --bg-mining-enable                    enable/disable background mining
  --bg-mining-ignore-battery            if true, assumes plugged in when un=
able
                                        to query system power status
  --bg-mining-min-idle-interval arg     Specify min lookback interval in=20
                                        seconds for determining idle state
  --bg-mining-idle-threshold arg        Specify minimum avg idle percentage=
=20
                                        over lookback interval
  --bg-mining-miner-target arg          Specificy maximum percentage cpu us=
e by
                                        miner(s)
  --p2p-bind-ip arg (=3D0.0.0.0)          Interface for p2p network protocol
  --p2p-external-port arg (=3D0)          External port for p2p network pro=
tocol=20
                                        (if port forwarding used with NAT)
  --allow-local-ip                      Allow local ip add to peer list, mo=
stly
                                        in debug purposes
  --add-peer arg                        Manually add peer to local peerlist
  --add-priority-node arg               Specify list of peers to connect to=
 and
                                        attempt to keep the connection open
  --add-exclusive-node arg              Specify list of peers to connect to=
=20
                                        only. If this option is given the=20
                                        options add-priority-node and seed-=
node
                                        are ignored
  --seed-node arg                       Connect to a node to retrieve peer=
=20
                                        addresses, and disconnect
  --hide-my-port                        Do not announce yourself as peerlis=
t=20
                                        candidate
  --no-igd                              Disable UPnP port mapping
  --offline                             Do not listen for peers, nor connec=
t to
                                        any
  --out-peers arg (=3D-1)                 set max number of out peers
  --tos-flag arg (=3D-1)                  set TOS flag
  --limit-rate-up arg (=3D-1)             set limit-rate-up [kB/s]
  --limit-rate-down arg (=3D-1)           set limit-rate-down [kB/s]
  --limit-rate arg (=3D-1)                set limit-rate [kB/s]
  --save-graph                          Save data for dr monero
  --rpc-bind-port arg (=3D18081)          Port for RPC server
  --testnet-rpc-bind-port arg (=3D28081)  Port for testnet RPC server
  --restricted-rpc                      Restrict RPC to view only commands
  --rpc-bind-ip arg (=3D127.0.0.1)        Specify ip to bind rpc server
  --rpc-login arg                       Specify username[:password] require=
d=20
                                        for RPC server
  --confirm-external-bind               Confirm rpc-bind-ip value is NOT a=
=20
                                        loopback (local) IP


Program received signal SIGSEGV, Segmentation fault.
0x000000080407dd59 in __je_tcache_dalloc_small (tsd=3D<optimized out>,
tcache=3D0x805c0d000, ptr=3D0x805c36400, binind=3D<optimized out>, slow_pat=
h=3Dfalse)
    at /usr/src/contrib/jemalloc/include/jemalloc/internal/tcache.h:415
415             if (unlikely(tbin->ncached =3D=3D tbin_info->ncached_max)) {
(gdb) bt
#0  0x000000080407dd59 in __je_tcache_dalloc_small (tsd=3D<optimized out>,
tcache=3D0x805c0d000, ptr=3D0x805c36400, binind=3D<optimized out>, slow_pat=
h=3Dfalse)
    at /usr/src/contrib/jemalloc/include/jemalloc/internal/tcache.h:415
#1  __je_arena_dalloc (tsdn=3D<optimized out>, ptr=3D<optimized out>,
tcache=3D<optimized out>, slow_path=3Dfalse)
    at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:1438
#2  __je_idalloctm (is_metadata=3Dfalse, slow_path=3Dfalse, tsdn=3D<optimiz=
ed out>,
ptr=3D<optimized out>, tcache=3D<optimized out>)
    at
/usr/src/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h:1067
#3  __je_iqalloc (tsd=3D<optimized out>, ptr=3D<optimized out>, tcache=3D<o=
ptimized
out>, slow_path=3D<optimized out>)
    at
/usr/src/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h:1084
#4  ifree (tsd=3D0x0, ptr=3D<optimized out>, tcache=3D<optimized out>,
slow_path=3D<optimized out>) at jemalloc_jemalloc.c:1815
#5  0x000000080407e311 in __free (ptr=3D0x805c36400) at jemalloc_jemalloc.c=
:1935
#6  0x00000000007c7aaa in ?? ()
#7  0x00000000007e3135 in ?? ()
#8  0x00000000007e31ee in ?? ()
#9  0x00000000007e585f in ?? ()
#10 0x00000000007e350e in ?? ()
#11 0x00000000007d9f3a in ?? ()
#12 0x00000000007da0be in ?? ()
#13 0x00000000007e1b51 in ?? ()
#14 0x00000008040f6611 in __cxa_finalize (dso=3D0x0) at
/usr/src/lib/libc/stdlib/atexit.c:235
#15 0x0000000804085be1 in exit (status=3D0) at /usr/src/lib/libc/stdlib/exi=
t.c:72
#16 0x0000000000425046 in ?? ()
#17 0x0000000800ba3000 in ?? ()
#18 0x0000000000000000 in ?? ()

Note: same thing with monero-wallet-cli.

Sorry, no symbol available: this port is unbuildable if WITH_DEBUG is set.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224599-13>