Re: initdb segfault - solaris 8

From: sjh(at)ucf(dot)ics(dot)uci(dot)edu
To: pgsql-general(at)postgresql(dot)org
Subject: Re: initdb segfault - solaris 8
Date: 2001-10-26 18:17:58
Message-ID: 20011026181759.0564A14E02@scotch.ucf.ics.uci.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> sjh(at)ucf(dot)ics(dot)uci(dot)edu writes:
> > [ coredump in ValidateBinary ]
>
> It's hard to see how ValidateBinary could dump core, unless perhaps its
> idea of struct stat, struct group or struct passwd is different from the
> system's. I'd suggest checking for conflicting system headers.
>
> If no dice, try recompiling with --enable-debug so that you can get more
> info with gdb.
>
> regards, tom lane
Here is the stack trace w/ --enable-debug

#0 0x81cd6ba in ValidateBinary (
path=0x804718c "/pkg/postgresql-7.1.3/bin/postgres") at findbe.c:115
#1 0x81cd914 in FindExec (full_path=0x8278d40 "",
argv0=0x8047794 "/pkg/postgresql-7.1.3/bin/postgres",
binary_name=0x8223a73 "postgres") at findbe.c:184
#2 0x817204d in PostgresMain (argc=7, argv=0x8047664, real_argc=7,
real_argv=0x8047664, username=0x8287838 "postgres") at postgres.c:1617
#3 0x811d07d in main (argc=7, argv=0x8047664) at main.c:196

(gdb) print *pwp
$2 = {pw_name = 0x8284bb0 "postgres", pw_passwd = 0x8284faf "", pw_uid = 666,

pw_gid = 303, pw_age = 0x8284faf "", pw_comment = 0x8284faf "",
pw_gecos = 0x8284bc8 "postgres", pw_dir = 0x8284bb9 "/home/postgres",
pw_shell = 0x8284bd1 "/bin/zsh"}

(gdb) print i
$3 = 0

(gdb) print *gp
$5 = {gr_name = 0x838d39c "shared", gr_passwd = 0x0, gr_gid = 305,
gr_mem = 0x0}

struct group {
char *gr_name; /* the name of the group */
char *gr_passwd; /* the encrypted group password */
gid_t gr_gid; /* the numerical group ID */
char **gr_mem; /* vector of pointers to member names */
};

Well, gr_mem is null. Not sure why, but that has to be it.

-Seth

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Roderick A. Anderson 2001-10-26 18:19:37 Re: DBD::Pg
Previous Message Eric Ridge 2001-10-26 17:27:14 UNIQUE constraint violations and transactions