But when i try to initialize directory that will hold data PostgreSQL crashes:
# sudo -u _postgresql initdb -D /var/postgresql/data -U postgres -A md5 -W
The files belonging to this database system will be owned by user "_postgresql".
This user must also own the server process.

The database cluster will be initialized with locale C.
The default database encoding has accordingly been set to SQL_ASCII.
The default text search configuration will be set to "english".

I compiled PostgreSQL server 9.0.3 with debugging symbols (-ggdb).
Now i want to initialize postgres directory where it will store all data.
# gdb -q /usr/local/bin/initdb
(gdb) run -D /var/postgresql/data -U postgres -A md5 -W
Starting program: /usr/local/bin/initdb -D /var/postgresql/data -U postgres -A md5 -W
The files belonging to this database system will be owned by user "_postgresql".
This user must also own the server process.

The database cluster will be initialized with locale C.
The default database encoding has accordingly been set to SQL_ASCII.
The default text search configuration will be set to "english".