From: Vladislav Zavjalov <slazav@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] armh + libjpeg + c++ exceptions
Date: Tue, 23 Jun 2020 12:49:48 +0300
Message-ID: <20200623094948.GA11840@imap.altlinux.org> (raw)
In-Reply-To: <ea01968d-89f2-6e04-a38b-17e67d22ec6e@basealt.ru>
On Tue, Jun 23, 2020 at 02:01:14AM +0400, Alexey Sheplyakov wrote:
> т.е. наш libjpeg исключения не поддерживает. Что и подтверждает
> пример из https://bugzilla.redhat.com/show_bug.cgi?id=101448
>
> Что со всем этим делать?
>
> 1. Выяснить, каковы накладные расходы на поддержку исключений
> 2. Решить, приемлемы ли они
> 3. Если да, то собрать GCC так, чтобы -funwind-tables была по умолчанию
> 4. Если нет, то перестать бросать исключения их C программ,
> или включать -funwind-tables только там, где без исключений никак не
> обойтись.
Спасибо за подробное объяснение!
В библиотеках C иногда используются callback'и,
и туда легко могут попасть исключения, если их использовать с C++.
И такую проблему может быть тяжело заметить.
Наверное, если не собирать вообще всё с -funwind-tables,
то было бы правильно уметь отлавливать такие ситуации.
Например, сделать какую-то добавку в rpm set provides/requires,
чтобы приложения, собранные с этим самым EXIDX зависели от библиотек
с EXIDX.
next prev parent reply other threads:[~2020-06-23 9:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-22 10:41 Vladislav Zavjalov
2020-06-22 14:39 ` Alexey Sheplyakov
2020-06-22 15:27 ` Alexey Sheplyakov
2020-06-22 15:46 ` Alexey Sheplyakov
2020-06-22 22:01 ` Alexey Sheplyakov
2020-06-23 9:49 ` Vladislav Zavjalov [this message]
2020-06-23 15:29 ` Alexey Sheplyakov
2020-06-23 16:49 ` Vladislav Zavjalov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200623094948.GA11840@imap.altlinux.org \
--to=slazav@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git