Re: Latest SVN segfaults on Feisty

From: Dave Page <dpage(at)postgresql(dot)org>
To: Ivan Pavlov <ivan(dot)pavlov(at)gmail(dot)com>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Latest SVN segfaults on Feisty
Date: 2007-05-18 17:53:58
Message-ID: 464DE836.2010408@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Ivan Pavlov wrote:
>
>
> On 5/18/07, *Dave Page* <dpage(at)postgresql(dot)org
> <mailto:dpage(at)postgresql(dot)org>> wrote:
>
> I haven't seen a pgadmin logfile from you yet so I wouldn't know what is
> new and what isn't!
>
>
> What I meant is - all entries in the log are timestamped and there were
> only some month old sql errors in there.

Ahh, right.

> They don't help much unfortuantely. Can you fire it up in gdb and get a
> plain old back trace please?
>
>
> Here it is:
> #0 0xb77225ae in wxStringBase::find () from /usr/lib/libwx_baseu-2.8.so.0
> #1 0xb772534a in wxStringBase::find () from /usr/lib/libwx_baseu-2.8.so.0
> #2 0xb77253e4 in wxString::Find () from /usr/lib/libwx_baseu-2.8.so.0
> #3 0x08347dee in isPgApp ()
> #4 0x0807ace5 in pgAdmin3::InitPaths ()
> #5 0x0808168e in pgAdmin3::OnInit ()
> #6 0x08084d01 in wxAppConsole::CallOnInit ()
> #7 0xb7700250 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
> #8 0xb7700327 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
> #9 0x08075960 in main ()
>
> Seems to be wxBase problem - my version is 2.8.1.1-0ubuntu4 . Hmmm... I
> will install wxWidgets from source and recompile pgAdmin...

I just dusted off my FC6 VM, installed PostgreSQL 8.2.4 and wxGTK 2.8.4,
both from source and SVN-trunk builds and runs perfectly (all bar a
minor toolbar button sizing issue that you wouldn't notice unless you
stared at pgAdmin as much as I do!!).

The pgAdmin function it's dying in is this:

bool isPgApp(const wxString &app)
{
if (!wxFile::Exists(app))
return false;

wxArrayString output;

wxExecute(app + wxT(" --version"), output, 0);

if (output[0].Contains(wxT("PostgreSQL")))
return true;

return false;
}

Given that it appears to be bailing in wxStringBase::find, I'd guess
that's the "if (output[0].Contains(wxT("PostgreSQL")))" line. There's
nothing wrong with that, so I'd have to guess there's a problem with
your wx build.

I agree with your idea - grab wxGTK 2.8.4 and try rebuilding it from
scratch (there's a script in xtra/wx-build in the pgAdmin source tree to
build all the different combinations of build that we support).

Regards Dave

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Raphaël Enrici 2007-05-18 21:21:22 pgAdmin III 1.6.3 for debian etch uploaded.
Previous Message svn 2007-05-18 17:35:05 SVN Commit by dpage: r6309 - trunk/pgadmin3