Skip Menu |
 

This queue is for tickets about the libintl-perl CPAN distribution.

Report information
The Basics
Id: 54112
Status: resolved
Priority: 0/
Queue: libintl-perl

People
Owner: Nobody in particular
Requestors: gert.kello [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: csjewell [...] cpan.org
MIME-Version: 1.0
X-Spam-Status: No, hits=-4.1 required=8.0 tests=DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,PERLBUG_CONF,SPF_PASS
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/mixed; boundary=001485f9a5c4a44c80047e49989b
Message-ID: <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com>
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id 163E64D8014 for <bug-libintl-perl [...] rt.cpan.org>; Fri, 29 Jan 2010 03:41:52 -0500 (EST)
Received: (qmail 8587 invoked by uid 103); 29 Jan 2010 08:41:52 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 29 Jan 2010 08:41:52 -0000
Received: from mail-yw0-f188.google.com (HELO mail-yw0-f188.google.com) (209.85.211.188) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Fri, 29 Jan 2010 00:41:17 -0800
Received: by ywh26 with SMTP id 26so4231043ywh.12 for <bug-libintl-perl [...] rt.cpan.org>; Fri, 29 Jan 2010 00:41:06 -0800 (PST)
Received: by 10.91.55.39 with SMTP id h39mr752474agk.77.1264754465458; Fri, 29 Jan 2010 00:41:05 -0800 (PST)
Delivered-To: cpan-bug+libintl-perl [...] diesel.bestpractical.com
Subject: libintl-perl 1.20 unhandled win32 exception with strawberry Perl
Return-Path: <gert.kello [...] gmail.com>
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=nJo1f/HUC63IHxHhxD1+yTZO/wfitHjSn041liEAhNgiWaXYzO0+hq8Phrh+qgAK2Z hIpFuPrQtsWzp063XFTckQUMTg0anFqvQuW0cEVpb+WM9TLXwwaTfTzWOqCQmZWT9o53 qy3QQYAZlwXCPDPgH+DKAMisAZPuNJJH9JPSc=
X-Original-To: bug-libintl-perl [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=X1aWrj95Ru2FBGvzMp+EZqbsdWg1obHQF2qRSwzcJWg=; b=vsPd8X1WUNOOFnqSR9n9D8iXdG/7fU4N7+qOTRrEz8wscFya2g1c0elXNe8U28Ck15 V8xduJRWfkWXBara38a+gSAKwQjsUg+xt0mu+vJJO+E/IKih3itnp4ZWXKq3vwcckXd0 8t44f6QxdBLhw0Lj9mEtRa6iVxI4WjGj8qu70=
Date: Fri, 29 Jan 2010 10:41:05 +0200
X-Spam-Level: *
To: bug-libintl-perl [...] rt.cpan.org
From: Gert Kello <gert.kello [...] gmail.com>
Content-Length: 0
Content-Type: multipart/alternative; boundary=001485f9a5c4a44c79047e499899
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 833
Download (untitled) / with headers
text/plain 833b
Hi. I'm trying to install the LibIntl-Perl module from CPAN (G/GU/GUIDO/libintl-perl-1.20.tar.gz) using strawberry perl, but it raises an unhandled win32 exception in perl.exe when doing ./tests/03bindtextdomain_xs.t. Screenshot attached (yet it is very uninformative) Also attached CPAN output in two log files, before & after the exception occurred. Well, I assume the after part is not that interesting anymore. I also asked about it in #win32<http://widget.mibbit.com/?settings=1c154d53c72ad8cfdfab3caa051b30a2&server=irc.perl.org&channel=%23win32&noServerTab=false&noServerNotices=true&noServerMotd=true&autoConnect=true>channel at irc.perl.org, and they suggested sending that e-mail. Perl version is info is in attached perlV.txt file Let me know if You need any additional information about the system I'm running. Gert
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 958
X-Attachment-ID: f_g50q089q3
content-type: text/plain; charset="utf-8"; name="perlV.txt"
content-disposition: attachment; filename="perlV.txt"
Content-Transfer-Encoding: base64
X-RT-Original-Encoding: US-ASCII
Content-Length: 2336
Download perlV.txt
text/plain 2.2k

Message body is not shown because sender requested not to inline it.

X-Attachment-ID: f_g50ph18u0
content-type: image/png; name="UnhandledException.png"
content-disposition: attachment; filename="UnhandledException.png"
Content-Transfer-Encoding: base64
Content-Length: 6222

Message body is not shown because sender requested not to inline it.

X-Attachment-ID: f_g50psqfy1
content-type: application/octet-stream; name="BeforeException.log"
content-disposition: attachment; filename="BeforeException.log"
Content-Transfer-Encoding: base64
Content-Length: 22329
Download BeforeException.log
application/octet-stream 21.8k

Message body not shown because it is not plain text.

X-Attachment-ID: f_g50psz8e2
content-type: application/octet-stream; name="AfterException.log"
content-disposition: attachment; filename="AfterException.log"
Content-Transfer-Encoding: base64
Content-Length: 27838
Download AfterException.log
application/octet-stream 27.1k

Message body not shown because it is not plain text.

MIME-Version: 1.0
In-Reply-To: <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18075-1264763488-1261.54112-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 843
Download (untitled) / with headers
text/plain 843b
Hi, the XS version of libintl-perl is an extremely simple wrapper around the gettext library installed on the system. It just passes function arguments from Perl to C, and the return value back from C to Perl. If this was a problem, your Perl wouldn't work at all. It is next to impossible that this is a bug in libintl-perl, and very unlikely that it is a bug in your Perl interpreter. I'm almost sure that the culprit is gettext library on your system. You can test that by re-writing the test in C. This is relatively straightforward. If you have the same exception, you know that it is not a Perl related problem. You may also want to have a look at Locale::Messages::select_package(). You can deactivate the XS version altogether, and only use the pure Perl version. You will not see a big performance penalty. Cheers, Guido
CC: csjewell [...] cpan.org
MIME-Version: 1.0
X-Spam-Status: No, hits=-0.1 required=8.0 tests=DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS
In-Reply-To: <rt-3.8.HEAD-18075-1264763488-111.54112-6-0 [...] rt.cpan.org>
References: <RT-Ticket-54112 [...] rt.cpan.org> <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com> <rt-3.8.HEAD-18075-1264763488-111.54112-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Message-ID: <c649a0b81001290328n670ff4d3m214c4d12f2055214 [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=0016e640d4c8ca8a9e047e4bedde
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id 0F68B4D8014 for <bug-libintl-perl [...] rt.cpan.org>; Fri, 29 Jan 2010 08:15:01 -0500 (EST)
Received: (qmail 24987 invoked by uid 103); 29 Jan 2010 11:28:21 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 29 Jan 2010 11:28:21 -0000
Received: from mail-yw0-f188.google.com (HELO mail-yw0-f188.google.com) (209.85.211.188) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Fri, 29 Jan 2010 03:28:15 -0800
Received: by ywh26 with SMTP id 26so4478117ywh.12 for <bug-libintl-perl [...] rt.cpan.org>; Fri, 29 Jan 2010 03:28:04 -0800 (PST)
Received: by 10.91.163.4 with SMTP id q4mr914391ago.13.1264764483962; Fri, 29 Jan 2010 03:28:03 -0800 (PST)
Delivered-To: cpan-bug+libintl-perl [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #54112] libintl-perl 1.20 unhandled win32 exception with strawberry Perl
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rmuEcCNk2lqpuoePBq+RC9IRq+y3HKDq6G9rEBix+2HRIesj88gdE+lC8r+JEXtsMU 1j5E77by6c0TkZtyD0U3pnKcsWdCdqoxKWpJVy3uIpbyyONukFsLSZJaXrvrPdDXJ6wQ Hd1jFhv6r4VbUpVd5eLCAdhqemBcFcdqcsdDE=
Return-Path: <gert.kello [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Oift0Z2HHVLJrnjYguFy+Zz3z5vumj+76IuxnAzDDnc=; b=WQjPhxtYQo0blg+GJEZWlIZpy7elss8YBn0UqhEE2eGsDdUH3G2US7pGg1t5OkOQjd e9lnnXl6G3y1PJCDRM7hNLdiar2dPTjdGk3nnPElV4I0CuJGvGqWR3IDe+tMfvSTa/LQ f7W8V8eAc8IPCUVk5cQ6Mv8xsVn1bX1gEM5uM=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-libintl-perl [...] rt.cpan.org
Date: Fri, 29 Jan 2010 13:28:03 +0200
X-Spam-Level: *
To: bug-libintl-perl [...] rt.cpan.org
From: Gert Kello <gert.kello [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-18223-1264770912-551.54112-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 321
Download (untitled) / with headers
text/plain 321b
Hi. Actually I would assume that the libintl-perl & strawberry perl maintainers would sort it out (disable the the XS version for strawberry or provide "working" copy of gettext library) BTW, do You check during install that the gettext library is present in system? As far as I can tell, it is not in my PATH... Gert
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 358
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-18223-1264770912-551.54112-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <RT-Ticket-54112 [...] rt.cpan.org> <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com> <rt-3.8.HEAD-18075-1264763488-111.54112-6-0 [...] rt.cpan.org> <c649a0b81001290328n670ff4d3m214c4d12f2055214 [...] mail.gmail.com> <rt-3.8.HEAD-18223-1264770912-551.54112-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18077-1264776192-1762.54112-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1218
Download (untitled) / with headers
text/plain 1.1k
Am Fr 29. Jan 2010, 08:15:12, gert.kello@gmail.com schrieb: Show quoted text
> Hi. > > Actually I would assume that the libintl-perl & strawberry perl
maintainers Show quoted text
> would sort it out (disable the the XS version for strawberry or provide > "working" copy of gettext library) > > BTW, do You check during install that the gettext library is present in > system? As far as I can tell, it is not in my PATH...
When you build libintl-perl, the first line of output reads "Checking whether we can compile the XS version ...". Does that answer your question? About the rest: I have never heard of strawberry perl before, I don't have a working MS-DOS aka Windows installation, leave alone Visual C or whatever. How should I be able to sort that out for you? The binding (libintl-perl), the script interpreter (strawberry perl) or the library (gettext) cause the crash, and it is highly unlikely that the binding is the culprit in this case. Please ask the maintainers of strawberry perl whether they can reproduce the problem on their machines. They have at least the same operating system. I will send you a bottle of good Bulgarian wine if you can prove me that a bug in libintl-perl causes this crash. Cheers, Guido Show quoted text
> > Gert
MIME-Version: 1.0
X-Spam-Status: No, hits=-0.1 required=8.0 tests=DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS
In-Reply-To: <rt-3.8.HEAD-18077-1264776192-746.54112-6-0 [...] rt.cpan.org>
References: <RT-Ticket-54112 [...] rt.cpan.org> <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com> <rt-3.8.HEAD-18075-1264763488-111.54112-6-0 [...] rt.cpan.org> <c649a0b81001290328n670ff4d3m214c4d12f2055214 [...] mail.gmail.com> <rt-3.8.HEAD-18223-1264770912-551.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18077-1264776192-746.54112-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Message-ID: <c649a0b81001300824u60122641ifbc0bb4c9546550d [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=001485f91cbaea7d75047e643064
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id 240EC4D8014 for <bug-libintl-perl [...] rt.cpan.org>; Sat, 30 Jan 2010 11:25:36 -0500 (EST)
Received: (qmail 2863 invoked by uid 103); 30 Jan 2010 16:25:35 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 30 Jan 2010 16:25:35 -0000
Received: from mail-yw0-f178.google.com (HELO mail-yw0-f178.google.com) (209.85.211.178) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Sat, 30 Jan 2010 08:25:00 -0800
Received: by ywh8 with SMTP id 8so2858211ywh.3 for <bug-libintl-perl [...] rt.cpan.org>; Sat, 30 Jan 2010 08:24:49 -0800 (PST)
Received: by 10.91.19.17 with SMTP id w17mr2180740agi.54.1264868689345; Sat, 30 Jan 2010 08:24:49 -0800 (PST)
Delivered-To: cpan-bug+libintl-perl [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #54112] libintl-perl 1.20 unhandled win32 exception with strawberry Perl
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EFqw48arZf/B3/JD6gwg7O4ZcVLcYZFPMtX6YCP3SpkmvnZ4OiJ7GZ2do0tRwJCmFa G4reneQGdWX5DiWrPEEhFLJ75G/3P0onatuSa8yWXzZBtcHE3K3EQY1bP7cKYgOJm2KY gx0HIb969V0GzgSTO17Ici5ZZqC4UZv+m2t98=
Return-Path: <gert.kello [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=u0VRwg8AeX02mm+0LdiZYdDLFV5ryk1DQ2kx7trWBmM=; b=JP6uv0DeRiKHuBiAw/EvR4AFvYSOW8AA/8+2rtZIKlBF92ie79G/oVTtBn7lndW6iN /P8foIUEWd1uzklw1z9K1IRpzQyQrNXQidnxPhbe0stkd8MFnmRmlONL2y/zt+SAzYmH ai1/hrpLMRjXLG1sHgsaQ1x/W7yeW4xrNMn8k=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-libintl-perl [...] rt.cpan.org
Date: Sat, 30 Jan 2010 18:24:49 +0200
X-Spam-Level: *
To: bug-libintl-perl [...] rt.cpan.org
From: Gert Kello <gert.kello [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-18075-1264868752-680.54112-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1819
Download (untitled) / with headers
text/plain 1.7k
Show quoted text
>
> > > > BTW, do You check during install that the gettext library is present in > > system? As far as I can tell, it is not in my PATH...
> > When you build libintl-perl, the first line of output reads "Checking > whether we can compile the XS version ...". Does that answer your question? > >
Well, I also did read the README.win32, it did talk about ActiveState perl & skipping the xs version. For some reason I thought You are checking the Perl interpreter... The binding (libintl-perl), the script interpreter (strawberry perl) or Show quoted text
> the library (gettext) cause the crash, and it is highly unlikely that > the binding is the culprit in this case. Please ask the maintainers of > strawberry perl whether they can reproduce the problem on their > machines. They have at least the same operating system. >
My first call was them. And they suggested to report here. I narrowed down this problem a bit: gettext_xs.pm file, line 136 sub bindtextdomain ($;$) { my ($domain, $directory) = @_; if (defined $domain && length $domain && defined $directory && length $directory (I added some line breaks to set comments) seems like the "defined $directory" causes that error when called like my $bound_domain = bindtextdomain 'existing'; 03bindtextdomain_xs.t, line 30 if I comment out the "&& defined $directory && length $directory" part, then error does not happen anymore (it happens if just the "&& length $directory" is commented out) It also does not happen if called is modified to be my $bound_domain = bindtextdomain 'existing', '1'; Really sounds like something has messed up the memory structures.. Unfortunately I'm really green in the whole perl area (newbie in perl itself, c/c++ and also in gnu toolchain). so it really takes me time to find out the error reasons... Regards, Gert
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 2550
CC: csjewell [...] cpan.org
MIME-Version: 1.0
X-Spam-Status: No, hits=-0.1 required=8.0 tests=DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS
In-Reply-To: <c649a0b81001300824u60122641ifbc0bb4c9546550d [...] mail.gmail.com>
References: <RT-Ticket-54112 [...] rt.cpan.org> <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com> <rt-3.8.HEAD-18075-1264763488-111.54112-6-0 [...] rt.cpan.org> <c649a0b81001290328n670ff4d3m214c4d12f2055214 [...] mail.gmail.com> <rt-3.8.HEAD-18223-1264770912-551.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18077-1264776192-746.54112-6-0 [...] rt.cpan.org> <c649a0b81001300824u60122641ifbc0bb4c9546550d [...] mail.gmail.com>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Message-ID: <c649a0b81002010153l74ff752fj25dfe783f1c4c65d [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=001485f91cba657598047e86f6dd
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id DFED54D8014 for <bug-libintl-perl [...] rt.cpan.org>; Mon, 1 Feb 2010 04:54:38 -0500 (EST)
Received: (qmail 17251 invoked by uid 103); 1 Feb 2010 09:54:37 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 1 Feb 2010 09:54:37 -0000
Received: from mail-yx0-f176.google.com (HELO mail-yx0-f176.google.com) (209.85.210.176) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 01 Feb 2010 01:54:02 -0800
Received: by yxe6 with SMTP id 6so9119410yxe.13 for <bug-libintl-perl [...] rt.cpan.org>; Mon, 01 Feb 2010 01:53:51 -0800 (PST)
Received: by 10.91.19.17 with SMTP id w17mr3641779agi.54.1265018031404; Mon, 01 Feb 2010 01:53:51 -0800 (PST)
Delivered-To: cpan-bug+libintl-perl [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #54112] libintl-perl 1.20 unhandled win32 exception with strawberry Perl
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=I2QEht90GAeVmKpp5tROHQVgARnDPyp8mzb1PUciyEGh6UBMjI5gdDeQe4Wi0JqgVh fC2Xxsf+a5U9Vr3xOUqpcilzpWHdmpA+/udV1bccsJ2ZA1T15kTnHBp8orKNQEES+Hz0 Wd3HuaQlDNq0+WNtAyYXvWXl2fB6PxjrStWGY=
Return-Path: <gert.kello [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=07h6ivJe94e4gToDfbDo0zzUBHTCSxHMnvNxyShqFik=; b=tx5hIqs2VxECcc8zcFgj35FHyLKTWDRXzCW+nuufFW5Um0lI6UWY+ttCNH2J8iZCAd bbl91qP/ottWOjAVk8WFaB01osm373Hwf0LBO+L1RxupDetxZpkRu/mRbWTWK7NnzV58 WndAJjfp/gG1D7fv0WJC2SbBttzqKuBucIcXk=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-libintl-perl [...] rt.cpan.org
Date: Mon, 1 Feb 2010 11:53:51 +0200
X-Spam-Level: *
To: bug-libintl-perl [...] rt.cpan.org
From: Gert Kello <gert.kello [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-18076-1265018128-388.54112-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 2215
Download (untitled) / with headers
text/plain 2.1k
Show quoted text
> > > The binding (libintl-perl), the script interpreter (strawberry perl) or
>> the library (gettext) cause the crash, and it is highly unlikely that >> the binding is the culprit in this case. Please ask the maintainers of >> strawberry perl whether they can reproduce the problem on their >> machines. They have at least the same operating system. >>
> > > if I comment out the "&& defined $directory && length $directory" part, > then error does not happen anymore (it happens if just the "&& length > $directory" is commented out) It also does not happen if called is modified > to be > my $bound_domain = bindtextdomain 'existing', '1'; >
I feel SO stupid at moment... Well, digging a bit into source & getting my perl debugger to work again: The following calls to bindtextdomain fail: return &Locale::gettext_xs::_bindtextdomain; return &Locale::gettext_xs::_bindtextdomain('',''); return &Locale::gettext_xs::_bindtextdomain('existing'); The following ones work: return &Locale::gettext_xs::_bindtextdomain('existing', '.'); return &Locale::gettext_xs::_bindtextdomain('', '.'); return &Locale::gettext_xs::_bindtextdomain(undef(), '.'); Seems to be caused by the error made while porting gettext into win32. The original bindtextdomain function is char * BINDTEXTDOMAIN (const char *domainname, const char *dirname) { set_binding_values (domainname, &dirname, NULL); return (char *) dirname; } but seems like the gnuwin32 port ( http://gnuwin32.sourceforge.net/packages/gettext.htm) misses the safeguard for NULL dirname char * BINDTEXTDOMAIN (const char *domainname, const char *dirname) { if (!access (dirname, R_OK)) { set_binding_values (domainname, &dirname, NULL); return (char *) dirname; } else { char *locale_dirname, *installdir = strdup (dirname), *s; if ((s = strrchr (installdir, '/'))) *s = '\0'; if ((s = strrchr (installdir, '/'))) *s = '\0'; locale_dirname = relocatex (installdir, dirname); set_binding_values (domainname, (const char **) &locale_dirname, NULL); if (installdir) free (installdir); return (char *) locale_dirname; } } I will carry this case over to gnuwin32 Gert
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 3131
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-18076-1265018128-388.54112-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <RT-Ticket-54112 [...] rt.cpan.org> <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com> <rt-3.8.HEAD-18075-1264763488-111.54112-6-0 [...] rt.cpan.org> <c649a0b81001290328n670ff4d3m214c4d12f2055214 [...] mail.gmail.com> <rt-3.8.HEAD-18223-1264770912-551.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18077-1264776192-746.54112-6-0 [...] rt.cpan.org> <c649a0b81001300824u60122641ifbc0bb4c9546550d [...] mail.gmail.com> <c649a0b81002010153l74ff752fj25dfe783f1c4c65d [...] mail.gmail.com> <rt-3.8.HEAD-18076-1265018128-388.54112-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18075-1265029896-1107.54112-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: csjewell [...] cpan.org
Content-Length: 303
Download (untitled) / with headers
text/plain 303b
Hi, can you try to git update libintl-perl? Alternatively, change gettext_xs/gettext_xs.xs lines 250-252 to read like this: /* Treat empty or undefined strings as NULL. */ if (!domain || domain[0] == '\000') XSRETURN_UNDEF; Does that fix your problem? Cheers, Guido
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-18075-1265029896-1107.54112-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <RT-Ticket-54112 [...] rt.cpan.org> <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com> <rt-3.8.HEAD-18075-1264763488-111.54112-6-0 [...] rt.cpan.org> <c649a0b81001290328n670ff4d3m214c4d12f2055214 [...] mail.gmail.com> <rt-3.8.HEAD-18223-1264770912-551.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18077-1264776192-746.54112-6-0 [...] rt.cpan.org> <c649a0b81001300824u60122641ifbc0bb4c9546550d [...] mail.gmail.com> <c649a0b81002010153l74ff752fj25dfe783f1c4c65d [...] mail.gmail.com> <rt-3.8.HEAD-18076-1265018128-388.54112-0-0 [...] rt.cpan.org> <rt-3.8.HEAD-18075-1265029896-1107.54112-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18077-1265030341-790.54112-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: csjewell [...] cpan.org
Content-Length: 523
Download (untitled) / with headers
text/plain 523b
Am Mo 01. Feb 2010, 08:11:37, GUIDO wrote: Show quoted text
> /* Treat empty or undefined strings as NULL. */ > if (!domain || domain[0] == '\000') > XSRETURN_UNDEF; > > Does that fix your problem?
If yes, the case is pretty clear. Your (C) version of bindtextdomain() segfaults if it receives a NULL pointer for the first argument (the textdomain). The GNU and Solaris version obviously handles this case gracefully. I don't think that this has anything to do with you Perl interpreter. Cheers, Guido
MIME-Version: 1.0
X-Spam-Status: No, hits=-0.1 required=8.0 tests=DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS
In-Reply-To: <rt-3.8.HEAD-18077-1265030342-710.54112-6-0 [...] rt.cpan.org>
References: <RT-Ticket-54112 [...] rt.cpan.org> <rt-3.8.HEAD-18075-1264763488-111.54112-6-0 [...] rt.cpan.org> <c649a0b81001290328n670ff4d3m214c4d12f2055214 [...] mail.gmail.com> <rt-3.8.HEAD-18223-1264770912-551.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18077-1264776192-746.54112-6-0 [...] rt.cpan.org> <c649a0b81001300824u60122641ifbc0bb4c9546550d [...] mail.gmail.com> <c649a0b81002010153l74ff752fj25dfe783f1c4c65d [...] mail.gmail.com> <rt-3.8.HEAD-18076-1265018128-388.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18075-1265029896-1107.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18077-1265030342-710.54112-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Message-ID: <c649a0b81002011238p200efd96r389da682f0dd59da [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=001636284d8e6525d2047e8ff62c
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id 2A14119B8020 for <bug-libintl-perl [...] rt.cpan.org>; Mon, 1 Feb 2010 15:38:52 -0500 (EST)
Received: (qmail 11767 invoked by uid 103); 1 Feb 2010 20:38:52 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 1 Feb 2010 20:38:52 -0000
Received: from mail-yx0-f202.google.com (HELO mail-yx0-f202.google.com) (209.85.210.202) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 01 Feb 2010 12:38:17 -0800
Received: by yxe40 with SMTP id 40so1451108yxe.27 for <bug-libintl-perl [...] rt.cpan.org>; Mon, 01 Feb 2010 12:38:06 -0800 (PST)
Received: by 10.90.237.4 with SMTP id k4mr1032508agh.99.1265056686089; Mon, 01 Feb 2010 12:38:06 -0800 (PST)
Delivered-To: cpan-bug+libintl-perl [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #54112] libintl-perl 1.20 unhandled win32 exception with strawberry Perl
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vlU1px1a1nqi0K3P8ANtEcKjrsmwBEPqhYQth/21ox8C74qSFya0U6FJii0Qb4fe4k 5cWZe2Z7ECvXP9YbEKPZIBAFWAtdfdL0HiT66RlaGVGgukAZVId13ZQcsCxan6nx+UO5 GOi5trJqHenytFsQx+n8qPcWXcRH8yre0XqAc=
Return-Path: <gert.kello [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=NQeP/2gl62SesMoQ+opE/+yPDOzoczPKZ9aOMswd9H8=; b=tZgA/G0+u4RzUqxZ77SifmLydDsEBXGST07ilzc/mrBLylf3XrDZ8U+kSr6GnaViwJ KcCXfs6ORc15EaQLGF0cVFL7W9h+UCA18ZhXhqxGE6kr402dNcHu+yDveWC3DHFdt0S+ Q/zTAFTVmU567Dh1Sl3kuR4LuXqLk6vGJsQIc=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-libintl-perl [...] rt.cpan.org
Date: Mon, 1 Feb 2010 22:38:06 +0200
X-Spam-Level: *
To: bug-libintl-perl [...] rt.cpan.org
From: Gert Kello <gert.kello [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-18077-1265056755-1165.54112-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 815
Download (untitled) / with headers
text/plain 815b
On 1 February 2010 15:19, GUIDO via RT <bug-libintl-perl@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=54112 > > > Am Mo 01. Feb 2010, 08:11:37, GUIDO wrote:
> > /* Treat empty or undefined strings as NULL. */ > > if (!domain || domain[0] == '\000') > > XSRETURN_UNDEF; > > > > Does that fix your problem?
> > If yes, the case is pretty clear. Your (C) version of bindtextdomain() > segfaults if it receives a NULL pointer for the first argument (the > textdomain). The GNU and Solaris version obviously handles this case > gracefully. > >
Hi. I tried to tell that the GnuWin32 port of gettext library has a problem that it segfaults if the "directory" parameter is NULL - GnuWin32 to blame here. It works fine if the "domain" parameter is NULL. Gert
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1331
CC: csjewell [...] cpan.org
MIME-Version: 1.0
X-Spam-Status: No, hits=-0.1 required=8.0 tests=DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS
In-Reply-To: <c649a0b81002011238p200efd96r389da682f0dd59da [...] mail.gmail.com>
References: <RT-Ticket-54112 [...] rt.cpan.org> <c649a0b81001290328n670ff4d3m214c4d12f2055214 [...] mail.gmail.com> <rt-3.8.HEAD-18223-1264770912-551.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18077-1264776192-746.54112-6-0 [...] rt.cpan.org> <c649a0b81001300824u60122641ifbc0bb4c9546550d [...] mail.gmail.com> <c649a0b81002010153l74ff752fj25dfe783f1c4c65d [...] mail.gmail.com> <rt-3.8.HEAD-18076-1265018128-388.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18075-1265029896-1107.54112-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-18077-1265030342-710.54112-6-0 [...] rt.cpan.org> <c649a0b81002011238p200efd96r389da682f0dd59da [...] mail.gmail.com>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Message-ID: <c649a0b81002012356m5739181u9cfd7c955d0a893e [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=0016e64713b23ad43b047e996f1b
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id D9FA24D8002 for <bug-libintl-perl [...] rt.cpan.org>; Tue, 2 Feb 2010 02:56:54 -0500 (EST)
Received: (qmail 4675 invoked by uid 103); 2 Feb 2010 07:56:54 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 2 Feb 2010 07:56:54 -0000
Received: from mail-yw0-f188.google.com (HELO mail-yw0-f188.google.com) (209.85.211.188) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 01 Feb 2010 23:56:19 -0800
Received: by ywh26 with SMTP id 26so7829848ywh.12 for <bug-libintl-perl [...] rt.cpan.org>; Mon, 01 Feb 2010 23:56:08 -0800 (PST)
Received: by 10.91.193.19 with SMTP id v19mr5082546agp.4.1265097368064; Mon, 01 Feb 2010 23:56:08 -0800 (PST)
Delivered-To: cpan-bug+libintl-perl [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #54112] libintl-perl 1.20 unhandled win32 exception with strawberry Perl
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=HAJ8HuVr3RF9LY7MnhYpRDmXudCfjwcOZCHqaXbsmhDhyEFwcfcGZxmPkotgbhNoKI Y3N77K30M0eEw3vktz/ro7BFNfJ60dK5VCeTAabls054QLqMXftbja+h2W15KpVLHaBc uFxU0WM+gs2FkfvEFcz+WYHSvz4xKCcyplzqg=
Return-Path: <gert.kello [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=St7/PhlWsXQm2VEhaNg6W1blW7AMdGXFyqRrQMViDGA=; b=CjvbYUlYZ5TV0MHTaPMaN6kx0vjzEQKuBNmEqSexqsolIz8XFfU6WGVZ0iWw12NyYq RI9JHk2LylF1trWF6Aag6XXj7E5mM//ZInOXcz0VYhpt2C1YtxEGd/U05hE8+61Qgmt4 37Lt3u1U1iXI00i9xpnUzLKkrmBAZQ+xr71KU=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-libintl-perl [...] rt.cpan.org
Date: Tue, 2 Feb 2010 09:56:08 +0200
X-Spam-Level: *
To: bug-libintl-perl [...] rt.cpan.org
From: Gert Kello <gert.kello [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-18076-1265097426-795.54112-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 96
Reported in GnuWin32 project: https://sourceforge.net/support/tracker.php?aid=2944447 Gert Show quoted text
>
Content-Type: text/html; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 373
MIME-Version: 1.0
In-Reply-To: <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <c649a0b81001290041l79e2478fnb4397c2face2d5c1 [...] mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-5829-1358180675-724.54112-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 10
Not a bug.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.