postgresql-9.0.3-r0 fails to initialize database
From edge (17 April 2011)
su -c “strace /usr/bin/initdb —pgdata /var/lib/postgresql/9.0/data” postgres
builds the template1 database, and then segfaults:
write(1, “ok\n”, 3) = 3
write(1, “copying template1 to template0 .”…, 35) = 35
pipe([3, 4]) = 0
fcntl64(4, F_GETFL) = 0x1 (flags O_WRONLY)
ioctl(4, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or
TCGETS, 0xbfea0f38) = –1 EINVAL (Invalid argument)
vfork() = 21287
close(3) = 0
write(4, “CREATE DATABASE template0;\n”, 27) = 27
write(4, “UPDATE pg_database SET \tdatistem”…, 98) = 98
write(4, “UPDATE pg_database SET datlastsy”…, 106) = 106
write(4, “REVOKE CREATE,TEMPORARY ON DATAB”…, 59) = 59
write(4, “REVOKE CREATE,TEMPORARY ON DATAB”…, 59) = 59
write(4, “VACUUM FULL pg_database;\n”, 25) = 25
close(4) = 0
waitpid(21287, Segmentation fault
[{WIFEXITED(s) && WEXITSTATUS (s) == 139}], 0) = 21287
—- {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21287,
si_status=139, si_utime=0, si_stime=0} (Child exited) —-
write(2, “child process exited with exit c”…, 36child process exited
with exit code ) = 36
write(2, “139”, 3139) = 3
write(2, “\n”, 1
) = 1
write(2, “initdb”, 6initdb) = 6
write(2, “: removing contents of data dire”…, 39: removing contents of
data directory ") = 39
dmesg reports:
postgres[20103]: segfault at fff0 ip b712bbbf sp bfcd3f3c error 6 in libuClibc-0.9.32-rc3.so[b7120000+4b000]
(from redmine: issue id 585, created on 2011-04-18, closed on 2011-04-27)