Hercules
Hercules copied to clipboard
[ Error ] :nullpo info
Please my emulator is printing the following bugs could someone help me.
Bug: (06/25/2021 09:39:56) [ Error ] : --- nullpo info -------------------------------------------- (06/25/2021 09:39:56) [ Error ] : pc.c:4622: 'sd' in function `pc_search_inventory' (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x82ad58b] (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x8174af6] (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x80839cf] (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x808e7e3] (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x822ab3c] (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x821f4a8] (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x820a2e1] (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x8299329] (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x8157b41] (06/25/2021 09:39:56) [ Error ] : ./map-server() [0x8296f8b] (06/25/2021 09:39:56) [ Error ] : --- end nullpo info ----------------------------------------
(06/26/2021 00:53:22) [ Error ] : --- nullpo info -------------------------------------------- (06/26/2021 00:53:22) [ Error ] : clif.c:9184: 'bl' in function `clif_soundeffectall' (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x82ad60b] (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x80cf8d3] (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x822d276] (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x8212ac4] (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x821a0c5] (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x8138805] (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x813f5e4] (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x8138624] (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x821cb62] (06/26/2021 00:53:22) [ Error ] : ./map-server() [0x82a396c] (06/26/2021 00:53:22) [ Error ] : --- end nullpo info ----------------------------------------
functions below:
static int pc_search_inventory(struct map_session_data *sd, int item_id) { int i; nullpo_retr(INDEX_NOT_FOUND, sd);
ARR_FIND(0, sd->status.inventorySize, i, sd->status.inventory[i].nameid == item_id && (sd->status.inventory[i].amount > 0 || item_id == 0));
return (i < sd->status.inventorySize) ? i : INDEX_NOT_FOUND;
}
static void clif_soundeffectall(struct block_list *bl, const char *name, int type, enum send_target coverage) { unsigned char buf[40];
nullpo_retv(bl);
nullpo_retv(name);
WBUFW(buf,0) = 0x1d3;
safestrncpy(WBUFP(buf,2), name, NAME_LENGTH);
WBUFB(buf,26) = type;
WBUFL(buf,27) = 0;
WBUFL(buf,31) = bl->id;
clif->send(buf, packet_len(0x1d3), bl, coverage);
}
at first you not have correct stack trace. what os and compiler you using?
and is this is latest hercules? by line numbers look like it's not.
It's not the latest version, no, because I have several changes in the src that will take a long time to be migrated. The operating system and linux.
linux is kernel and not os. what compiler you using? and what version?
also try reproduce same issue on clean hercules