GNOME Bugzilla – Bug 591206
Crash at startup (GLib-ERROR **: gmem.c:156: failed to allocate 4294967295 bytes)
Last modified: 2009-08-10 17:19:42 UTC
Steps to reproduce:
OS: FreeBSD 7.2
GC version: 1.2.8
GLib version: 2.20.4
GC dies at startup with message:
GLib-ERROR **: gmem.c:156: failed to allocate 4294967295 bytes
How to reproduce:
1. Run gnome-commander.
The issue seem to be mentioned also at http://archive.netbsd.se/?ml=freebsd-gnome&a=2009-07&m=11113668.
Created attachment 140311 [details] [review]
Check for return of sysconf(_SC_GETPW_R_SIZE_MAX) & sysconf(_SC_GETGR_R_SIZE_MAX)
Please verify if the attached patch solves your problem. The crash was caused by unsupported sysconf() parameters (_SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX) on FreeBSD resulting in gcmd tries to allocate 4294967295B (-1) of memory.
The patch solved my problem.
Created attachment 140352 [details] [review]
The next version of the patch - the previous one incorrectly displays owner/group
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.