From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Ferris Subject: bug#33999: CP437: Invalid Argument on init Date: Wed, 16 Jan 2019 07:43:30 -0800 Message-ID: References: <20190110192107.454e2cb8@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000089f478057f9524cf" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjnMJ-00031S-Ho for bug-guix@gnu.org; Wed, 16 Jan 2019 10:44:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjnMI-0004s4-7g for bug-guix@gnu.org; Wed, 16 Jan 2019 10:44:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34509) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjnMI-0004rq-1l for bug-guix@gnu.org; Wed, 16 Jan 2019 10:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gjnMH-0006gi-N3 for bug-guix@gnu.org; Wed, 16 Jan 2019 10:44:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20190110192107.454e2cb8@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 33999@debbugs.gnu.org --00000000000089f478057f9524cf Content-Type: text/plain; charset="UTF-8" Hey Danny, Sorry for the delay in response. I saw no behavior change until I added the (mount? #f) line. This fixed a number of services, but d-bus fails to start. I encounter further issues including X Server failing to start and the inability to log in (when I type in a valid username it immediately fails 3 times and prints the standard message... I don't have password hashes in my config, but IIRC last time I installed guix I was able to log in without setting a password either imperatively or declaratively). Due to the latter issue I was unable to test the program you posted, but it sounds like Ludovic was able to describe what would happen if I had been able to? I assume the non-d-bus errors are related to the lack of d-bus. I uploaded a new video of my startup at https://drive.google.com/file/d/1bVdiCM1BKAmY-1y1XydI4ol7BCCkQ2Xk/view?usp=drivesdk It's ~50s long, but seconds 20-45 are the system retrying d-bus a number of times. On Thu, Jan 10, 2019 at 10:21 AM Danny Milosavljevic wrote: > Also, if you want, please try the following program on the booted guix > system: > > #include > #include > #include > #include > > static iconv_t iconv_init_codepage(int codepage) > { > iconv_t result; > char codepage_name[16]; > snprintf(codepage_name, sizeof(codepage_name), "CP%d", codepage); > result = iconv_open(nl_langinfo(CODESET), codepage_name); > if (result == (iconv_t) - 1) { > printf("FOO\n"); > perror(codepage_name); > printf("BAR\n"); > } > return result; > } > > int main() { > setlocale(LC_ALL, ""); > iconv_init_codepage(437); > return 0; > } > > You'd have to put the above text into a file called "a.c", then invoke > > guix package -i gcc-toolchain > > Then invoke > > gcc -o a a.c > > Then invoke > > ./a > > I suspect it will also fail with the same error message. > > After that, please invoke > > iconv -l |grep -i cp437 > > It will probably either return nothing or even fail with an error message. > On Thu, Jan 10, 2019 at 10:21 AM Danny Milosavljevic wrote: > Also, if you want, please try the following program on the booted guix > system: > > #include > #include > #include > #include > > static iconv_t iconv_init_codepage(int codepage) > { > iconv_t result; > char codepage_name[16]; > snprintf(codepage_name, sizeof(codepage_name), "CP%d", codepage); > result = iconv_open(nl_langinfo(CODESET), codepage_name); > if (result == (iconv_t) - 1) { > printf("FOO\n"); > perror(codepage_name); > printf("BAR\n"); > } > return result; > } > > int main() { > setlocale(LC_ALL, ""); > iconv_init_codepage(437); > return 0; > } > > You'd have to put the above text into a file called "a.c", then invoke > > guix package -i gcc-toolchain > > Then invoke > > gcc -o a a.c > > Then invoke > > ./a > > I suspect it will also fail with the same error message. > > After that, please invoke > > iconv -l |grep -i cp437 > > It will probably either return nothing or even fail with an error message. > --00000000000089f478057f9524cf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey Danny,

Sorry for the delay in response. I saw no behavior change until I added the=20 (mount? #f) line. This fixed a number of services, but d-bus fails to=20 start. I encounter further issues including X Server failing to start=20 and the inability to log in (when I type in a valid username it=20 immediately fails 3 times and prints the standard message... I don't=20 have password hashes in my config, but IIRC last time I installed guix I was able to log in without setting a password either imperatively or=20 declaratively). Due to the latter issue I was unable to test the program yo= u posted, but it sounds like Ludovic was able to describe what would happen= if I had been able to? I assume the non-d-bus errors are related to the la= ck of d-bus.

I uploaded a new video of my startup = at https://drive.google.com/file/d/1bVdiCM1BKAmY-1y1= XydI4ol7BCCkQ2Xk/view?usp=3Ddrivesdk It's ~50s long, but seconds 20= -45 are the system retrying d-bus a number of times.

On Thu, Jan 10, 2019 at 10:21 AM Danny= Milosavljevic <dannym@scratchpost.org> wrote:
Also, if you want, please try = the following program on the booted guix system:

#include <stdio.h>
#include <locale.h>
#include <iconv.h>
#include <langinfo.h>

static iconv_t iconv_init_codepage(int codepage)
{
=C2=A0 =C2=A0 iconv_t result;
=C2=A0 =C2=A0 char codepage_name[16];
=C2=A0 =C2=A0 snprintf(codepage_name, sizeof(codepage_name), "CP%d&quo= t;, codepage);
=C2=A0 =C2=A0 result =3D iconv_open(nl_langinfo(CODESET), codepage_name); =C2=A0 =C2=A0 if (result =3D=3D (iconv_t) - 1) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 printf("FOO\n");
=C2=A0 =C2=A0 =C2=A0 =C2=A0 perror(codepage_name);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 printf("BAR\n");
=C2=A0 =C2=A0 }
=C2=A0 =C2=A0 return result;
}

int main() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 setlocale(LC_ALL, "");
=C2=A0 =C2=A0 =C2=A0 =C2=A0 iconv_init_codepage(437);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 return 0;
}

You'd have to put the above text into a file called "a.c", th= en invoke

guix package -i gcc-toolchain

Then invoke

gcc -o a a.c

Then invoke

./a

I suspect it will also fail with the same error message.

After that, please invoke

iconv -l |grep -i cp437

It will probably either return nothing or even fail with an error message.<= br>

On= Thu, Jan 10, 2019 at 10:21 AM Danny Milosavljevic <dannym@scratchpo= st.org> wrote:
Also, if you want, please try the following program on the booted gui= x system:

#include <stdio.h>
#include <locale.h>
#include <iconv.h>
#include <langinfo.h>

static iconv_t iconv_init_codepage(int codepage)
{
=C2=A0 =C2=A0 iconv_t result;
=C2=A0 =C2=A0 char codepage_name[16];
=C2=A0 =C2=A0 snprintf(codepage_name, sizeof(codepage_name), "CP%d&quo= t;, codepage);
=C2=A0 =C2=A0 result =3D iconv_open(nl_langinfo(CODESET), codepage_name); =C2=A0 =C2=A0 if (result =3D=3D (iconv_t) - 1) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 printf("FOO\n");
=C2=A0 =C2=A0 =C2=A0 =C2=A0 perror(codepage_name);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 printf("BAR\n");
=C2=A0 =C2=A0 }
=C2=A0 =C2=A0 return result;
}

int main() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 setlocale(LC_ALL, "");
=C2=A0 =C2=A0 =C2=A0 =C2=A0 iconv_init_codepage(437);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 return 0;
}

You'd have to put the above text into a file called "a.c", th= en invoke

guix package -i gcc-toolchain

Then invoke

gcc -o a a.c

Then invoke

./a

I suspect it will also fail with the same error message.

After that, please invoke

iconv -l |grep -i cp437

It will probably either return nothing or even fail with an error message.<= br>
--00000000000089f478057f9524cf--