Running lazbuild through valgrind shows that a empty string is passed to SysUtils.DIRECTORYEXISTS function.
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
I have noticed random crashes at lazbuild when trying to build same project to different targets.
Trying to fix these crashes by using valgrind, it is have notified me that there is something odd when calling DirectoryExists function.
See Additional Information field for more info.
Additional information:
==63588== Syscall param stat(file_name) points to unaddressable byte(s) ==63588== at 0x40D104: SYSTEM_$$_FPSYSCALL$INT64$INT64$INT64$$INT64 (syscall.inc:80) ==63588== by 0x40DFAE: SYSTEM_$$_FPSTAT$PCHAR$STAT$$LONGINT (ossysc.inc:121) ==63588== by 0x4C0479: SYSUTILS_$$_DIRECTORYEXISTS$RAWBYTESTRING$BOOLEAN$$BOOLEAN (sysutils.pp:693) ==63588== by 0x4DD47E: LAZFILEUTILS_$$_DIRECTORYEXISTSUTF8$ANSISTRING$$BOOLEAN (unixlazfileutils.inc:47) ==63588== by 0x4E03E9: LAZFILEUTILS_$$_DIRPATHEXISTS$ANSISTRING$$BOOLEAN (lazfileutils.pas:520) ==63588== by 0x4E067F: LAZFILEUTILS_$$_FORCEDIRECTORY$ANSISTRING$$BOOLEAN (lazfileutils.pas:552) ==63588== by 0x405B3E: P$LAZBUILD$_$TLAZBUILDAPPLICATION_$_BUILDPROJECT$ANSISTRING$$BOOLEAN_$$_STARTBUILDING$$BOOLEAN (lazbuild.lpr:836) ==63588== by 0x404EB3: P$LAZBUILD$_$TLAZBUILDAPPLICATION_$__$$_BUILDPROJECT$ANSISTRING$$BOOLEAN (lazbuild.lpr:937) ==63588== by 0x402C2C: P$LAZBUILD$_$TLAZBUILDAPPLICATION_$__$$_BUILDFILE$ANSISTRING$$BOOLEAN (lazbuild.lpr:426) ==63588== by 0x409E00: P$LAZBUILD$_$TLAZBUILDAPPLICATION_$__$$_RUN (lazbuild.lpr:1475) ==63588== by 0x40D065: main (lazbuild.lpr:1878) ==63588== Address 0x0 is not stack'd, malloc'd or (recently) free'd
Mantis conversion info:
- Mantis ID: 37133
- OS: Arch
- OS Build: 3.17.4-1
- Build: r63214
- Platform: Linux x86_64
- Version: 2.1 (SVN)
- Fixed in revision: r63327 (#4e587ce8)