SIGBUS Error !

Discussion in 'C Programming' started by Sami, Nov 2, 2010.

  1. Sami

    Sami Guest

    Hi !

    What can be the reasons to the following SIGBUS error ?

    I thought SIGBUS is caused due to either Memory mis-allignment or
    non-existent physical address.
    I can access all the arguments which are passed to the function
    "hash_walk". All addresses are word-aligned (divisible by 4 )

    The program dumps even before the successful function call .

    the gdb backtrace is attached !

    (gdb) s
    525 retval = hash_walk (
    g_bc_mgcp_var.p_associd_to_mg_blk_ht,
    526 (hash_walk_function_t)
    bc_ha_assoc_rep_callbk,
    527 &p_ctrl_audit_req->audit_id
    528 );
    (gdb)

    Program received signal SIGBUS, Bus error.
    0xff3c27a0 in ?? ()
    (gdb) bt
    #0 0xff3c27a0 in ?? ()
    #1 0xff3b28b8 in ?? ()
    #2 0x15aee4 in _PROCEDURE_LINKAGE_TABLE_ ()
    #3 0x79fd8 in bc_ha_proc_ctrl_audit_req (p_data=0xffbea978 "",
    p_err=0xffbea966)
    at /ha_sipsa/ha/softswitch/mgc/bccas/mgcp/src/bc_ha_fsm.c:525
    ........

    g_bc_mgcp_var.p_associd_to_mg_blk_ht = (hash_table_t *) 0x16b7a4
    bc_ha_assoc_rep_callbk = {gw_return_t (void *, U32bit, void *)}
    0x790d8 <bc_ha_assoc_rep_callbk>
    &p_ctrl_audit_req->audit_id = (U32bit *) 0xffbea978

    The function called is part of a .so library . Can be it cause of the
    problem ?
     
    Sami, Nov 2, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. junky_fellow

    signals (SIGBUS and SIGSEGV)

    junky_fellow, Aug 3, 2004, in forum: C Programming
    Replies:
    4
    Views:
    432
    James Stevenson
    Sep 3, 2004
  2. Replies:
    4
    Views:
    693
  3. SIGBUS, Bus error.

    , Aug 1, 2007, in forum: C++
    Replies:
    10
    Views:
    2,451
    Jim Langston
    Aug 4, 2007
  4. prasadi

    coredump due to SIGBUS

    prasadi, Apr 22, 2009, in forum: C Programming
    Replies:
    0
    Views:
    549
    prasadi
    Apr 22, 2009
  5. Ville Mattila
    Replies:
    2
    Views:
    98
    Ville Mattila
    Aug 22, 2003
Loading...

Share This Page