Skip to content
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

[dev.icinga.com #10714] API is not working on wheezy #3705

Closed
icinga-migration opened this issue Nov 23, 2015 · 15 comments
Closed

[dev.icinga.com #10714] API is not working on wheezy #3705

icinga-migration opened this issue Nov 23, 2015 · 15 comments
Labels
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Nov 23, 2015

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10714

Created by rjunich on 2015-11-23 21:39:07 +00:00

Assignee: jflach
Status: Resolved (closed on 2016-01-11 14:45:04 +00:00)
Target Version: 2.4.2
Last Update: 2016-02-23 09:58:20 +00:00 (in Redmine)

Icinga Version: 2.4.0-1
Backport?: Already backported
Include in Changelog: 1

The api in version 2.4.0-1~debmon70+1 of icinga2 on a freshly install debian wheezy does not answer any requests.
The api feature was enabled as described in https://github.com/Icinga/icinga2/blob/master/doc/9-icinga2-api.md however when sending a request to the API nothing comes back.

The behaviour is the same whether the apiuser is configured or not.
Tests with a second node showed, that the nodes can communicate with each other.

Attachments

Changesets

2015-12-18 15:03:57 +00:00 by jflach 043abc6

Test openssl base64

refs #10714

2016-01-05 17:00:21 +00:00 by jflach 90dbc5c

Test openssl base64

It works

refs #10714

2016-01-11 08:49:39 +00:00 by jflach 3abeb02

Replace boost-base64 with an openssl implementation

refs #10714

2016-01-11 14:35:20 +00:00 by jflach 957cf31

Replace boost-base64 with an openssl implementation

Also add unit tests

fixes #10714

2016-02-23 08:57:18 +00:00 by jflach 0a6f15c

Replace boost-base64 with an openssl implementation

Also add unit tests

fixes #10714

Relations:

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Nov 23, 2015

Updated by mfriedrich on 2015-11-23 22:09:13 +00:00

  • Status changed from New to Feedback
  • Assigned to set to rjunich

Please clarify on "does not answer any requests". Run curl in verbose mode, trace the logs and attach their output here. Furthermore post your apiuser with obfuscated password.

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Nov 24, 2015

Updated by rjunich on 2015-11-24 08:54:09 +00:00

Hi dnsmichi,

the output of curl in verbose mode:

 curl -v -k -s -u root:icinga 'https://localhost:5665/v1'
* About to connect() to localhost port 5665 (#0)
*   Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 5665 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Request CERT (13):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using AES256-SHA
* Server certificate:
*        subject: CN=XXXXXXXXXX
*        start date: 2015-11-20 09:25:26 GMT
*        expire date: 2030-11-16 09:25:26 GMT
*        issuer: CN=Icinga CA
*        SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
* Server auth using Basic with user 'root'
> GET /v1 HTTP/1.1
> Authorization: Basic cm9vdDppY2luZ2E=
> User-Agent: curl/7.26.0
> Host: localhost:5665
> Accept: */*
> 

...and then it just hangs.

The apiuser config is just a copy of the documentation:

object ApiUser "root" {
  password = "icinga"
}

The icinga2.log shows the following, when trying to connect with curl:

[2015-11-24 09:50:09 +0100] information/ApiListener: New client connection (no client certificate)
@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Nov 24, 2015

Updated by louisgab on 2015-11-24 18:24:04 +00:00

Issue similar to 10666 (https://dev.icinga.org/issues/10666)

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Nov 25, 2015

Updated by rjunich on 2015-11-25 12:36:36 +00:00

Further experimenting showed, that it is possible to use the API if the password for the ApiUser is a single character:

object ApiUser "root" {
  password = "i"
}
@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Nov 26, 2015

Updated by gbeutner on 2015-11-26 06:49:26 +00:00

  • Relates set to 10666
@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Nov 26, 2015

Updated by gbeutner on 2015-11-26 06:50:15 +00:00

Can you attach gdb to Icinga 2 while one of the API calls is hanging? Please attach the output of "thread apply all bt full".

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Nov 26, 2015

Updated by rjunich on 2015-11-26 09:28:29 +00:00

Hi,

not sure if the following is what you wanted. Let me know if there is anything else you need.

Thread 18 (Thread 0x7ff66eb93700 (LWP 27116)):

#0  0x00007ff673b8c344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738b9cf3 in icinga::ThreadPool::WorkerThread::ThreadProc(icinga::ThreadPool::Queue&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 17 (Thread 0x7ff66ebd4700 (LWP 27117)):

#0  0x00007ff673b8c344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738b9cf3 in icinga::ThreadPool::WorkerThread::ThreadProc(icinga::ThreadPool::Queue&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 16 (Thread 0x7ff66ec15700 (LWP 27118)):

#0  0x00007ff673b8c344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738b9cf3 in icinga::ThreadPool::WorkerThread::ThreadProc(icinga::ThreadPool::Queue&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 15 (Thread 0x7ff66ec56700 (LWP 27119)):

#0  0x00007ff673b8c344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738b9cf3 in icinga::ThreadPool::WorkerThread::ThreadProc(icinga::ThreadPool::Queue&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 14 (Thread 0x7ff667fff700 (LWP 27120)):

#0  0x00007ff673b8c6bb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738e4ad9 in boost::condition_variable::timed_wait(boost::unique_lock&, boost::posix_time::ptime const&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673885b65 in icinga::ThreadPool::ManagerThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#3  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#4  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#5  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#6  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 13 (Thread 0x7ff66eb52700 (LWP 27121)):

#0  0x00007ff673b8c6bb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738a02d9 in icinga::Timer::TimerThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 12 (Thread 0x7ff66d4dc700 (LWP 27126)):

#0  0x00007ff673b8f43d in accept () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff67387852d in icinga::Socket::Accept() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff672e458be in icinga::ApiListener::ListenerThreadProc(boost::intrusive_ptr const&) () from /usr/lib/x86_64-linux-gnu/icinga2/libremote.so

No symbol table info available.

#3  0x00007ff672eeee14 in boost::detail::thread_data const&>, boost::_bi::list2, boost::_bi::value > > > >::run() () from /usr/lib/x86_64-linux-gnu/icinga2/libremote.so

No symbol table info available.

#4  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#5  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#6  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#7  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 11 (Thread 0x7ff66d49b700 (LWP 27127)):

#0  0x00007ff673b8c6bb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff66d7fff32 in icinga::CheckerComponent::CheckThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libchecker.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 10 (Thread 0x7ff66d45a700 (LWP 27128)):

#0  0x00007ff673b8c344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738e04bb in boost::condition_variable::wait(boost::unique_lock&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff67388118e in icinga::WorkQueue::WorkerThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#3  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#4  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#5  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#6  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 9 (Thread 0x7ff66d51d700 (LWP 27129)):

#0  0x00007ff673b8c6bb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738a02d9 in icinga::Timer::TimerThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 8 (Thread 0x7ff66d55e700 (LWP 27155)):

#0  0x00007ff671026d13 in poll () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#1  0x00007ff67389f9b3 in icinga::Process::IOThreadProc(int) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 7 (Thread 0x7ff66d419700 (LWP 27156)):

#0  0x00007ff671026d13 in poll () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#1  0x00007ff67389f9b3 in icinga::Process::IOThreadProc(int) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 6 (Thread 0x7ff66d397700 (LWP 27251)):

#0  0x00007ff671026d13 in poll () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#1  0x00007ff6738ba2b0 in icinga::SocketEvents::ThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#3  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#4  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#5  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 5 (Thread 0x7ff66d356700 (LWP 27252)):

#0  0x00007ff673b8c344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738e04bb in boost::condition_variable::wait(boost::unique_lock&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff67388118e in icinga::WorkQueue::WorkerThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#3  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#4  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#5  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#6  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 4 (Thread 0x7ff66d315700 (LWP 27257)):

#0  0x00007ff673b8c344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738e04bb in boost::condition_variable::wait(boost::unique_lock&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff67388118e in icinga::WorkQueue::WorkerThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#3  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#4  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#5  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#6  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 3 (Thread 0x7ff66d2d4700 (LWP 27420)):

#0  0x00007ff673b8c344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738e04bb in boost::condition_variable::wait(boost::unique_lock&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff67388118e in icinga::WorkQueue::WorkerThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#3  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#4  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#5  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#6  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 2 (Thread 0x7ff66d293700 (LWP 28122)):

#0  0x00007ff673b8c344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#1  0x00007ff6738e04bb in boost::condition_variable::wait(boost::unique_lock&) () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#2  0x00007ff67388118e in icinga::WorkQueue::WorkerThreadProc() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#3  0x00007ff673fa7629 in ?? () from /usr/lib/libboost_thread.so.1.49.0

No symbol table info available.

#4  0x00007ff673b87b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0

No symbol table info available.

#5  0x00007ff67103195d in clone () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#6  0x0000000000000000 in ?? ()

No symbol table info available.

Thread 1 (Thread 0x7ff673df6720 (LWP 27115)):

#0  0x00007ff67100148d in nanosleep () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#1  0x00007ff67102bb74 in usleep () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#2  0x00007ff6738b5f7d in icinga::Application::RunEventLoop() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#3  0x00007ff66df7bc27 in icinga::IcingaApplication::Main() () from /usr/lib/x86_64-linux-gnu/icinga2/libicinga.so

No symbol table info available.

#4  0x00007ff6738a63ea in icinga::Application::Run() () from /usr/lib/x86_64-linux-gnu/icinga2/libbase.so

No symbol table info available.

#5  0x00007ff6731d455e in icinga::DaemonCommand::Run(boost::program_options::variables_map const&, std::vector > const&) const () from /usr/lib/x86_64-linux-gnu/icinga2/libcli.so

No symbol table info available.

#6  0x0000000000412f44 in ?? ()

No symbol table info available.

#7  0x0000000000410ffa in ?? ()

No symbol table info available.

#8  0x00007ff670f74ead in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6

No symbol table info available.

#9  0x00000000004110cd in ?? ()

No symbol table info available.

#10 0x00007fffe20b5e98 in ?? ()

No symbol table info available.

#11 0x000000000000001c in ?? ()

No symbol table info available.

#12 0x0000000000000006 in ?? ()

No symbol table info available.

#13 0x00007fffe20b6f19 in ?? ()

No symbol table info available.

#14 0x00007fffe20b6f48 in ?? ()

No symbol table info available.

#15 0x00007fffe20b6f5a in ?? ()

No symbol table info available.

#16 0x00007fffe20b6f61 in ?? ()

No symbol table info available.

#17 0x00007fffe20b6f64 in ?? ()

No symbol table info available.

#18 0x00007fffe20b6f67 in ?? ()

No symbol table info available.

#19 0x0000000000000000 in ?? ()

No symbol table info available.
A debugging session is active.

Inferior 1 [process 27115] will be detached.

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Nov 30, 2015

Updated by louisgab on 2015-11-30 14:33:17 +00:00

  • File added non_root.txt

Similarly I experience a hang on ubuntu/precise when I use a user with a different name than "root". See attached gdb output.

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Dec 16, 2015

Updated by rjunich on 2015-12-16 08:50:33 +00:00

Hi everybody,

are there any news on this topic?
Can i help in any way? Do you need further informations?

regards
Roland

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Dec 17, 2015

Updated by mfriedrich on 2015-12-17 12:31:28 +00:00

  • Status changed from Feedback to Assigned
  • Assigned to changed from rjunich to jflach
@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Dec 17, 2015

Updated by jflach on 2015-12-17 16:30:40 +00:00

The culprit is Base64::Decode in lib/remote/base64.cpp
And it only fails when there is padding in the to-be-decoded base64 string.

Base64::Decode involves some boost templating typedefing black magic. Since there are no base64 functions in standard c** nor does the current boost trick work we may want to write our own or take a look at the base64 functionalities of openssl.

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Dec 18, 2015

Updated by jflach on 2015-12-18 11:21:31 +00:00

I have been testing an OpenSSL implementation of base64 vs our boost version
The setup was 256 64char strings to encode and decode.

openssl calls:

==28289== Events    : Ir
==28289== Collected : 4641375

boost calls:

==28342== Events    : Ir
==28342== Collected : 19501918

Looks like a good reason to use openssl, I still have to check whether those library functions work on age old systems

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Jan 11, 2016

Updated by jflach on 2016-01-11 14:45:04 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 957cf31.

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Feb 23, 2016

Updated by gbeutner on 2016-02-23 08:56:22 +00:00

  • Target Version set to 2.4.2
@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Feb 23, 2016

Updated by gbeutner on 2016-02-23 09:58:20 +00:00

  • Backport? changed from Not yet backported to Already backported
@icinga-migration icinga-migration added this to the 2.4.2 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.