Обсуждение: string.cpp assertion failure
Hello, Using pgadmin3 1.2.0[*] on Fedora Core 3, I get the following error when trying to connect to a PostgreSQL 7.4.6 server on the same (local)host: src/common/string.cpp(1060): assert "nLen != (size_t)-1" failed. Do you want to stop the program? You can also choose [Cancel]to suppress further warnings. It turned out that the PostgreSQL server wasn't running. Still, a more user-friendly error message would be nice, I think. Note *: Installed from http://developer.pgadmin.org/ftp/release/FC3/pgadmin3-1.2.0-1.i686.rpm -- Greetings from Troels Arvin, Copenhagen, Denmark
Hello, On Wed, 01 Dec 2004 21:29:52 +0100, I wrote: > Using pgadmin3 1.2.0[*] on Fedora Core 3, I get the following error when > trying to connect to a PostgreSQL 7.4.6 server on the same (local)host: > > src/common/string.cpp(1060): assert "nLen != (size_t)-1" failed. > Do you want to stop the program? I now tried again, using a non-asserting build[1] on Fedora Core 3. When working in the en_US locale, I get the following error when trying to connect to a PostgreSQL instance which hasn't been started: Error connecting to the server: could not connect to server: Connection refusedIs the server running on host "127.0.0.1" and accepting TCP/IPconnections on port 5432? But when working in the da_DK locale, I get: En fejl opstod: Error connecting to the server: Is my translation buggy, or is it due to something else? By the way: Is there a timeout on how long pgadmin will try connecting? - I just made the error of setting the server address to 192.168.1.3 while not being on an 192.168/16 network and not having a 192.168/16 interface. pgadmin was unresponsive for a _long_ time, and I ended up killing it. Note 1: http://troels.arvin.dk/pgadmin/FC_1-3/ -- Greetings from Troels Arvin, Copenhagen, Denmark
Seems my mail was lost... So I resend. Here is what I was telling you. HTH Raphaël Hi, this has been reported on pgadmin-hackers: http://www.mail-archive.com/pgadmin-hackers@postgresql.org/msg04806.html Seems to be a libpq problem solved in 8.0. Note that the assert is due to a build with debug mode on which may not be good for a release ----Message d'origine---- >A: pgadmin-support@postgresql.org >De: Troels Arvin <troels@arvin.dk> >Sujet: Re: [pgadmin-support] string.cpp assertion failure >Date: Thu, 02 Dec 2004 10:39:08 +0100 > >Hello, > >On Wed, 01 Dec 2004 21:29:52 +0100, I wrote: >> Using pgadmin3 1.2.0[*] on Fedora Core 3, I get the following error when >> trying to connect to a PostgreSQL 7.4.6 server on the same (local)host: >> >> src/common/string.cpp(1060): assert "nLen != (size_t)-1" failed. >> Do you want to stop the program? > >I now tried again, using a non-asserting build[1] on Fedora Core 3. When >working in the en_US locale, I get the following error when trying to >connect to a PostgreSQL instance which hasn't been started: > Error connecting to the server: could not connect to server: > Connection refused > Is the server running on host "127.0.0.1" and accepting TCP/IP > connections on port 5432? > >But when working in the da_DK locale, I get: > > En fejl opstod: > Error connecting to the server: > >Is my translation buggy, or is it due to something else? > >By the way: >Is there a timeout on how long pgadmin will try connecting? - I just made >the error of setting the server address to 192.168.1.3 while not being on >an 192.168/16 network and not having a 192.168/16 interface. pgadmin was >unresponsive for a _long_ time, and I ended up killing it. > > >Note 1: >http://troels.arvin.dk/pgadmin/FC_1-3/ > >-- >Greetings from Troels Arvin, Copenhagen, Denmark > > > >---------------------------(end of broadcast)--------------------------- >TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > >
Troels Arvin wrote: > Hello, > > On Wed, 01 Dec 2004 21:29:52 +0100, I wrote: > >>Using pgadmin3 1.2.0[*] on Fedora Core 3, I get the following error when >>trying to connect to a PostgreSQL 7.4.6 server on the same (local)host: >> >> src/common/string.cpp(1060): assert "nLen != (size_t)-1" failed. >> Do you want to stop the program? > > > I now tried again, using a non-asserting build[1] on Fedora Core 3. When > working in the en_US locale, I get the following error when trying to > connect to a PostgreSQL instance which hasn't been started: > Error connecting to the server: could not connect to server: > Connection refused > Is the server running on host "127.0.0.1" and accepting TCP/IP > connections on port 5432? > > But when working in the da_DK locale, I get: > > En fejl opstod: > Error connecting to the server: > > Is my translation buggy, or is it due to something else? This is the *backend* translation, not the pgadmin side. It might be a good idea to check if the backend translation is ok, because incorrect format specifiers (probably %s for the server name in this case) might lead to undesired effects (AKA SEGV). Regards, Andreas
On Thu, 02 Dec 2004 18:49:25 +0000, Andreas Pflug wrote: >> En fejl opstod: >> Error connecting to the server: >> >> Is my translation buggy, or is it due to something else? > > This is the *backend* translation, not the pgadmin side. > It might be a good idea to check if the backend translation is ok, > because incorrect format specifiers (probably %s for the server name in > this case) might lead to undesired effects (AKA SEGV). I don't think that PostgreSQL has been translated to Danish at all. Could this be the problem. (Apart from this, I'm taking a look at Raphaël's notice.) -- Greetings from Troels Arvin, Copenhagen, Denmark
Troels Arvin wrote: > Hello, > > Using pgadmin3 1.2.0[*] on Fedora Core 3, I get the following error when > trying to connect to a PostgreSQL 7.4.6 server on the same (local)host: > > src/common/string.cpp(1060): assert "nLen != (size_t)-1" failed. > Do you want to stop the program? > You can also choose [Cancel] to suppress further warnings. > > It turned out that the PostgreSQL server wasn't running. Still, a more > user-friendly error message would be nice, I think. I'd suspect that this results from the known libpq bug (don't blame da_DK :-). Compiling wx without debug will help (which should be done for every distribution anyway). Regards, Andreas
----Message d'origine---- >A: pgadmin-support@postgresql.org >De: Troels Arvin <troels@arvin.dk> >Sujet: [pgadmin-support] string.cpp assertion failure >Date: Wed, 01 Dec 2004 21:29:52 +0100 > >Hello, > >Using pgadmin3 1.2.0[*] on Fedora Core 3, I get the following error when >trying to connect to a PostgreSQL 7.4.6 server on the same (local)host: > > src/common/string.cpp(1060): assert "nLen != (size_t)-1" failed. > Do you want to stop the program? > You can also choose [Cancel] to suppress further warnings. Hi, this has been reported on pgadmin-hackers: http://www.mail-archive.com/pgadmin-hackers@postgresql.org/msg04806.html Seems to be a libpq problem solved in 8.0. Note that the assert is due to a build with debug mode on which may not be good for a release. Devrim: did you enable debug for wx and/or pga3 when building the release ? Regards, Raphaël >It turned out that the PostgreSQL server wasn't running. Still, a more >user-friendly error message would be nice, I think. > > >Note *: Installed from >http://developer.pgadmin.org/ftp/release/FC3/pgadmin3-1.2.0-1.i686.rpm >
> -----Original Message----- > From: pgadmin-support-owner@postgresql.org > [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of > Troels Arvin > Sent: 01 December 2004 20:30 > To: pgadmin-support@postgresql.org > Subject: [pgadmin-support] string.cpp assertion failure > > Hello, > > Using pgadmin3 1.2.0[*] on Fedora Core 3, I get the following > error when trying to connect to a PostgreSQL 7.4.6 server on > the same (local)host: > > src/common/string.cpp(1060): assert "nLen != (size_t)-1" failed. > Do you want to stop the program? > You can also choose [Cancel] to suppress further warnings. > > It turned out that the PostgreSQL server wasn't running. > Still, a more user-friendly error message would be nice, I think. That would imply that the FC3 RPMs are debug builds. I thought that problem was fixed by Andreas anyway? Regards, Dave
Dave Page wrote: > > > >>-----Original Message----- >>From: pgadmin-support-owner@postgresql.org >>[mailto:pgadmin-support-owner@postgresql.org] On Behalf Of >>Troels Arvin >>Sent: 01 December 2004 20:30 >>To: pgadmin-support@postgresql.org >>Subject: [pgadmin-support] string.cpp assertion failure >> >>Hello, >> >>Using pgadmin3 1.2.0[*] on Fedora Core 3, I get the following >>error when trying to connect to a PostgreSQL 7.4.6 server on >>the same (local)host: >> >> src/common/string.cpp(1060): assert "nLen != (size_t)-1" failed. >> Do you want to stop the program? >> You can also choose [Cancel] to suppress further warnings. >> >>It turned out that the PostgreSQL server wasn't running. >>Still, a more user-friendly error message would be nice, I think. > > > That would imply that the FC3 RPMs are debug builds. I thought that > problem was fixed by Andreas anyway? The fix is to fix libpq... The asserts results from wxString changes, and suppressing it would require a private wx snapshot <shrug> Regards, Andreas