Corosync/Pacemaker on NetBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

now that Corosync 1.x (1.4.4 in this case) works on NetBSD (6.0 amd64)
"out of the box", I compiled Pacemaker 1.0 and 1.1 and tried to run it
on top of corosync. Unfortunately, when I load Pacemaker using
"corosync-cfgtool -l pacemaker", corosync crashes with SIGSEGV.

I already found this with gdb:

-----8<--------
Core was generated by `corosync'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ff68078e9 in pthread_mutex_lock () from /usr/lib/libpthread.so.1
(gdb) bt full
#0  0x00007f7ff68078e9 in pthread_mutex_lock () from /usr/lib/libpthread.so.1
No symbol table info available.
#1  0x00007f7ff7002e14 in ipc_thread_active (conn=0x7f7ff5308000) at
coroipcs.c:465
        conn_info = 0x7f7ff5308000
        retval = 0
#2  pthread_ipc_consumer (conn=0x7f7ff5308000) at coroipcs.c:674
        conn_info = 0x7f7ff5308000
        header = <optimized out>
        coroipc_response_header = {size = 660260756, id = 5, error = 0}
        send_ok = <optimized out>
        new_message = <optimized out>
        sem_value = 0
#3  0x00007f7ff6809d75 in ?? () from /usr/lib/libpthread.so.1
No symbol table info available.
#4  0x00007f7ff60759f0 in ___lwp_park50 () from /usr/lib/libc.so.12
No symbol table info available.
Cannot access memory at address 0x7f7ff0000000
(gdb) frame 1
#1  0x00007f7ff7002e14 in ipc_thread_active (conn=0x7f7ff5308000) at
coroipcs.c:465
465             pthread_mutex_lock (&conn_info->mutex);
(gdb) print &conn_info->mutex
$1 = (pthread_mutex_t *) 0x7f7ff5308050
(gdb) p *$
$2 = {ptm_magic = 858980355, ptm_errorcheck = 0 '\000', ptm_pad1 =
"\000\000", ptm_interlock = 0 '\000', ptm_pad2 = "\000\000", ptm_owner
= 0x0, ptm_waiters = 0x0, ptm_recursed = 0, ptm_spare2 = 0x0}
(gdb) frame 0
#0  0x00007f7ff68078e9 in pthread_mutex_lock () from /usr/lib/libpthread.so.1
(gdb) x/2i 0x00007f7ff68078e0
   0x7f7ff68078e0 <pthread_mutex_lock>: mov    %fs:0x0,%rax
=> 0x7f7ff68078e9 <pthread_mutex_lock+9>:       mov    0x10(%rax),%rdx
(gdb) info reg rax rdx
rax            0x7f7ffffffffe   140187732541438
rdx            0x0      0
(gdb) x/p 0x7f7ffffffffe
0x7f7ffffffffe: Cannot access memory at address 0x7f7ffffffffe
----------

-I think gdb tells us that there is a valid struct pthread_mutex_t in memory.
-I think that 4 bytes are copied to the adress rax point to. In this
case rax points to the last page in the stack segment, crossing the
border to the next page, which is not mapped:

00007f7ffffe0000-
00007f7fffffffff     128k 0000000000000000 rw-p-
(rwx) 1/0/0 00:00       0 -   [ stack ]

Any idea about this?

Regards,

Stephan
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux