- **status**: assigned --> review


---

** [tickets:#2294] nid: nodeinit may crash when exit is called from the main 
thread**

**Status:** review
**Milestone:** 5.2.FC
**Created:** Wed Feb 08, 2017 11:07 AM UTC by Hans Nordebäck
**Last Updated:** Wed Feb 08, 2017 11:07 AM UTC
**Owner:** Hans Nordebäck


nodeinit may crash when exit is called from the main thread, the std::string in 
svc_map 
is destructed but still used by the svc_monitor_thread

[New LWP 146]
[New LWP 145]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/lib/opensaf/opensafd'.
Program terminated with signal SIGSEGV, Segmentation fault.
.#0  __memcmp_sse2 () at ../sysdeps/x86_64/multiarch/../memcmp.S:37
[Current thread is 1 (Thread 0x7fcb6491b700 (LWP 146))]

Thread 2 (Thread 0x7fcb660eb740 (LWP 145)):
.#0  0x00007fcb650a934b in __GI__IO_file_close (fp=<optimized out>) at 
fileops.c:1250
        resultvar = 0
.#1  0x00007fcb650aa960 in _IO_new_file_close_it (fp=fp@entry=0x562267416c40) 
at fileops.c:172
        write_status = 0
        close_status = <optimized out>
.#2  0x00007fcb6509e3ef in _IO_new_fclose (fp=0x562267416c40) at iofclose.c:58
        _IO_acquire_lock_file = 0x562267416c40
        status = <optimized out>
.#3  0x00007fcb65c7633c in __gcov_close () from 
/usr/local/lib/opensaf/libopensaf_core.so.0
No symbol table info available.
.#4  0x00007fcb65c76ee1 in gcov_do_dump () from 
/usr/local/lib/opensaf/libopensaf_core.so.0
No symbol table info available.
.#5  0x00007fcb65c77dd2 in gcov_exit () from 
/usr/local/lib/opensaf/libopensaf_core.so.0
No symbol table info available.
.#6  0x00007fcb6506b36a in __cxa_finalize (d=0x7fcb65e9d920) at 
cxa_finalize.c:56
        check = 10
        cxafn = <optimized out>
        cxaarg = <optimized out>
        f = 0x7fcb653f5cf0 <initial+176>
        funcs = 0x7fcb653f5c40 <initial>
.#7  0x00007fcb65be3543 in __do_global_dtors_aux () from 
/usr/local/lib/opensaf/libopensaf_core.so.0
No symbol table info available.
.#8  0x00007ffe23bf6a60 in ?? ()
No symbol table info available.
.#9  0x00007fcb65ee2c17 in _dl_fini () at dl-fini.c:235
        array = 0x7fcb65e9ab30
        i = 0
        l = 0x7fcb660f65c8
        maps = 0x7fcb65c77dd8 <gcov_exit+88>
        i = 2
        l = <optimized out>
        nmaps = 0
        nloaded = <optimized out>
        ns = 140511567373768
        do_audit = 0
        __PRETTY_FUNCTION__ = "_dl_fini"
Backtrace stopped: frame did not save the PC

Thread 1 (Thread 0x7fcb6491b700 (LWP 146)):
.#0  __memcmp_sse2 () at ../sysdeps/x86_64/multiarch/../memcmp.S:37
No locals.
.#1  0x0000562266ad276b in std::char_traits<char>::compare (__s1=0x7fcb6491aee0 
"AMFND", __s2=0xcc4 <error: Cannot access memory at address 0xcc4>, __n=5) at 
/usr/include/c++/5/bits/char_traits.h:262
No locals.
.#2  0x0000562266ad2ef7 in std::operator==<char> (__lhs="AMFND", __rhs=<error: 
Cannot access memory at address 0xcc4>) at 
/usr/include/c++/5/bits/basic_string.h:4914
No locals.
.#3  0x0000562266acf267 in handle_data_request (fds=0x7fcb600008c0, 
nid_name="AMFND") at src/nid/nodeinit.cc:1416
        svc = @0x562267416cd0: {nid_name = <error: Cannot access memory at 
address 0xcc4>, fifo_file = "\377\377\377\377clmna.fifo", fifo_fd = 9}
        __for_range = std::vector of length 11, capacity 11 = {{nid_name = 
<error: Cannot access memory at address 0x7fcbfbad2c03>, fifo_file = 
"\000\000\000\000\000 
mAg\"V\000\000\304\f\000\000\000\000\000\000\005\000\000\000\000\000\000\000\060mAg\"V",
 '\000' <repeats 11 times>, 
"mAg\"V\000\000\016\000\000\000\000\000\000\000\377\377\377\377clmna.fifo\000\000\t\000\000\000\000\000\000\000\340\066?e\313\177\000\000\001\000\000\000\001\000\000\000@\267\016f\313\177",
 '\000' <repeats 90 times>, "\f\000\000"..., fifo_fd = 1732340932}, {nid_name = 
"", fifo_file = "\206 \255\373\000", fifo_fd = 1732341024}, {nid_name = <error: 
Cannot access memory at address 0xcc4>, fifo_file = 
"\377\377\377\377clmna.fifo", fifo_fd = 9}, {nid_name = "", fifo_file = "", 
fifo_fd = 0}, {nid_name = "", fifo_file = <error reading variable: Cannot 
create a lazy string with address 0x0, and a non-zero length.>, fifo_fd = -1}, 
{nid_name = "IMMD", fifo_file = "osafimmd.fifo", fifo_fd = -1}, {nid_name = 
"IMMND", fifo_file = "osafimmnd.fifo", fifo_fd = 10}, {nid_name = "LOGD", 
fifo_file = 
"\361\000\000\000\000\000\000\000xK?e\313\177\000\000xK?e\313\177\000\000\220nAg\"V\000\000\004\000\000\000\000\000\000\000NTFD",
 '\000' <repeats 12 times>, 
"\260nAg\"V\000\000\r\000\000\000\000\000\000\000osafntfd.fifo\000\000\000\377\377\377\377\000\000\000\000\330nAg\"V\000\000\004\000\000\000\000\000\000\000PLMD",
 '\000' <repeats 12 times>, 
"\370nAg\"V\000\000\r\000\000\000\000\000\000\000osafplmd.fifo\000\000\000\377\377\377\377\000\000\000\000
 oAg\"V\000\000\004\000\000\000\000\000\000\000CLMD", '\000' <repeats 12 
times>..., fifo_fd = 1698646904}, {nid_name = "NTFD", fifo_file = 
"osafntfd.fifo", fifo_fd = -1}, {nid_name = "PLMD", fifo_file = 
"osafplmd.fifo", fifo_fd = -1}, {nid_name = "CLMD", fifo_file = 
"osafclmd.fifo", fifo_fd = 240}}
        __for_begin = {nid_name = <error: Cannot access memory at address 
0xcc4>, fifo_file = "\377\377\377\377clmna.fifo", fifo_fd = 9}
        __for_end = {nid_name = <error: Cannot access memory at address 0x20>, 
fifo_file = <error: Cannot access memory at address 0x31>, fifo_fd = 1869360740}
        file_notify = {_vptr.FileNotify = 0x7fcb65e9ab50 <vtable for 
base::FileNotify+16>, static kBufferSize = 2720, buf_ = '\000' <repeats 2719 
times>, file_path_ = "", file_name_ = "", inotify_fd_ = 6, inotify_wd_ = -1}
        notify_rc = base::FileNotify::FileNotifyErrors::kOK
        rc = 1
        fifo_fd = -1
        t_ = {trace_leave_called = false, file_ = 0x0, function_ = 0x0}
        __FUNCTION__ = "handle_data_request"
.#4  0x0000562266ad01bf in svc_monitor_thread (fd=0x7ffe23bf67ac) at 
src/nid/nodeinit.cc:1539
        rc = 1
        nid_name = "AMFND\000ORT", '\000' <repeats 15 times>, "T\026@e\313\177"
        svc_mon_thr_fd = 4
        fds = 0x7fcb600008c0
        __FUNCTION__ = "svc_monitor_thread"
        read_rc = 5
.#5  0x00007fcb654016ba in start_thread (arg=0x7fcb6491b700) at 
pthread_create.c:333
        __res = <optimized out>
        pd = 0x7fcb6491b700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140511542359808, 
3883404050926043186, 0, 140729498167071, 140511542360512, 0, 
-3858927046813908942, -3858927473329143758}, mask_was_saved = 0}}, priv = {pad 
= {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
.#6  0x00007fcb6513782d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.
mesg: ttyname failed: Inappropriate ioctl for device37  
../sysdeps/x86_64/multiarch/../memcmp.S: No such file or directory.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to