View Issue Details

IDProjectCategoryView StatusLast Update
0002216SOGosogo-toolpublic2013-02-05 19:39
Reporteruarndt Assigned Tojraby 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.0.4a 
Fixed in Version2.0.4b 
Summary0002216: sogo-tool sigabrt if option on command line
Description

When trying to change the "Forward" for a user, sogo-tool aborts. Backtrace in additional information. If I leave out the -p credfile option, I get the usage info.

Additional Information

#0 0x00007ffff569eb25 in raise () from /lib/libc.so.6
0000001 0x00007ffff56a2670 in abort () from /lib/libc.so.6
0000002 0x00007ffff5e9e220 in objc_exception_throw () from /usr/lib/libobjc.so.2
0000003 0x00007ffff64bf4d4 in ?? () from /usr/lib/libgnustep-base.so.1.19
0000004 0x00007ffff64bf031 in ?? () from /usr/lib/libgnustep-base.so.1.19
0000005 0x00007ffff64bef78 in ?? () from /usr/lib/libgnustep-base.so.1.19
0000006 0x00007ffff65c5cdb in ?? () from /usr/lib/libgnustep-base.so.1.19
0000007 0x00007ffff2b05869 in ffi_closure_unix64_inner () from /usr/lib/libffi.so.5
0000008 0x00007ffff2b06064 in ffi_closure_unix64 () from /usr/lib/libffi.so.5
0000009 0x000000000040352e in -[SOGoTool setSanitizedArguments:] (self=0x899a00, _cmd=0x615390, newArguments=0x8997a0) at SOGoTool.m:97
0000010 0x000000000040320c in +[SOGoTool runToolWithArguments:verbose:] (self=0x61e940, _cmd=0x614c20, toolArguments=0x8997a0, isVerbose=0 '\000') at SOGoTool.m:55
0000011 0x0000000000402d60 in -[SOGoToolDispatcher run] (self=0x8434e0, _cmd=0x614c90) at sogo-tool.m:201
0000012 0x00000000004030b2 in main (argc=7, argv=0x7fffffffe748, env=0x7fffffffe788) at sogo-tool.m:254

TagsNo tags attached.

Activities

jraby

jraby

2013-01-31 14:50

viewer   ~0005293

What arguments did you use for sogo-tool and on which distribution did it crash?

uarndt

uarndt

2013-01-31 15:04

reporter   ~0005294

Linux sogo 2.6.32-45-server 0000102-Ubuntu SMP Wed Jan 2 22:53:00 UTC 2013 x86_64 GNU/Linux
Ubuntu 10.04.4 LTS

sogo@sogo:~$ /usr/sbin/sogo-tool user-preferences get defaults stiftung Forward
Jan 31 15:59:53 sogo-tool [10009]: <0x0x105c0f0[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Jan 31 15:59:53 sogo-tool [10009]: <0x0x105c0f0[SOGoCache]> Using host(s) 'localhost' as server(s)
Forward: {"enabled": false, "forwardAddress": ["xxxxx@uni-koblenz.de"], "keepCopy": true}

sogo@sogo:~$ /usr/sbin/sogo-tool user-preferences set defaults stiftung -p .cyruscred Forward '{"enabled":"true","forwardAddress":["xxxxx@uni-koblenz.de"],"keepCopy":"true"}'
Abgebrochen

.cyruscred holds one line with cyrus admin credentials

jraby

jraby

2013-01-31 21:48

viewer   ~0005301

Thanks for reporting this, there were actually 2 bugs.

First, the argument handling was broken the arguments contained spaces.
fixed: https://github.com/inverse-inc/sogo/commit/e01b190e5775fd98c5a7b0739c1eac0bc8a4c70f

Second, older gnustep missed a few functions which were used in sogo-tool user-preferences and expire-autoreply.
This has been fixed too: https://github.com/inverse-inc/sogo/commit/225a28258f1b33e594172b7ca61c8751f6c5e4f9

Can you try the next nightly builds and confirm that it works for you?

Thanks.

jraby

jraby

2013-02-05 19:39

viewer   ~0005341

Fix released with 2.0.4b

Issue History

Date Modified Username Field Change
2013-01-31 13:13 uarndt New Issue
2013-01-31 14:50 jraby Note Added: 0005293
2013-01-31 15:04 uarndt Note Added: 0005294
2013-01-31 21:48 jraby Note Added: 0005301
2013-01-31 21:48 jraby Status new => assigned
2013-01-31 21:48 jraby Assigned To => jraby
2013-01-31 21:48 jraby Status assigned => feedback
2013-02-05 19:39 jraby Note Added: 0005341
2013-02-05 19:39 jraby Status feedback => resolved
2013-02-05 19:39 jraby Resolution open => fixed
2013-02-05 19:39 jraby Fixed in Version => 2.0.4b