Patent ID: 7743228

Claim:
An information processing apparatus for relaying a calling from a first module to a function inside a second module in software divided into a plurality of modules, the information processing apparatus comprising: at least one storage device having a plurality of storage areas; a log obtaining unit configured to relay the calling from the first module to the function inside the second module and obtain a log in the second module corresponding to the calling, the log including at least a write starting address of binary data and a data size thereof; an area deciding unit configured to decide a memory area in the at least one storage device where the binary data is written based on the write starting address and the data size; a determination unit configured to sequentially determine whether each byte of the memory area falls within an invalid area to which access is prohibited until a byte is encountered which falls within the invalid area; and a write control unit configured to write into a log file the binary data from the write starting address to a byte immediately before the byte which is encountered to fall within the invalid area in the memory area.