Date: Tue, 30 Jul 2002 10:20:01 -0300 (ADT) From: "Marc G. Fournier" <scrappy@hub.org> To: andrey@mgul.ac.ru Cc: freebsd-ports@freebsd.org Subject: pam-pgsql port SegFaults @ pam_get_pass() in pam_pgsql.c ... Message-ID: <20020730101519.P3083-100000@mail1.hub.org>
next in thread | raw e-mail | index | archive | help
... and I can't figure out why ... I added a bunch of debugging to SYSLOG to trace it, and it comes down to: Jul 30 10:01:45 nrelay PAM_pgsql[37016]: options_valid: top Jul 30 10:01:45 nrelay PAM_pgsql[37016]: options_valid: bottom Jul 30 10:01:45 nrelay PAM_pgsql[37016]: attempting to authenticate: scrappy Which corresponds to: SYSLOG("attempting to authenticate: %s", user); if((rc = pam_get_pass(pamh, &password, PASSWORD_PROMPT, std_flags) != PAM_SUCCESS)) { SYSLOG("attempting to authenticate - in : %s", user); free_module_options(options); return rc; } SYSLOG("attempting to authenticate - post : %s", user); I added some debugging to pam_get_pass, as follows: int pam_get_pass(pam_handle_t *pamh, const char **passp, const char *prompt, int options) { int retval; const void *item = NULL; SYSLOG("pam_get_pass: top"); /* * Grab the already-entered password if we might want to use it. */ if (options & (PAM_OPT_TRY_FIRST_PASS | PAM_OPT_USE_FIRST_PASS)) { if ((retval = pam_get_item(pamh, PAM_AUTHTOK, &item)) != PAM_SUCCESS) return retval; } But it never gets to 'pam_get_pass: top' ... The system is 4.6-STABLE, if that matters ... PgSQL 7.2.1 is installed, and the build appears to work great ... only running appears to fail. Testing is being done with the test.c that comes with pam_pgsql itself, so that I don't throw any 'unknowns' into the mix .... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020730101519.P3083-100000>