LearnBitcoin

Bitcoin Dev Archive 2014

Compatibility Bitcoin-Qt with Tails

6 messages, 25 Apr to 2 May 2014. Started by Wladimir J. van der Laan.

Wladimir J. van der Laan (4), Kristov Atlas (2)

Permalink Original thread on gnusha.org

Wladimir J. van der Laan permalink original

Kristov,

On Wed, Apr 23, 2014 at 10:05 PM, Kristov Atlas <kristovatlas@gmail•com> wrote:

Quoted text (5 lines)
> On 04/22/2014 09:30 AM, Warren Togami Jr. wrote:
>
> I see that the latest nightly build (thanks for that, Warren) is still not
> compatible with Tails/Debian Squeeze. Is there still an intention to address
> this issue? Might it be fixed by 0.9.2?

I've modified the gitian build so that it builds against Qt 4.6 instead of Qt 4.8 in this pull request: https://github.com/bitcoin/bitcoin/pull/4094

A test build of master with that pulls gitian descriptor is available:

https://download.visucore.com/bitcoin/linux-4765b8c-gitian-2d48b96.tar.gz https://download.visucore.com/bitcoin/linux-4765b8c-gitian-2d48b96.tar.gz.sig

These bitcoin-qt executables *should* work on Debian Squeeze / Tails Linux. Let me know if it is the case.

Wladimir

Kristov Atlas in reply to Wladimir J. van der Laan permalink original

On 04/25/2014 04:27 PM, Wladimir wrote:

Quoted text (14 lines)
> Kristov,
> I've modified the gitian build so that it builds against Qt 4.6
> instead of Qt 4.8 in this pull request:
> https://github.com/bitcoin/bitcoin/pull/4094
>
> A test build of master with that pulls gitian descriptor is available:
>
> https://download.visucore.com/bitcoin/linux-4765b8c-gitian-2d48b96.tar.gz
> https://download.visucore.com/bitcoin/linux-4765b8c-gitian-2d48b96.tar.gz.sig
>
> These bitcoin-qt executables *should* work on Debian Squeeze / Tails
> Linux. Let me know if it is the case.
>
>

Hey Wladimir,

Thanks for building this binary. The initial problem with Qt was resolved, and I was able to load the GUI that chooses my datadir. After choosing the default datadir, however, it segfaulted.

The segfault came after the usual message that I get when running Bitcoin Core in Tails, which is the "sendto: Operation not permitted" message since Core will not be able to connect to the internet without going through Tails' Tor SOCKS proxy. When I specify the SOCKS proxy through the command-line, I get a brief flash of the GUI before it segfaults again.

The "Bus::open" and "IBusInputContext::createInputContext" messages are atypical and might be related to the segfault.

Sample terminal output for latest Tails (0.23):

amnesia@amnesia:~/linux-4765b8c-gitian-2d48b96/32$ ./bitcoin-qt Bus::open: Can not get ibus-daemon's address. IBusInputContext::createInputContext: no connection to ibus-daemon sendto: Operation not permitted Segmentation fault amnesia@amnesia:~/linux-4765b8c-gitian-2d48b96/32$ ./bitcoin-qt Segmentation fault amnesia@amnesia:~/linux-4765b8c-gitian-2d48b96/32$ ./bitcoin-qt -proxy=127.0.0.1:9050 Segmentation fault

-Kristov

Wladimir J. van der Laan in reply to Kristov Atlas permalink original
Quoted text (11 lines)
> Sample terminal output for latest Tails (0.23):
>
> amnesia@amnesia:~/linux-4765b8c-gitian-2d48b96/32$ ./bitcoin-qt
> Bus::open: Can not get ibus-daemon's address.
> IBusInputContext::createInputContext: no connection to ibus-daemon
> sendto: Operation not permitted
> Segmentation fault
> amnesia@amnesia:~/linux-4765b8c-gitian-2d48b96/32$ ./bitcoin-qt
> Segmentation fault
> amnesia@amnesia:~/linux-4765b8c-gitian-2d48b96/32$ ./bitcoin-qt -proxy=127.0.0.1:9050
> Segmentation fault

Can you get a traceback?

Wladimir

Wladimir J. van der Laan in reply to Kristov Atlas permalink original

On Sat, Apr 26, 2014 at 7:29 PM, Kristov Atlas <author@anonymousbitcoinbook•com> wrote:

Quoted text (6 lines)
>>
> Hey Wladimir,
>
> Thanks for building this binary. The initial problem with Qt was
> resolved, and I was able to load the GUI that chooses my datadir. After
> choosing the default datadir, however, it segfaulted.

I've fixed the issue; at least on Debian 6 - which is a lot more conductive to development than tails :-). See https://github.com/bitcoin/bitcoin/pull/4094 for the gory details. New test build available:

https://download.visucore.com/bitcoin/linux-gitian-3cbabfa.tar.gz (sigs: https://download.visucore.com/bitcoin/linux-gitian-3cbabfa.tar.gz.sig )

Wladimir

Kristov Atlas in reply to Wladimir J. van der Laan permalink original

On 04/30/2014 03:02 AM, Wladimir wrote:

Quoted text (17 lines)
> On Sat, Apr 26, 2014 at 7:29 PM, Kristov Atlas
> <author@anonymousbitcoinbook•com> wrote:
>> Hey Wladimir,
>>
>> Thanks for building this binary. The initial problem with Qt was
>> resolved, and I was able to load the GUI that chooses my datadir. After
>> choosing the default datadir, however, it segfaulted.
> I've fixed the issue; at least on Debian 6 - which is a lot more
> conductive to development than tails :-). See
> https://github.com/bitcoin/bitcoin/pull/4094 for the gory details. New
> test build available:
>
> https://download.visucore.com/bitcoin/linux-gitian-3cbabfa.tar.gz
> (sigs: https://download.visucore.com/bitcoin/linux-gitian-3cbabfa.tar.gz.sig
> )
>
> Wladimir

Nice work! I can confirm that this dev binary runs smoothly in the latest version of Tails, v1.0. Screenshot proof here [1]. When this is incorporated into the next release of Bitcoin Core, will this make the usual Linux binary compatible, or will there be a special binary just for systems running the older Qt?

-Kristov

[1] http://postimg.org/image/p3ycwai9d/
Wladimir J. van der Laan in reply to Kristov Atlas permalink original

On Fri, May 2, 2014 at 7:46 PM, Kristov Atlas <author@anonymousbitcoinbook•com> wrote:

Quoted text (1 line)
> Nice work! I can confirm that this dev binary runs smoothly in the latest

Thanks for testing!

Quoted text (4 lines)
> version of Tails, v1.0. Screenshot proof here [1]. When this is incorporated
> into the next release of Bitcoin Core, will this make the usual Linux binary
> compatible, or will there be a special binary just for systems running the
> older Qt?

The normal binary will be compatible.

At some point we may add a binary that is linked to Qt 5.x as well for newer distributions, but compatibility is most important.

Wladimir