Bug #317

on specific NDRX_XA_OPEN_STR xadmin gets core dupmp

Added by Madars Vitolins 6 days ago. Updated 6 days ago.

Status:ClosedStart date:05/16/2018
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

When CCONFIG is set to:

|$ cat test.ini 
[@global]
YOPT=VSC_SEC/{dec=AAAACHCvuGy0AsmI1BzmzG40ql4=}
NDRX_XA_OPEN_STR=ORACLE_XA+SqlNet=ORA11+ACC=P/VSC_SEC/{dec=AAAACHCvuGy0AsmI1BzmzG40ql4=}+SesTM=180+LogDir=${NDRX_APPHOME}/xa/rm1_trace+nolocal=f+Threads=true

xadmin gets:

*** buffer overflow detected ***: tmqueue terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f79b43337e5]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f79b43d515c]
/lib/x86_64-linux-gnu/libc.so.6(+0x117160)[0x7f79b43d3160]
/usr/local/lib/libnstd.so(ndrx_str_env_subs_len+0xf6)[0x7f79b4cb9d76]
/usr/local/lib/libnstd.so(+0xf65c)[0x7f79b4cbe65c]
/usr/local/lib/libnstd.so(ini_parse_stream+0x2d5)[0x7f79b4cbcb75]
/usr/local/lib/libnstd.so(ini_parse+0x3c)[0x7f79b4cbccec]
/usr/local/lib/libnstd.so(+0xe0fb)[0x7f79b4cbd0fb]
/usr/local/lib/libnstd.so(+0x10b89)[0x7f79b4cbfb89]
/usr/local/lib/libnstd.so(+0x10e5a)[0x7f79b4cbfe5a]
/usr/local/lib/libnstd.so(+0x1140c)[0x7f79b4cc040c]
/usr/local/lib/libnstd.so(ndrx_cconfig_load+0x91)[0x7f79b4cc07f1]
/usr/local/lib/libnstd.so(ndrx_msgsizemax+0x6f)[0x7f79b4cc621f]
/usr/local/lib/libatmi.so(ndrx_load_common_env+0x75)[0x7f79b5155835]
/usr/local/lib/libatmisrvinteg.so(ndrx_init+0x8e)[0x7f79b53e233e]
/usr/local/lib/libatmisrvinteg.so(ndrx_main+0x10)[0x7f79b53e2950]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f79b42dc830]
tmqueue(_start+0x29)[0x403b39]
======= Memory map: ========
00400000-00415000 r-xp 00000000 103:02 22021690                          /usr/local/bin/tmqueue
00614000-00615000 r--p 00014000 103:02 22021690                          /usr/local/bin/tmqueue
00615000-00616000 rw-p 00015000 103:02 22021690                          /usr/local/bin/tmqueue

History

#1 Updated by Madars Vitolins 6 days ago

10:42:22  mvitolin@mvasus  /home/mvitolin/projects/endurox/sampleconfig
$ gdb xadmin core
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from xadmin...done.
[New LWP 29639]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `xadmin'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f64ba894428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) 
(gdb) 
(gdb) where
#0  0x00007f64ba894428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007f64ba89602a in __GI_abort () at abort.c:89
#2  0x00007f64ba8d67ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f64ba9ee49f "*** %s ***: %s terminated\n") at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007f64ba97815c in __GI___fortify_fail (msg=<optimised out>, msg@entry=0x7f64ba9ee430 "buffer overflow detected") at fortify_fail.c:37
#4  0x00007f64ba976160 in __GI___chk_fail () at chk_fail.c:28
#5  0x00007f64bb4a0d76 in memcpy (__len=<optimised out>, __src=0x10e92bb, __dest=0x7ffd112c7010) at /usr/include/x86_64-linux-gnu/bits/string3.h:53
#6  ndrx_str_env_subs_len (str=0x10e9260 "ORACLE_XA+SqlNet=ORA11+ACC=P/VSC_SEC/{dec=AAAACHCvuGy0AsmI1BzmzG40ql4=}+SesTM=180+LogDir=${NDRX_APPHOME}/xa/rm1_trace+nolocal=f+Threads=true", buf_size=buf_size@entry=4237)
    at /home/mvitolin/projects/endurox/libnstd/nstdutil.c:371
#7  0x00007f64bb4a565c in handler (cf_ptr=cf_ptr@entry=0x10e5960, vsection_start_with=vsection_start_with@entry=0x7f64bb6d0960 <M_sections_first_pass>, cfg_ptr=cfg_ptr@entry=0x10d3d80, section=section@entry=0x7ffd112c7520 "@global", 
    name=<optimised out>, value=0x7ffd112c9db1 "ORACLE_XA+SqlNet=ORA11+ACC=P/VSC_SEC/{dec=AAAACHCvuGy0AsmI1BzmzG40ql4=}+SesTM=180+LogDir=${NDRX_APPHOME}/xa/rm1_trace+nolocal=f+Threads=true")
    at /home/mvitolin/projects/endurox/libnstd/inicfg.c:370
#8  0x00007f64bb4a3b75 in ini_parse_stream (reader=0x7f64ba8ccad0 <_IO_fgets>, stream=stream@entry=0x10e7a50, handler=handler@entry=0x7f64bb4a5540 <handler>, user=user@entry=0x10e5960, 
    user2=user2@entry=0x7f64bb6d0960 <M_sections_first_pass>, user3=user3@entry=0x10d3d80) at /home/mvitolin/projects/endurox/libnstd/ini.c:244
#9  0x00007f64bb4a3cab in ini_parse_file (file=file@entry=0x10e7a50, handler=handler@entry=0x7f64bb4a5540 <handler>, user=user@entry=0x10e5960, user2=user2@entry=0x7f64bb6d0960 <M_sections_first_pass>, user3=user3@entry=0x10d3d80)
    at /home/mvitolin/projects/endurox/libnstd/ini.c:280
#10 0x00007f64bb4a3cec in ini_parse (filename=filename@entry=0x7ffd112cc7d0 "/home/mvitolin/projects/endurox/sampleconfig//test.ini", handler=handler@entry=0x7f64bb4a5540 <handler>, user=user@entry=0x10e5960, 
    user2=user2@entry=0x7f64bb6d0960 <M_sections_first_pass>, user3=user3@entry=0x10d3d80) at /home/mvitolin/projects/endurox/libnstd/ini.c:293
#11 0x00007f64bb4a40fb in _ndrx_inicfg_load_single_file (cfg=cfg@entry=0x10d3d80, resource=resource@entry=0x7ffd112cf97e "/home/mvitolin/projects/endurox/sampleconfig", 
    fullname=fullname@entry=0x7ffd112cc7d0 "/home/mvitolin/projects/endurox/sampleconfig//test.ini", section_start_with=section_start_with@entry=0x7f64bb6d0960 <M_sections_first_pass>)
    at /home/mvitolin/projects/endurox/libnstd/inicfg.c:436
#12 0x00007f64bb4a6b89 in _ndrx_inicfg_update_single_file (cfg=cfg@entry=0x10d3d80, resource=resource@entry=0x7ffd112cf97e "/home/mvitolin/projects/endurox/sampleconfig", 
    fullname=fullname@entry=0x7ffd112cc7d0 "/home/mvitolin/projects/endurox/sampleconfig//test.ini", section_start_with=section_start_with@entry=0x7f64bb6d0960 <M_sections_first_pass>)
    at /home/mvitolin/projects/endurox/libnstd/inicfg.c:536
#13 0x00007f64bb4a6e5a in _ndrx_inicfg_add (cfg=0x10d3d80, resource=0x7ffd112cf97e "/home/mvitolin/projects/endurox/sampleconfig", section_start_with=section_start_with@entry=0x7f64bb6d0960 <M_sections_first_pass>)
    at /home/mvitolin/projects/endurox/libnstd/inicfg.c:610
#14 0x00007f64bb4a6f54 in ndrx_inicfg_add (cfg=<optimised out>, resource=<optimised out>, section_start_with=section_start_with@entry=0x7f64bb6d0960 <M_sections_first_pass>) at /home/mvitolin/projects/endurox/libnstd/inicfg.c:1188
#15 0x00007f64bb4a740c in _ndrx_cconfig_load_pass (cfg=cfg@entry=0x7ffd112cd8e8, is_internal=is_internal@entry=1, section_start_with=section_start_with@entry=0x7f64bb6d0960 <M_sections_first_pass>)
    at /home/mvitolin/projects/endurox/libnstd/cconfig.c:311
#16 0x00007f64bb4a77f1 in _ndrx_cconfig_load (is_internal=1, cfg=0x7f64bb6d2710 <G_cconfig>) at /home/mvitolin/projects/endurox/libnstd/cconfig.c:207
#17 ndrx_cconfig_load () at /home/mvitolin/projects/endurox/libnstd/cconfig.c:417
#18 0x00007f64bb4ad21f in ndrx_msgsizemax () at /home/mvitolin/projects/endurox/libnstd/msgsizemax.c:96
#19 0x0000000000404d46 in main (argc=1, argv=0x7ffd112cda78) at /home/mvitolin/projects/endurox/xadmin/xadmin.c:785
(gdb) 

#3 Updated by Madars Vitolins 6 days ago

  • Status changed from New to Resolved

#4 Updated by Madars Vitolins 6 days ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF