NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Porting Corosync/Pacemaker - Help needed with gdb
In article
<CABZpUSWKyWkJnWEsFuuHpAuj+YxuxZ3ny=kEFW2pzk6B3ZUaWQ%mail.gmail.com@localhost>,
Stephan <stephanwib%googlemail.com@localhost> wrote:
>-=-=-=-=-=-
>
>Hi folks,
>
>some time ago I managed to get Corosync working on NetBSD - now the
>official 1.x builds can be compiled and run "out of the box". Recently, I
>made Pacemaker 1.1 and cluster_glue compile after making some cosmetic
>changes to the code.
>
>However, when I load the Pacemaker subsystem into Corosync, corosync
>crashes with SIGSEGV. It alway does in pthread_mutex_lock(), for example in
>the following code block:
>
>===========
>static int ipc_thread_active (void *conn)
>{
> struct conn_info *conn_info = (struct conn_info *)conn;
> int retval = 0;
>
>
> pthread_mutex_lock
>(&conn_info->mutex); <<<--- CRASH
> if (conn_info->state == CONN_STATE_THREAD_ACTIVE) {
> retval = 1;
> }
> pthread_mutex_unlock (&conn_info->mutex);
> return (retval);
>}
>==================
>
>I am not sure how to track this down with gdb. Here are some findings:
If you compile with -g you should be able to print the contents of conn_info.
christos
Home |
Main Index |
Thread Index |
Old Index