Jyrki Wahlstedt wrote:
>
> On 1.8.2007, at 12.31, Dave Page wrote:
>> Can you attach gdb/xcode at that point and get a backtrace?
>>
> You mean something like this:
...
> #17 0x00224ecb in isPgApp (app=@0xbffff5f4) at ./utils/misc.cpp:1090
> #18 0x00009948 in pgAdmin3::InitPaths (this=0x18d2b990) at
> ./pgAdmin3.cpp:766
> #19 0x000105ea in pgAdmin3::OnInit (this=0x18d2b990) at ./pgAdmin3.cpp:206
> #20 0x002dfa22 in wxAppConsole::CallOnInit (this=0x18d2b990) at
> /opt/local/include/wx-2.8/wx/app.h:76
> #21 0x17d68a46 in wxEntry (argc=@0x17e60038, argv=0x18d292c0) at
> ../src/common/init.cpp:433
> #22 0x00007e60 in main (argc=2, argv=0xbffffc3c) at ./pgAdmin3.cpp:104
>
> after 'gdb pgAdmin3 pid'?
Yup, exactly like that :-)
It's dying when it checks for the PostgreSQL utilities (isPgApp() runs a
utility with the --version option to check that it's a PostgreSQL util,
and not an EDB version). In ~/Library/Preferences/pgadmin3 Preferences,
do you have anything set for the PostgreSQLPath and EnterpriseDBPath
options?
If so, is there a pg_dump executable in either location? What does it
return if you run it with the --version option?
If those locations don't exist, it'll first look in the path for a
pg_dump, and then in a bunch of known locations (straight from the code):
path.Add(wxT("/usr/local/pgsql/bin"));
path.Add(wxT("/usr/local/bin"));
path.Add(wxT("/usr/bin"));
path.Add(wxT("/opt/local/pgsql/bin"));
path.Add(wxT("/opt/local/bin"));
path.Add(wxT("/opt/bin"));
...
path.Add(wxT("/usr/local/enterpriseDB/bin"));
path.Add(wxT("/usr/local/enterprisedb/bin"));
path.Add(wxT("/usr/local/edb/bin"));
path.Add(wxT("/usr/local/bin"));
path.Add(wxT("/usr/bin"));
path.Add(wxT("/opt/local/enterpriseDB/bin"));
path.Add(wxT("/opt/local/enterprisedb/bin"));
path.Add(wxT("/opt/local/edb/bin"));
path.Add(wxT("/opt/local/bin"));
Does it find pg_dump at all? If so, is it returning garbage perhaps?
Regards, Dave