SIG32/SIGSEGV in balsa 2.1.2



Hello,

as I had no success trying to get balsa 2.0.17 working I tried to  
install balsa 2.1.2 and get the following crash every time I start  
balsa:

(gdb) run --disable-crash-dialog
Starting program: /home/tf/download/internet/balsa/2.1/balsa-2.1.2/src/ 
balsa --disable-crash-dialog
audio_alsa: no cards found!
opening Eingang..

Program received signal SIG32, Real-time event 32.
0x41217a14 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb) bt
#0  0x41217a14 in pthread_getconcurrency () from /lib/libpthread.so.0
#1  0x41217858 in pthread_getconcurrency () from /lib/libpthread.so.0
#2  0x41216f02 in pthread_create () from /lib/libpthread.so.0
#3  0x0809040b in balsa_window_real_open_mbnode (window=0x4121db84,
  mbnode=0x8190ce0) at main-window.c:1641
#4  0x41006739 in g_cclosure_marshal_VOID__OBJECT ()
 from /usr/lib/libgobject-2.0.so.0
#5  0x081baa48 in ?? ()
#6  0x08190ce0 in ?? ()
#7  0x081aa598 in ?? ()
#8  0x40ff6eba in g_object_unref () from /usr/lib/libgobject-2.0.so.0
#9  0x0821b928 in ?? ()
#10 0x410201a4 in ?? () from /usr/lib/libgobject-2.0.so.0
#11 0xbffff200 in ?? ()
#12 0x410201a4 in ?? () from /usr/lib/libgobject-2.0.so.0
#13 0xbffff210 in ?? ()
#14 0x081ba7f0 in ?? ()
#15 0x000001d0 in ?? ()
#16 0x40ff167d in g_cclosure_new_swap () from /usr/lib/libgobject-2.0. 
so.0
#17 0x081ba7f0 in ?? ()
#18 0x00000000 in ?? ()
#19 0x00000002 in ?? ()
#20 0xbffff210 in ?? ()
#21 0xbffff108 in ?? ()
#22 0x080903b0 in real_open_mbnode () at main-window.c:1584
Previous frame inner to this frame (corrupt stack?)
(gdb) list
1584            gdk_threads_leave();
1585    #ifdef BALSA_USE_THREADS
1586            pthread_mutex_unlock(&open_lock);
1587    #endif
1588            return;
1589        }
1590        g_assert(index->mailbox_node);
1591        g_signal_connect(G_OBJECT (index), "index-changed",
1592                         G_CALLBACK  
(balsa_window_index_changed_cb),
1593                         window);
(gdb) info locals
No symbol table info available.
(gdb) up
#1  0x41217858 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb) list
1594
1595        /* if(config_short_label) label = gtk_label_new(mbnode-
> mailbox->name);
1596           else */
1597        label = balsa_notebook_label_new(mbnode);
1598
1599        /* for updating date when settings change */
1600        index->line_length = balsa_app.line_length;
1601
1602        /* store for easy access */
1603        scroll = gtk_scrolled_window_new(NULL, NULL);
(gdb) info locals
No symbol table info available.
(gdb) up
#2  0x41216f02 in pthread_create () from /lib/libpthread.so.0
(gdb) list
1604        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll),
1605                                       GTK_POLICY_AUTOMATIC,
1606                                       GTK_POLICY_AUTOMATIC);
1607        gtk_container_add(GTK_CONTAINER(scroll), GTK_WIDGET 
(index));
1608        gtk_widget_show(scroll);
1609        gtk_notebook_append_page(GTK_NOTEBOOK(balsa_app. 
main_window->notebook),
1610                                 scroll, label);
1611
1612        /* change the page to the newly selected notebook item */
1613        page_num = gtk_notebook_page_num(GTK_NOTEBOOK
(gdb) info locals
No symbol table info available.
(gdb) up
#3  0x0809040b in balsa_window_real_open_mbnode (window=0x4121db84,
  mbnode=0x8190ce0) at main-window.c:1641
1641        pthread_create(&open_thread, NULL, (void*(*)(void*)) 
real_open_mbnode,
(gdb) list
1636
1637    #endif
1638        g_object_set_data(G_OBJECT(mbnode), BALSA_WINDOW_KEY,  
window);
1639        g_object_ref(mbnode);
1640    #ifdef BALSA_USE_THREADS
1641        pthread_create(&open_thread, NULL, (void*(*)(void*)) 
real_open_mbnode,
1642                       mbnode);
1643        pthread_detach(open_thread);
1644    #else
1645        real_open_mbnode(mbnode);
(gdb) info locals
open_thread = 3221221904
(gdb) up
#4  0x41006739 in g_cclosure_marshal_VOID__OBJECT ()
 from /usr/lib/libgobject-2.0.so.0


As this looked like a threading problem to me, I did a configure -- 
disable-threads but this time get a segfault every time I start. Output  
of gdb is:

(gdb) run --disable-crash-dialog
Starting program: /home/tf/download/internet/balsa/2.1/balsa-2.1.2/src/ 
balsa --disable-crash-dialog
audio_alsa: no cards found!
opening Eingang..

Program received signal SIGSEGV, Segmentation fault.
libbalsa_condition_clone (cnd=0x0) at filter-funcs.c:416
416         new_cnd->negate = cnd->negate;
(gdb) bt
#0  libbalsa_condition_clone (cnd=0x0) at filter-funcs.c:416
#1  0x080c23d9 in libbalsa_condition_clone (cnd=0x8121e00)
  at filter-funcs.c:451
#2  0x080ca6c6 in libbalsa_mailbox_search_iter_new  
(condition=0x8121e00)
  at mailbox.c:1118
#3  0x080c969c in libbalsa_mailbox_run_filters_on_reception  
(mailbox=0x818be58)
  at mailbox.c:579
#4  0x080d314d in libbalsa_mailbox_local_set_threading  
(mailbox=0x818be58,
  thread_type=LB_MAILBOX_THREADING_FLAT) at mailbox_local.c:415
#5  0x080cba85 in lbm_set_threading (mailbox=0x818be58,  
thread_type=137577752)
  at mailbox.c:1546
#6  0x080cbbe9 in libbalsa_mailbox_set_threading (mailbox=0x818be58,
  thread_type=LB_MAILBOX_THREADING_FLAT) at mailbox.c:1564
#7  0x0806da91 in balsa_index_load_mailbox_node (index=0x8280ad0,
  mbnode=0x8280ad0) at balsa-index.c:794
#8  0x0808e2f6 in real_open_mbnode (mbnode=0x818bf80) at main-window. 
c:1575
#9  0x41006739 in g_cclosure_marshal_VOID__OBJECT ()
 from /usr/lib/libgobject-2.0.so.0
#10 0x0818bf80 in ?? ()
#11 0x0818bf80 in ?? ()
#12 0x081a45b8 in ?? ()
#13 0x40ff6eba in g_object_unref () from /usr/lib/libgobject-2.0.so.0
#14 0x08216c70 in ?? ()
#15 0x410201a4 in ?? () from /usr/lib/libgobject-2.0.so.0
#16 0xbffff200 in ?? ()
#17 0x410201a4 in ?? () from /usr/lib/libgobject-2.0.so.0
#18 0xbffff210 in ?? ()
#19 0x081b5b48 in ?? ()
#20 0x000001d0 in ?? ()
#21 0x40ff167d in g_cclosure_new_swap () from /usr/lib/libgobject-2.0. 
so.0
#22 0x081b5b48 in ?? ()
#23 0x00000000 in ?? ()
#24 0x00000002 in ?? ()
#25 0xbffff210 in ?? ()
#26 0xbffff108 in ?? ()
#27 0x0808e510 in real_open_mbnode () at main-window.c:1584
Previous frame inner to this frame (corrupt stack?)
(gdb) list
1584            gdk_threads_leave();
1585    #ifdef BALSA_USE_THREADS
1586            pthread_mutex_unlock(&open_lock);
1587    #endif
1588            return;
1589        }
1590        g_assert(index->mailbox_node);
1591        g_signal_connect(G_OBJECT (index), "index-changed",
1592                         G_CALLBACK  
(balsa_window_index_changed_cb),
1593                         window);
(gdb) info locals
new_cnd = (LibBalsaCondition *) 0x8334518
(gdb) up
#1  0x080c23d9 in libbalsa_condition_clone (cnd=0x8121e00)
  at filter-funcs.c:451
451             new_cnd->match.andor.right =
(gdb) list
446             break;
447         case CONDITION_AND:
448         case CONDITION_OR:
449             new_cnd->match.andor.left =
450                 libbalsa_condition_clone(cnd->match.andor.left);
451             new_cnd->match.andor.right =
452                 libbalsa_condition_clone(cnd->match.andor.right);
453             break;
454         case CONDITION_NONE:
455             /* to avoid warnings */
(gdb) info locals
new_cnd = (LibBalsaCondition *) 0x8334490
(gdb) up
#2  0x080ca6c6 in libbalsa_mailbox_search_iter_new  
(condition=0x8121e00)
  at mailbox.c:1118
1118        iter->condition = libbalsa_condition_clone(condition);
(gdb) list
1113        g_return_val_if_fail(condition != NULL, NULL);
1114
1115        iter = g_new(LibBalsaMailboxSearchIter, 1);
1116        iter->mailbox = NULL;
1117        iter->stamp = 0;
1118        iter->condition = libbalsa_condition_clone(condition);
1119        iter->user_data = NULL;
1120
1121        return iter;
1122    }
(gdb) info locals
iter = (LibBalsaMailboxSearchIter *) 0x83343f0
(gdb) up
#3  0x080c969c in libbalsa_mailbox_run_filters_on_reception  
(mailbox=0x818be58)
  at mailbox.c:579
579             search_iter = libbalsa_mailbox_search_iter_new 
(&cond_and);


After that I deleted all my filters from the balsa configuration file  
and balsa started ok. When I tried to check for new mails, the inbox  
unread count was correctly increased to 1 but I couldn't see the  
messages. After closing and reopening the message was there, but I got  
an error message saying: Couldn't sync mailbox Eingang







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