Commit 35f0a4e
Mikael Hirki
PPCoin: Move declaration and initialization of strMintMessage inside BitcoinMiner().
This fixes an assertion failure crash when starting ppcoin-qt. The assertion
failure is caused by a static call to the _() function. The issue is fixed by
making strMintMessage a non-static local variable inside BitcoinMiner().
Assertion failure message (from Sunny):
ppcoin-qt: /usr/include/boost/smart_ptr/shared_ptr.hpp:412: boost::shared_ptr<T>::reference boost::shared_ptr<T>::operator*() const [ with T = <snip> ]: Assertion `px != 0' failed.
Backtrace of the crash:
#0 0x0000003565435309 in raise () from /lib64/libc.so.6
#1 0x0000003565436668 in abort () from /lib64/libc.so.6
#2 0x000000356542e476 in __assert_fail_base () from /lib64/libc.so.6
bitcoin#3 0x000000356542e522 in __assert_fail () from /lib64/libc.so.6
bitcoin#4 0x0000000000475dbe in operator* (this=<optimized out>) at /usr/include/boost/smart_ptr/shared_ptr.hpp:646
bitcoin#5 operator() (arg1=0x649fd8 "Info: Minting suspended due to locked wallet.", this=<optimized out>) at /usr/include/boost/signals2/detail/signal_template.hpp:695
bitcoin#6 _ (psz=psz@entry=0x649fd8 "Info: Minting suspended due to locked wallet.") at src/ui_interface.h:106
bitcoin#7 0x000000000049f5f7 in __static_initialization_and_destruction_0 (__initialize_p=__initialize_p@entry=1, __priority=__priority@entry=65535) at src/main.cpp:3345
bitcoin#8 0x00000000004af11a in _GLOBAL__sub_I_cs_setpwalletRegistered () at src/main.cpp:5303
bitcoin#9 0x0000000000620d0d in __libc_csu_init ()
bitcoin#10 0x0000003565421aa5 in __libc_start_main () from /lib64/libc.so.6
bitcoin#11 0x000000000042b9f8 in _start ()1 parent 05a2bdd commit 35f0a4e
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3342 | 3342 | | |
3343 | 3343 | | |
3344 | 3344 | | |
3345 | | - | |
3346 | 3345 | | |
3347 | 3346 | | |
3348 | 3347 | | |
| |||
5020 | 5019 | | |
5021 | 5020 | | |
5022 | 5021 | | |
| 5022 | + | |
| 5023 | + | |
5023 | 5024 | | |
5024 | 5025 | | |
5025 | 5026 | | |
| |||
0 commit comments