Changeset: d94d43355d9c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d94d43355d9c
Modified Files:
monetdb5/mal/mal_profiler.c
Branch: Jul2021
Log Message:
check if module name is there before using, solves crash on profiler
diffs (12 lines):
diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c
--- a/monetdb5/mal/mal_profiler.c
+++ b/monetdb5/mal/mal_profiler.c
@@ -303,7 +303,7 @@ renderProfilerEvent(Client cntxt, MalBlk
c =getVarName(mb, getArg(pci,j));
if(getVarSTC(mb,getArg(pci,j))){
InstrPtr stc = getInstrPtr(mb,
getVarSTC(mb,getArg(pci,j)));
- if (stc &&
+ if (stc && getModuleId(stc) &&
strcmp(getModuleId(stc),"sql") ==0 &&
strncmp(getFunctionId(stc),"bind",4)==0
&&
!logadd(&logbuf,
",\"alias\":\"%s.%s.%s\"",
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list