Odd crash of h2root

Hello all,
Due to circumstances outside my control an analysis program I use outputs ntuples in hbook format. I use h2root to convert this into trees in root files so that I can use root instead of paw. When running the h2root on the .hb files generated I occaisionally get an output that looks like this:

[code] RZOPEN. Cannot determine record length - EXCHANGE mode is used.
Converting directory //example

CALL ZTELL (99,1)

*** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:

#0 0x0000003af24aa47e in libc_waitpid (pid=24345, stat_loc=0x7fff2640f7d0, options=0) at …/sysdeps/unix/sysv/linux/waitpid.c:32
#1 0x0000003af243f019 in do_system (line=) at …/sysdeps/posix/system.c:149
#2 0x00007f83b4e1497e in TUnixSystem::StackTrace() () from /usr/local/lib/root/libCore.so
#3 0x00007f83b4e16ae3 in TUnixSystem::DispatchSignals(ESignals) () from /usr/local/lib/root/libCore.so
#4
#5 0x00007f83b366ff52 in fzimtb
() from /usr/local/lib/root/libminicern.so
#6 0x00007f83b36697a2 in rzins
() from /usr/local/lib/root/libminicern.so
#7 0x00007f83b36694ca in rzin_ () from /usr/local/lib/root/libminicern.so
#8 0x00007f83b367c9ae in hrzin_ () from /usr/local/lib/root/libminicern.so
#9 0x00007f83b367c401 in hrin_ () from /usr/local/lib/root/libminicern.so
#10 0x0000000000403f1e in convert_directory(char const*) ()
#11 0x00000000004043ee in main ()

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x00007f83b366ff52 in fzimtb_ () from /usr/local/lib/root/libminicern.so
#6 0x00007f83b36697a2 in rzins_ () from /usr/local/lib/root/libminicern.so
#7 0x00007f83b36694ca in rzin_ () from /usr/local/lib/root/libminicern.so
#8 0x00007f83b367c9ae in hrzin_ () from /usr/local/lib/root/libminicern.so
#9 0x00007f83b367c401 in hrin_ () from /usr/local/lib/root/libminicern.so
#10 0x0000000000403f1e in convert_directory(char const*) ()
#11 0x00000000004043ee in main ()
===========================================================[/code]

For reference a successful conversion looks like this:

RZOPEN. Cannot determine record length - EXCHANGE mode is used. Converting directory //example Converting RWN with ID= 1000, nentries = 298059 TFile** ./hb/run1084_nt.root HBOOK file: ./hb/run1084_nt.hb converted to ROOT TFile* ./hb/run1084_nt.root HBOOK file: ./hb/run1084_nt.hb converted to ROOT KEY: TTree h1000;1 NTPL

Can anyone help me work out what is happening? Is this genuinely a bug that I need to submit to the developers or is this something solvable on my end?
Thanks for the help.

Cheers,
James

Please disregard this question.
I have found that the error is in the analysis program and I have found a way to solve it.
For some reason if the analysis program analyzes too many buffers at once it starts writing garbage to the histogram book. which of course causes h2root to fail when it encounters that.