On 12/09/2015 01:59 PM, Philippe Waroquiers wrote:
> On Wed, 2015-12-09 at 13:41 -0800, Nikolaus Rath wrote:
>> I believe this is the relevant objdump output - but again I don't understand 
>> it. Does it tell you anything?
>>
>>   <1><a8f8c>: Abbrev Number: 42 (DW_TAG_subprogram)
>>      <a8f8d>   DW_AT_decl_line   : 1916
>>      <a8f8f>   DW_AT_decl_file   : 1
>>      <a8f90>   DW_AT_declaration : 1
>>      <a8f91>   DW_AT_name        : (indirect string, offset: 0xa5fc): 
>> h5dump_attr_int
>>      <a8f95>   DW_AT_external    : 1
>>      <a8f96>   DW_AT_inline      : 1     (inlined)
> 
> So, we have now clearly confirmed that the wrong stacktrace is caused by
> valgrind not understanding that h5dump_attr_int has been inlined.
> 
> What you could do is to modify storage.c line 668 put a (1) instead of
> (0) :
> 
>      if (0) VG_(message)
>               (Vg_DebugMsg,
>                "addInlInfo: fn %s inlined as addr_lo %#lx,addr_hi %#lx,"
>                "caller fndn_ix %u %s:%d\n",
>                inlinedfn, addr_lo, addr_hi, fndn_ix,
>                ML_(fndn_ix2filename) (di, fndn_ix), lineno);
> 
> 
> This will then trace the inlined call information.
> If this inlined info is properly understood and recorded, you should
> see some information produced that tells that h5dump_attr_int
> has been inlined around the program counter of:
> ==2047==    by 0xB99FC6: taehdf5_mp_h5append_data_double_0d_ 
> (taehdf5.f90:1936)
> 

The output is still the same:

Thread 1: status = VgTs_Runnable (lwpid 18278)
==18278==    at 0xFE9640: H5FL_reg_calloc (in 
/mnt/nfs-home/nrath/Q2D/LamyRidge/src/model/build/LR_model)
==18278==    by 0xF7F3D9: H5A_create (in 
/mnt/nfs-home/nrath/Q2D/LamyRidge/src/model/build/LR_model)
==18278==    by 0xF79500: H5Acreate2 (in 
/mnt/nfs-home/nrath/Q2D/LamyRidge/src/model/build/LR_model)
==18278==    by 0xF682AD: h5acreate_c_ (in 
/mnt/nfs-home/nrath/Q2D/LamyRidge/src/model/build/LR_model)
==18278==    by 0xF626A6: h5a_mp_h5acreate_f_ (in 
/mnt/nfs-home/nrath/Q2D/LamyRidge/src/model/build/LR_model)
==18278==    by 0xB99FC6: taehdf5_mp_h5append_data_double_0d_ (taehdf5.f90:1936)
==18278==    by 0xB248E6: plot_m_mp_plots_ (plot_hdf5.f:144)
==18278==    by 0xB3B722: lr_mod_m_mp_check_dt_ (LR_model.F:487)
==18278==    by 0xB272E3: lr_mod_m_mp_lr_step_ (LR_model.F:252)
==18278==    by 0xB261DD: MAIN__ (LR_model.F:544)
==18278==    by 0x406E3D: main (in 
/mnt/nfs-home/nrath/Q2D/LamyRidge/src/model/build/LR_model)
client stack range: [0xFFEBFE000 0xFFF000FFF] client SP: 0xFFEC2CF48


Best,
-Nikolaus


------------------------------------------------------------------------------
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to