Displaying 15 results from an estimated 15 matches for "i_fatal_status".
2006 Oct 28
2
BUG in RC10 deliver using mbox format
...this
by making this patch to deliver.c (notice I fixed a typo here, too):
*** deliver.c.orig Fri Oct 13 07:32:28 2006
--- deliver.c Fri Oct 27 21:26:08 2006
***************
*** 446,454 ****
i++;
if (i == argc) {
i_fatal_status(EX_USAGE,
! "Missing envleope argument");
}
! envelope_sender = argv[i];
} else {
print_help();
i_fatal_status(EX_USAGE,
--- 446,455 -...
2008 Jul 10
2
A couple of dovecot issues I've noted recently...
...complete
stack trace is hugely long-- it appears that we recurse until we run
totally out of stack. In gdb this looks like repeated calls like
this:
...
#14507 0x080b22b6 in i_internal_fatal_handler (status=83, fmt=0x0,
args=0x76b95d8 "\020") at failures.c:410
#14508 0x080b1e1e in i_fatal_status (status=83,
format=0x80cdd64 "mem_block_alloc(): Out of memory when allocating %u bytes") at failures.c:201
#14509 0x080b1652 in mem_block_alloc (min_size=0) at data-stack.c:192
#14510 0x080b1811 in t_malloc_real (size=16, permanent=true)
at data-stack.c:244
#14511 0x080b1890 in...
2014 Oct 14
1
auth-worker goes wild
...Common subdirectories: orig/auth and src/auth
diff -ru orig/auth/passdb-pam.c src/auth/passdb-pam.c
--- orig/auth/passdb-pam.c ti. okt. 14 12:04:16 2014
+++ src/auth/passdb-pam.c ti. okt. 14 12:02:28 2014
@@ -85,6 +85,8 @@
string = strdup(ctx->request->user);
if (string == NULL)
i_fatal_status(FATAL_OUTOFMEM, "Out of memory");
+ if (strlen(string) == 0)
+ i_fatal_status(FATAL_OUTOFMEM, "NO USER?");
break;
case PAM_PROMPT_ECHO_OFF:
/* Assume we're asking for password */
2014 Feb 07
1
Dovecot 2.2.10 crash / infinite loop bug
...5dcd4 in default_fatal_finish (type=Variable "type" is not
available.
) at failures.c:193
#4 0x0245dd4d in i_internal_fatal_handler (ctx=0xcfbec0f4,
format=0x22406990 "pool_system_realloc(%lu): Out of memory",
args=0xcfbec118 "") at failures.c:657
#5 0x0245cee3 in i_fatal_status (status=Could not find the frame base
for "i_fatal_status".
) at failures.c:295
#6 0x02475543 in pool_system_realloc (pool=Could not find the frame
base for "pool_system_realloc".
) at mempool-system.c:120
#7 0x02464c47 in i_realloc (mem=0x86122000, old_size=134217728,
new_...
2005 Oct 02
1
deliver: select destination folder
...ion, *mail, *folder;
355a356
> folder = NULL;
364a366,373
> } else if (strcmp(argv[i], "-f") == 0) {
> /* destination folder */
> i++;
> if (i == argc) {
> i_fatal_status(EX_USAGE,
> "Missing folder argument");
> }
> folder = argv[i];
378a388,391
> if (folder == NULL) {
> folder = "INBOX";
> }
>
449c462
<...
2006 Jan 20
1
dovecot-lda and vpopmail
...is error in the src/deliver.c:607
/* MAIL comes from userdb, DEFAULT_MAIL_ENV from dovecot.conf */
mail_env = getenv("MAIL");
if (mail_env == NULL)
mail_env = getenv("DEFAULT_MAIL_ENV");
if (mail_env == NULL)
i_fatal_status(EX_CONFIG, "mail setting not given");
which would certainly suggest that the userdb access failed in deliver
(though the log would see to seem to suggest otherwise).
I even tried setting the DEFAULT_MAIL_ENV in dovecot.conf, but that
didn't work either.
Anyone have any ideas abou...
2014 Apr 24
0
Help implementing username_format in auth PAM driver
...uct pam_message **msg,
case PAM_PROMPT_ECHO_ON:
/* Assume we're asking for user. We might not ever
get here because PAM already knows the user. */
- string = strdup(ctx->request->user);
+ string = strdup(pam_username_lookup(ctx->request));
if (string == NULL)
i_fatal_status(FATAL_OUTOFMEM, "Out of memory");
break;
@@ -240,7 +253,7 @@ static void set_pam_items(struct auth_request *request, pam_handle_t *pamh)
host = net_ip2addr(&request->remote_ip);
if (host != NULL)
(void)pam_set_item(pamh, PAM_RHOST, host);
- (void)pam_set_item(pamh, PAM_R...
2014 Dec 12
0
PATCH - add username_format to the PAM auth module
...of(struct pam_response));
@@ -82,7 +90,7 @@
case PAM_PROMPT_ECHO_ON:
/* Assume we're asking for user. We might not ever
get here because PAM already knows the user. */
- string = strdup(ctx->request->user);
+ string = strdup(str_c(username));
if (string == NULL)
i_fatal_status(FATAL_OUTOFMEM, "Out of memory");
break;
@@ -108,12 +116,14 @@
}
free(resp);
+ str_free(&username);
return PAM_CONV_ERR;
}
resp[i].resp_retcode = PAM_SUCCESS;
resp[i].resp = string;
}
+ str_free(&username);
*resp_r = resp;
return PAM_SUCCESS;...
2015 Feb 11
2
[PATCH] Fix for client certificate validation does not work
...quot;BIO_new_mem_buf() failed");
- inf = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL);
- if (inf == NULL)
- i_fatal("Couldn't parse ssl_ca: %s", ssl_last_error());
- BIO_free(bio);
-
- if (xnames_r != NULL) {
- *xnames_r = sk_X509_NAME_new_null();
- if (*xnames_r == NULL)
- i_fatal_status(FATAL_OUTOFMEM, "sk_X509_NAME_new_null() failed");
- }
- for(i = 0; i < sk_X509_INFO_num(inf); i++) {
- itmp = sk_X509_INFO_value(inf, i);
- if(itmp->x509) {
- X509_STORE_add_cert(store, itmp->x509);
- xname = X509_get_subject_name(itmp->x509);
- if (xname != NULL &...
2018 Mar 07
2
Mail addresses with quotes + Postfix
Op 7-3-2018 om 15:40 schreef Stephan Bosch:
>
>
> Op 7-3-2018 om 13:46 schreef Philipp Berger:
>> I wrapped the LDA command in a script. I can see that Postfix passes
>> "@@mydomain.tld" as the -d argument, without quotes.
>> I then adapted the script to specifically replace this address with
>> "@"@mydomain.tld, but this results in the
2018 Mar 07
0
Mail addresses with quotes + Postfix
...and the build-in help of dovecot-lda do
not mention -r exists :)
case 'r':
/* final recipient address */
if (smtp_address_parse_path(ctx.pool, optarg,
SMTP_ADDRESS_PARSE_FLAG_ALLOW_LOCALPART |
SMTP_ADDRESS_PARSE_FLAG_BRACKETS_OPTIONAL,
&final_rcpt_to, &errstr) < 0) {
i_fatal_status(EX_USAGE,
"Invalid -a parameter: %s", errstr);
Btw: Should the error message not read "Invalid -r parameter: %s" instead?
I think the problem is the different handling in Postfix and Dovecot:
Postfix seems to automatically strip the quotes out of the username, at
least for...
2014 Jun 23
4
OOM in Dovecot 2.2.13 imap
...f11766cc1be] -> /usr/lib/dovecot/libdovecot.so.0(i_error+0) [0x7f1176685568] -> /usr/lib/d"...
#3 0x00007f11766cc1be in i_internal_fatal_handler (ctx=0x7fff5ffedfb0, format=<optimized out>, args=<optimized out>) at failures.c:657
status = 83
#4 0x00007f1176685568 in i_fatal_status (status=status at entry=83, format=format at entry=0x7f1176702ba8 "pool_system_realloc(%lu): Out of memory") at failures.c:295
ctx = {type = LOG_TYPE_FATAL, exit_status = 83, timestamp = 0x0}
args = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7fff5ffee0a0, reg_...
2006 Feb 03
0
rquotad (NFS) quota plugin
...006
***************
*** 22,27 ****
--- 22,28 ----
void i_error(const char *format, ...) __attr_format__(1, 2);
void i_warning(const char *format, ...) __attr_format__(1, 2);
void i_info(const char *format, ...) __attr_format__(1, 2);
+ void i_vinfo(const char *format, va_list args);
void i_fatal_status(int status, const char *format, ...)
__attr_format__(2, 3) __attr_noreturn__;
diff -crN dovecot-1.0.beta2/src/plugins/quota/Makefile.am dovecot-1.0.beta2.mail.location+quota/src/plugins/quota/Makefile.am
*** dovecot-1.0.beta2/src/plugins/quota/Makefile.am Wed Dec 14 22:50:01 2005
--- dovecot-1.0...
2018 Mar 04
1
2.2.34 fails to build on OpenBSD
...ssl_iostream_openssl.so: undefined reference to
`o_stream_get_buffer_used_size'
.libs/libssl_iostream_openssl.so: undefined reference to `i_strdup_printf'
.libs/libssl_iostream_openssl.so: undefined reference to `o_stream_close'
.libs/libssl_iostream_openssl.so: undefined reference to `i_fatal_status'
.libs/libssl_iostream_openssl.so: undefined reference to `buffer_append'
.libs/libssl_iostream_openssl.so: undefined reference to `i_strdup'
.libs/libssl_iostream_openssl.so: undefined reference to `i_strocpy'
.libs/libssl_iostream_openssl.so: undefined reference to `str_printfa...
2019 May 13
6
Frequent Out of Memory for service(config)
Hello Group,
We have dovecot deployed as solely a Pop3 service that is used by our
applications to pass mail from one application to another internally. We
have roughly 4 applications that connect to the Pop3 service every 2
seconds, to check for new messages and pop them for processing if they are
present. Depending on the site, we have between 1024-2048MB of memory set
for default_vsz_limit.