Segmentation Fault when running xgraph

Hey, I require to use ns2 network simulator for my computer network course, it also uses xgraph to plot the graphs I guess. I have installed xgraph correctly (hopefully, because make install worked properly). but when I try to run xgraph it outputs segmentation fault.

then I tried running gdb xgraph
and then hit r
I’m posting results from my console here, it would be appreciated if anyone can help me install this as I require to study for my lab test.

gdb results:

Reading symbols from xgraph...
(gdb) r
Starting program: /usr/local/bin/xgraph 

Program received signal SIGSEGV, Segmentation fault.
0x00005555555668fd in st_lookup (table=0x55555558290c, key=0x5555555777ec "Debug", value=0x7fffffffd4d0) at st.c:153
153         FIND_ENTRY(table, hash_val, key, ptr, last);
(gdb) bt
#0  0x00005555555668fd in st_lookup (table=0x55555558290c, key=0x5555555777ec "Debug", value=0x7fffffffd4d0) at st.c:153
#1  0x0000555555567c65 in param_set (name=0x5555555777ec "Debug", type=BOOL, val=0x5555555777e6 "false") at params.c:114
#2  0x000055555556ef63 in InitSets (o=4) at init.c:152
#3  0x00005555555578fe in main (argc=1, argv=0x7fffffffdc88) at xgraph.c:130