pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedinitdb causes Segmentation fault
3+ messages / 2 participants
[nested] [flat]
* initdb causes Segmentation fault
@ 2009-02-15 22:34 Haluk Durmus <haluk_durmus@yahoo.de>
2009-02-16 08:16 ` Re: initdb causes Segmentation fault Vladimir Rusinov <vladimir@greenmice.info>
0 siblings, 1 reply; 3+ messages in thread
From: Haluk Durmus @ 2009-02-15 22:34 UTC (permalink / raw)
To: pgsql-admin
I'm running ubuntu 8.04 on
a Linux 2.6.24-22-generic #1 SMP Mon Nov 24 19:35:06 UTC 2008 x86_64 GNU/Linux
machine.
there was same porblem with preinstalation of progres and superuser.
So I tried to solve it by reinstall postgres 8.3 with apt-get after removing it with
sudo apt-get --purge remove $(aptitude search postgres|awk '/^i/{gsub(/^i.../,"");print}'|awk '{print $1}')
but results in segmentation fault when it comes to call initdb.
I downloaded PostgreSQL 8.3.6 single click installer which had also problems with initialization.
So I downloaded the source of PostgreSQL 8.3.6 and compiled and installed it.
But again when I have to run
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
it ends with Segmentation fault.
output of strace:
12050 --- SIGCHLD (Child exited) @ 0 (0) ---
12050 munmap(0x7f062d3d7000, 4096) = 0
12050 geteuid() = 1000
12050 open("/etc/passwd", O_RDONLY|0x80000 /* O_??? */) = -1 EACCES (Permission denied)
12050 geteuid() = 1000
12050 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
12050 +++ killed by SIGSEGV +++
thx in advance,
Haluk
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: initdb causes Segmentation fault
2009-02-15 22:34 initdb causes Segmentation fault Haluk Durmus <haluk_durmus@yahoo.de>
@ 2009-02-16 08:16 ` Vladimir Rusinov <vladimir@greenmice.info>
2009-02-17 19:46 ` Re: initdb causes Segmentation fault Haluk Durmus <haluk_durmus@yahoo.de>
0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Rusinov @ 2009-02-16 08:16 UTC (permalink / raw)
To: pgsql-admin
On Monday 16 February 2009 01:34:07 Haluk Durmus wrote:
> I'm running ubuntu 8.04 on
>
> a Linux 2.6.24-22-generic #1 SMP Mon Nov 24 19:35:06 UTC 2008 x86_64
> GNU/Linux machine.
>
> there was same porblem with preinstalation of progres and superuser.
> So I tried to solve it by reinstall postgres 8.3 with apt-get after
> removing it with sudo apt-get --purge remove $(aptitude search postgres|awk
> '/^i/{gsub(/^i.../,"");print}'|awk '{print $1}')
>
> but results in segmentation fault when it comes to call initdb.
>
> I downloaded PostgreSQL 8.3.6 single click installer which had also
> problems with initialization.
>
> So I downloaded the source of PostgreSQL 8.3.6 and compiled and installed
> it. But again when I have to run
>
> /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
>
> it ends with Segmentation fault.
>
> output of strace:
>
> 12050 --- SIGCHLD (Child exited) @ 0 (0) ---
> 12050 munmap(0x7f062d3d7000, 4096) = 0
> 12050 geteuid() = 1000
> 12050 open("/etc/passwd", O_RDONLY|0x80000 /* O_??? */) = -1 EACCES
> (Permission denied) 12050 geteuid() = 1000
> 12050 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> 12050 +++ killed by SIGSEGV +++
Are you using selinux or some another security framework?
Also, check /etc/passwd permissions, it should be something like -rw-r--r--
--
Vladimir Rusinov
http://greenmice.info/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: initdb causes Segmentation fault
2009-02-15 22:34 initdb causes Segmentation fault Haluk Durmus <haluk_durmus@yahoo.de>
2009-02-16 08:16 ` Re: initdb causes Segmentation fault Vladimir Rusinov <vladimir@greenmice.info>
@ 2009-02-17 19:46 ` Haluk Durmus <haluk_durmus@yahoo.de>
0 siblings, 0 replies; 3+ messages in thread
From: Haluk Durmus @ 2009-02-17 19:46 UTC (permalink / raw)
To: pgsql-admin
Thank you very very much Vladimir,
I was just starting to port my db to mysql.
You saved me and our project :)
> Also, check /etc/passwd permissions, it should be something like -rw-r--r--
My permissions of /etc/passwd was set to -rw-------
I changed it to -rw-r--r-- and initdb works now smoothly :)
best regards,
Haluk
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2009-02-17 19:46 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-02-15 22:34 initdb causes Segmentation fault Haluk Durmus <haluk_durmus@yahoo.de>
2009-02-16 08:16 ` Vladimir Rusinov <vladimir@greenmice.info>
2009-02-17 19:46 ` Haluk Durmus <haluk_durmus@yahoo.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox