On Fri, 2022-01-14 at 13:03 +0100, Bilal Emohmadian wrote: > Hi OpenBSD Team. > > Writing my game engine in Cpp to see OpenBSD support but when my program > want to use this method. > CC is ok to use getline's method but binary don't. > > > a.out(84808) in recallocarray(): bogus pointer (double free?) 0x7f7fffff47a8
You give us 0 code to work with. So everything is pure speculation. My assumption is that you have something like: char *line; size_t n = 0; ... getline(&line, &n, file); since line is not initialised and thus contains garbage it will crash on the re*alloc*. If you initialise line to NULL it should work. But like I said, pure speculation. martijn@
