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

LibC+libtool: libstdc++ compiled into libc not detected by libtool #23557

Open
fdellwing opened this issue Mar 12, 2024 · 0 comments
Open

LibC+libtool: libstdc++ compiled into libc not detected by libtool #23557

fdellwing opened this issue Mar 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fdellwing
Copy link
Contributor

pdfinfo (and all other poppler-utils) currently crash horrible if the gpgme dependency is compiled in:

36.736 [#0 pdfinfo(45:45)]: Terminating pdfinfo(45) due to signal 6
36.743 [#0 Finalizer Task(5:5)]: Backtrace:
0x00000000deadc0de  Kernel::ProcessorBase<Kernel::Processor>::switch_context(Kernel::Thread*&, Kernel::Thread*&) + 0x3be
0x00000000deadc0de  Kernel::Scheduler::context_switch(Kernel::Thread*) + 0x20a
0x00000000deadc0de  Kernel::Scheduler::pick_next() + 0x173
0x00000000deadc0de  Kernel::ProcessorBase<Kernel::Processor>::clear_critical() + 0x11e
0x00000000deadc0de  Kernel::Thread::die_if_needed() + 0x322
0x00000000deadc0de  syscall_handler + 0x1461
0x00000000deadc0de  syscall_entry + 0x51
0x000000006d82d3de  /usr/lib/libc.so: .text + 0x3de
0x000000006d833e30  /usr/lib/libc.so: .text + 0x6e30
0x000000006d839a9c  /usr/lib/libc.so: .text + 0xca9c
0x0000001d35b8755d  /usr/local/bin/pdfinfo: .text + 0xd55d
0x0000001d35b87724  /usr/local/bin/pdfinfo: .text + 0xd724
0x0000001d35c1547c  /usr/local/bin/pdfinfo: .text + 0x9b47c
0x0000001d35bc4952  /usr/local/bin/pdfinfo: .text + 0x4a952
0x0000000d25210bae  /usr/local/lib/libgpgmepp.so.6: .text + 0xcebae
0x0000000d251ddb98  /usr/local/lib/libgpgmepp.so.6: .text + 0x9bb98
0x000000000d5070c5  /usr/lib/Loader.so + 0x5f0c5
0x000000000d507101  /usr/lib/Loader.so + 0x5f101
0x000000000d500089  /usr/lib/Loader.so + 0x58089
0x000000000d501c45  /usr/lib/Loader.so + 0x59c45
0x000000000d4ad3d3  /usr/lib/Loader.so + 0x53d3
40.889 CrashReporter(46:47): --- Backtrace for thread #0 (TID 45) ---
40.895 CrashReporter(46:47): 0x000000126549802b: [/usr/lib/libsystem.so] syscall2 +0xb (syscall.cpp:25 => syscall.cpp:24)
40.900 CrashReporter(46:47): 0x000000006d82d3dd: [/usr/lib/libc.so] abort +0x26 (stdlib.cpp:387)
40.904 CrashReporter(46:47): 0x000000006d833e2f: [/usr/lib/libc.so] __assertion_failed +0x7f (assert.cpp:34)
40.908 CrashReporter(46:47): 0x000000006d839a9b: [/usr/lib/libc.so] free.localalias +0x4ab (malloc.cpp:489 => malloc.cpp:563)
40.925 CrashReporter(46:47): 0x0000001d35b8755c: [/usr/local/bin/pdfinfo] std::locale::_Impl::~_Impl() +0x8c ()
40.929 CrashReporter(46:47): 0x0000001d35b87723: [/usr/local/bin/pdfinfo] std::locale::operator=(std::locale const&) +0x93 (locale_classes.h:574 => locale.cc:124)
40.935 CrashReporter(46:47): 0x0000001d35c1547b: [/usr/local/bin/pdfinfo] std::ios_base::_M_init() +0x3b ()
40.939 CrashReporter(46:47): 0x0000001d35bc4951: [/usr/local/bin/pdfinfo] std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*) +0x11 ()
40.946 CrashReporter(46:47): 0x0000000d25210bad: [/usr/local/lib/libgpgmepp.so.6] std::ios_base::Init::Init() [clone .part.0] +0x29d (ios_init.cc:92)
40.951 CrashReporter(46:47): 0x0000000d251ddb97: [/usr/local/lib/libgpgmepp.so.6] _GLOBAL__sub_I.00090_globals_io.cc +0x17 (swdbresult.h:39 => globals_io.cc:109)

grafik

There are speculations in Discord that the reason is some conflict with libstdc++.a being compiled statically into gpgme even though it should be provided by our LibC.

https://discord.com/channels/830522505605283862/830807158047244329/1213232482896580618

fdellwing added a commit to fdellwing/serenity that referenced this issue Mar 12, 2024
We now link against `boost`, `lcms2` and `openjpeg`.

We also depend on `gpgme` but don't link against it because of SerenityOS#23557
fdellwing added a commit to fdellwing/serenity that referenced this issue Mar 12, 2024
We now link against `boost`, `lcms2` and `openjpeg`.

We also depend on `gpgme` but don't link against it because of SerenityOS#23557
fdellwing added a commit to fdellwing/serenity that referenced this issue Mar 12, 2024
We now link against `boost`, `lcms2` and `openjpeg`.

We also depend on `gpgme` but don't link against it because of SerenityOS#23557
fdellwing added a commit to fdellwing/serenity that referenced this issue Mar 13, 2024
We now link against `boost`, `lcms2` and `openjpeg`.

We also depend on `gpgme` but don't link against it because of SerenityOS#23557
fdellwing added a commit to fdellwing/serenity that referenced this issue Mar 13, 2024
We now link against `boost`, `lcms2` and `openjpeg`.

We also depend on `gpgme` but don't link against it because of SerenityOS#23557
fdellwing added a commit to fdellwing/serenity that referenced this issue Mar 29, 2024
We now link against `boost`, `lcms2` and `openjpeg`.

We also depend on `gpgme` but don't link against it because of SerenityOS#23557
fdellwing added a commit to fdellwing/serenity that referenced this issue Apr 4, 2024
We now link against `boost`, `lcms2` and `openjpeg`.

We also depend on `gpgme` but don't link against it because of SerenityOS#23557
timschumi pushed a commit that referenced this issue Apr 7, 2024
We now link against `boost`, `lcms2` and `openjpeg`.

We also depend on `gpgme` but don't link against it because of #23557
alimpfard pushed a commit to alimpfard/serenity that referenced this issue Apr 22, 2024
We now link against `boost`, `lcms2` and `openjpeg`.

We also depend on `gpgme` but don't link against it because of SerenityOS#23557
@kleinesfilmroellchen kleinesfilmroellchen added the bug Something isn't working label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants