OS X loader failure (was Re: Beta2 - A Late Announcement)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема OS X loader failure (was Re: Beta2 - A Late Announcement)
Дата
Msg-id 18795.1033449310@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Beta2 - A Late Announcement  (Adam Witney <awitney@sghms.ac.uk>)
Список pgsql-general
Adam Witney <awitney@sghms.ac.uk> writes:
> [ bad shared library causes backend coredump on OS X ]

This patch seems to suppress the coredump:

http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/port/dynloader/darwin.c.diff?r1=1.5&r2=1.6

However, instead of a somewhat-useful error message on postmaster
stderr, you now get only "no message available".  This sucks :-(.
Apparently, asking not to crash overrides the default error handler
that prints the useful error message before crashing.

I applied the patch anyway, since a backend crash is considerably more
Not Acceptable than not telling you why the shlib can't be loaded.
But getting the error message too would be much better.  Apparently,
if we want the message too, we have to create a 'linkEdit' hook to print
it --- see
http://developer.apple.com/techpubs/macosx/DeveloperTools/MachORuntime/5rt_api_reference/_Object_Fil_e_Functions.html
for some pointers.

Any OSX users care to code up the error-printing routine?

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: composite types in 7.3
Следующее
От: Yury Bokhoncovich
Дата:
Сообщение: Re: 7.0 -> 7.2 Migration (oops)