logs archiveIRC Archive / Freenode / #exim / 2015 / July / 15 / 1
jgh_
yeah
hmpf. need a conf
kirillm
shall I send you a simple one?
jgh_
just trying the default example one
no segfault
kirillm
right.
jgh_
so yeah, I need yours. Can you scrub the nasty bits off it or is it complicated?
If the latter, we'll have to investigate more on your system
kirillm
give me some mins, please
jgh_
sure
kirillm
there!
I have a simpler config, that gives segfault
where shall I send it?
jgh_
jgh@exim.org
         

kirillm
I just do cat file | mail , ok ?
jgh_
might work :)
yup
kirillm
tell me, if I shall send it as attachment
jgh_
it's fine
kirillm
in the meanwhile, I'll try to run with default config
now, default file does not segfault
so it's "my" fault then
jgh_
heh
but I can't get a fault from your config either
kirillm
now I deleted some options from file I sent you and it no longer segfaults
jgh_
I had to make 2 mods
the IP addr for local interfaces
and the trusted group name
so... maybe not an always-crash bug (but still a bug)
kirillm
eh
I remove this line and it does not segfault
smtp_accept_queue_per_connection = 75
let me see if it helps on "full" config, too
no
jgh_
if you add "-d+all" to your commandline, does it still crash? What's the last few lines of output?
kirillm
mail from:km@krot.org
00:24:14 4597 SMTP<< mail from:km@krot.org
Program received signal SIGSEGV, Segmentation fault.
0x000002526f17eba9 in smtp_read_command () from /krot/home/km/src/exim-4.86_RC4/build-OpenBSD-amd64/exim
jgh_
at least it's not a very long function
kirillm
it accepts some commands
but croaks on others:
ehlo
501 Syntactically invalid EHLO argument(s)
LOG: rejected EHLO from [127.0.0.1]: syntactically invalid argument(s): (no argument given)
auth
503 AUTH command used when not advertised
helo
>>> host in smtp_accept_max_nonmail_hosts? yes (matched "*")
501 Syntactically invalid HELO argument(s)
LOG: rejected HELO from [127.0.0.1]: syntactically invalid argument(s): (no argument given)
MAIL
Program received signal SIGSEGV, Segmentation fault.
jgh_
that's wild
any chance of you working out how to do a debugger-enabled compile, so we get the line number?
kirillm
-g option to gcc?
http://stackoverflow.com/questions/668962/what-is-the-difference-between-gcc-ggdb-and-gcc-g
jgh_
yup
kirillm
here
Program received signal SIGSEGV, Segmentation fault.
0x00001e5ec1d7eca9 in smtp_read_command (check_sync=1) at smtp_in.c:1031
1031 if (strncmpic(smtp_cmd_buffer, US p->name, p->len) == 0 &&
(gdb) where
#0 0x00001e5ec1d7eca9 in smtp_read_command (check_sync=1) at smtp_in.c:1031
#1 0x00001e5ec1d81b76 in smtp_setup_msg () at smtp_in.c:3329
#2 0x00001e5ec1d3fd12 in main (argc=3, cargv=0x7f7ffffbd0c8) at exim.c:5038
jgh_
for that if() to segfault - either smtp_cmd_buffer or p is bad
both as unlikely as the other
kirillm
(gdb) p smtp_cmd_buffer
$5 = (uschar *) 0x175490b0c000 "mail"
(gdb) p p->name
$6 = 0x1751eebd880d "tls_auth"
(gdb) p p->len
$7 = 0
jgh_
what are p and cmd_list_end ?
         

kirillm
(gdb) p p
$1 = (smtp_cmd_list *) 0x1fe86e2eebd8
(gdb) p cmd_list_end
$2 = (smtp_cmd_list * const) 0x1fe86e2eecc8
jgh_
an interesting line of investigation comes to mind
does your makefile have AUTH_TLS enabled?
kirillm
yes
sorry!
no
only auth_plaintext
AUTH requires TLS, though :)
shall I send you my Makefile or compiled exim binary?
AUTH_PLAINTEXT=yes
jgh_
too late for tonight, I think
kirillm
thank you for this session
so you got some ideas, didn't you?
jgh_
wish I'd managed to repro it here
it's a weird one
at least we've localised it quite well
for which, thanks
kirillm
I've send you the exim binary
the one compiled with -ggdb
and my Makefile
jgh_
ok - I'll try to play wit that in the next few days
meantime, bed!
« prev 1 2 3 4 next »