Displaying 6 results from an estimated 6 matches for "array_foreach".
2018 Feb 22
0
Auth SEGV on sparc64, alignment problem?
...it () at passdb.c:313
> 313 passdb_register_module(&passdb_ldap);
> (gdb)
> passdb_register_module (iface=0x280120) at passdb.c:33
> 33 old_iface = passdb_interface_find(iface->name);
> (gdb)
> passdb_interface_find (name=0x16fe60 "ldap") at passdb.c:20
> 20 array_foreach(&passdb_interfaces, ifaces) {
> (gdb)
> 21 struct passdb_module_interface *iface = *ifaces;
> (gdb)
> 23 if (strcmp(iface->name, name) == 0)
> (gdb) n
> 20 array_foreach(&passdb_interfaces, ifaces) {
> (gdb)
> 21 struct passdb_module_interface *iface = *ifa...
2018 Feb 22
2
Auth SEGV on sparc64, alignment problem?
...to strcmp, it failed:
passdbs_init () at passdb.c:313
313 passdb_register_module(&passdb_ldap);
(gdb)
passdb_register_module (iface=0x280120) at passdb.c:33
33 old_iface = passdb_interface_find(iface->name);
(gdb)
passdb_interface_find (name=0x16fe60 "ldap") at passdb.c:20
20 array_foreach(&passdb_interfaces, ifaces) {
(gdb)
21 struct passdb_module_interface *iface = *ifaces;
(gdb)
23 if (strcmp(iface->name, name) == 0)
(gdb) n
20 array_foreach(&passdb_interfaces, ifaces) {
(gdb)
21 struct passdb_module_interface *iface = *ifaces;
(gdb)
23 if (strcmp(iface->...
2018 Feb 22
2
Auth SEGV on sparc64, alignment problem?
Sadly, that doesn?t help either. Over the past day, I?ve built and installed a different branch of the OS (stable/11, instead of release/11.1), to see if a new compiler/libc might change things. Sadly, it does not.
In the same situation now, auth fails immediately with signal 11. Running gdb on auth (from build dir, compiled -g -O2) shows something similar.
- Chris
# gdb
2013 Feb 24
1
Problem with the command hooks api
...{ "UID FETCH", cmd_fetch, COMMAND_FLAG_BREAKS_SEQS },
{ "UID SEARCH", cmd_search, COMMAND_FLAG_BREAKS_SEQS },
@@ -142,12 +142,20 @@
{
const struct command_hook *hook;
bool ret;
+ bool exec_hooks = FALSE;
- array_foreach(&command_hooks, hook)
- hook->pre(cmd);
+ if ( !(cmd->cmd_flags & COMMAND_FLAG_HOOKS_DELAY)) {
+ exec_hooks = TRUE;
+ array_foreach(&command_hooks, hook)
+ hook->pre(cmd);
+ }
ret = cmd->func...
2019 Aug 02
3
auth-policy crashing
My auth process is dumping core. This happens several times per day but
dovecot can operate normally for hours between errors.
The crash occurs in src/auth/auth-policy.c, line 356:
t at 1 (l at 1) program terminated by signal SEGV (no mapping at the fault
address)
Current function is auth_policy_parse_response
356 context->request->policy_refusal = FALSE;
2010 Dec 24
1
doveadm quota get -u segmentation fault
...g...done.
done.
Loaded symbols for /usr/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
Core was generated by `doveadm quota get -u xxx at xxx'.
Program terminated with signal 11, Segmentation fault.
#0 0x00cc2b95 in cmd_quota_get_run (ctx=0x94dd3a8, user=0x94ee098) at
doveadm-quota.c:52
52 array_foreach(&quser->quota->roots, root)
(gdb) bt full
#0 0x00cc2b95 in cmd_quota_get_run (ctx=0x94dd3a8, user=0x94ee098) at
doveadm-quota.c:52
root__foreach_end = 0x94cd548
root = 0x94dec90
#1 0x0804f079 in doveadm_mail_next_user (ctx=0x94dd3a8, input=<value
optimized out>, e...