From: Sergey Vlasov <vsu@altlinux.ru> To: ALT Devel discussion list <devel@altlinux.ru> Subject: Re: [devel] Re: middleman vs pcre Date: Wed, 12 Nov 2003 12:49:42 +0300 Message-ID: <20031112094942.GF1775@sirius.home> (raw) In-Reply-To: <20031112094549.GB27099@basalt.office.altlinux.org> [-- Attachment #1: Type: text/plain, Size: 2685 bytes --] On Wed, Nov 12, 2003 at 12:45:49PM +0300, Stanislav Ievlev wrote: > On Wed, Nov 12, 2003 at 12:24:20PM +0300, Sergey Vlasov wrote: > > On Wed, Nov 12, 2003 at 11:32:49AM +0300, Stanislav Ievlev wrote: > > > On Tue, Nov 11, 2003 at 06:47:50PM +0300, Sergey Vlasov wrote: > > > > On Tue, Nov 11, 2003 at 08:36:26PM +0500, Andrey Rahmatullin wrote: > > > > Content-Description: signed data > > > > > В сообщении от 11 Ноябрь 2003 19:38 Sergey Vlasov написал(a): > > > > > > > > > > [...] > > > > > > Попробуйте запустить программу под valgrind - он умеет отлавливать > > > > > > подобные ошибки > > > > > [...] > > > > > > > > > > Ой блин... > > > > > > > > > > ==16664== Invalid write of size 4 > > > > > ==16664== at 0x403261F9: regcomp (in /lib/libc-2.2.6.so) > > > > > ==16664== by 0x806F536: reg_compile (regexp.c:33) > > > > > ==16664== by 0x804C4E4: global_general_insert (global.c:464) > > > > > ==16664== by 0x804ACE6: global_load (global.c:102) > > > > > ==16664== Address 0x412BE104 is 4 bytes after a block of size 12 alloc'd > > > > > ==16664== at 0x40026942: malloc (vg_replace_malloc.c:153) > > > > > ==16664== by 0x806610C: xmalloc (mem.c:35) > > > > > ==16664== by 0x806F51F: reg_compile (regexp.c:31) > > > > > ==16664== by 0x804C4E4: global_general_insert (global.c:464) > > > > > > > > > > И так кучу раз (похоже, что на каждый регэксп). > > > > > > > > Вот бардак... У этой дряни что, собственное левое определение regex_t > > > > (такая гадость иногда встречается)? > > > Если это намёк на pcre, то почему сразу дрянь. Имеет право. > > > Всё что связано с regex это weekalias (как просвятил меня Дима). У > > > pcre же есть очень удобный POSIX интерфейс с поддержкой расширений > > > perl. А уж если POSIX интерфейс, то и есть regex_t. Было бы > > > удивительно если бы она (pcre) использовала glibc'шный. > > > > Ну здесь-то явно используется regcomp из glibc. Т.е. где-то > > перепутались заголовки и библиотеки. > Наверное забыли -lpcreposix? Похоже на то. > > Против самой pcre я не выступаю. А вот pcreposix - это гадость, т.к. > > вполне может сломать работу POSIX regexp в других библиотеках (не > > glibc). > Не поломает, если будут использовать что-то одно ;) Поломает - если другая libxxx.so была скомпилирована с regex из glibc, а получит реализацию из libpcreposix.so. > >Следовало бы делать эту эмуляцию не прямым переопределением > > regcomp/regexec/..., а через #define regcomp __pcre_regcomp в > > <pcreposix.h> - тогда это бы влияло только на файлы, которые были > > скомпилированы с #include <pcreposix.h>. > Самое смешное, что теперь так и есть ;) Ну вот и прекрасно - видимо, на это уже кто-то наступил. [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-11-12 9:49 UTC|newest] Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-11-11 12:29 [devel] " Andrey Rahmatullin 2003-11-11 12:36 ` [devel] " Alexey Tourbin 2003-11-11 12:46 ` Andrey Rahmatullin 2003-11-11 13:03 ` Alexey Tourbin 2003-11-11 14:22 ` Andrey Rahmatullin 2003-11-11 14:38 ` Sergey Vlasov 2003-11-11 15:36 ` Andrey Rahmatullin 2003-11-11 15:42 ` Dmitry V. Levin 2003-11-11 15:47 ` Andrey Rahmatullin 2003-11-11 15:47 ` Sergey Vlasov 2003-11-12 8:32 ` Stanislav Ievlev 2003-11-12 9:24 ` Sergey Vlasov 2003-11-12 9:45 ` Stanislav Ievlev 2003-11-12 9:49 ` Sergey Vlasov [this message] 2003-11-12 12:31 ` Andrey Rahmatullin 2003-11-12 14:22 ` Andrey Rahmatullin 2003-11-12 14:39 ` Alexey Tourbin 2003-11-12 15:36 ` [devel] U: middleman-1.9.1-alt1 (was: middleman vs pcre) Andrey Rahmatullin 2003-11-11 14:39 ` [devel] Re: middleman vs pcre Sergey Vlasov 2003-11-11 14:53 ` Dmitry V. Levin 2003-11-11 14:57 ` Alexey Tourbin 2003-11-11 15:02 ` Sergey Vlasov 2003-11-11 12:57 ` [devel] " Stanislav Ievlev 2003-11-11 21:29 ` [devel] К вопросу о pcre Igor Tertishny 2003-11-11 21:48 ` Yuri N. Sedunov 2003-11-12 10:04 ` Igor Tertishny 2003-11-12 3:17 ` [devel] middleman-1.9-alt4: rebuild failed (was: middleman vs pcre) Andrey Rahmatullin 2003-11-12 8:33 ` [devel] " Alexey Tourbin 2003-11-12 8:34 ` [devel] " Stanislav Ievlev 2003-11-12 13:12 ` Andrey Rahmatullin 2003-11-13 8:40 ` Stanislav Ievlev
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=20031112094942.GF1775@sirius.home \ --to=vsu@altlinux.ru \ --cc=devel@altlinux.ru \ /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