[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segmentation fault in dcigettext.c:925 using Apache + PHP
From: |
Wiebe Cazemier |
Subject: |
Re: Segmentation fault in dcigettext.c:925 using Apache + PHP |
Date: |
Tue, 9 Jun 2020 14:32:37 +0200 (CEST) |
----- Original Message -----
> From: "Bruno Haible" <bruno@clisp.org>
> To: "Wiebe Cazemier" <wiebe@halfgaar.net>
> Cc: bug-gettext@gnu.org
> Sent: Saturday, 6 June, 2020 17:12:01
> Subject: Re: Segmentation fault in dcigettext.c:925 using Apache + PHP
>
> The file you sent is a valid .mo file; in fact, it was (or could have been)
> generated by GNU msgfmt.
>
> The relevant code in glibc-2.27/intl/dcigettext.c is most likely correct;
> no algorithmic bug is known in this code for more than 8 years.
>
> The remaining likely possibility is that the application you are running has
> memory bugs (writes into arbitrary locations). I would recommend that you
> run this application under valgrind.
>
> Bruno
For completeness, using the messages.mo in a basic test works fine:
---------------
#include <stdio.h>
#include <stdlib.h>
#include <libintl.h>
#include <locale.h>
#define _(STRING) gettext(STRING)
int main()
{
setlocale (LC_ALL, "");
bindtextdomain ("messages", getenv("PWD"));
textdomain ("messages");
printf(_("Home"));
return EXIT_SUCCESS;
}
---------------------
# LANG=zh_CN.utf-8 ./ztest-gettext
主页
- Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Bruno Haible, 2020/06/06
- Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Wiebe Cazemier, 2020/06/07
- Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Bruno Haible, 2020/06/07
- Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Wiebe Cazemier, 2020/06/16
- Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Wiebe Cazemier, 2020/06/22
- Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Bruno Haible, 2020/06/24
- Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Wiebe Cazemier, 2020/06/25
- Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Bruno Haible, 2020/06/25
- Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Wiebe Cazemier, 2020/06/25
Re: Segmentation fault in dcigettext.c:925 using Apache + PHP,
Wiebe Cazemier <=