After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591206 - Crash at startup (GLib-ERROR **: gmem.c:156: failed to allocate 4294967295 bytes)
Crash at startup (GLib-ERROR **: gmem.c:156: failed to allocate 4294967295 by...
Status: RESOLVED FIXED
Product: gnome-commander
Classification: Other
Component: application
1.2.x
Other All
: Normal critical
: 1.2.9
Assigned To: epiotr
epiotr
Depends on:
Blocks:
 
 
Reported: 2009-08-09 09:07 UTC by Eugen Zagorodniy
Modified: 2009-08-10 17:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Check for return of sysconf(_SC_GETPW_R_SIZE_MAX) & sysconf(_SC_GETGR_R_SIZE_MAX) (395 bytes, patch)
2009-08-10 09:55 UTC, epiotr
none Details | Review
gcmd-591206.patch (732 bytes, patch)
2009-08-10 17:19 UTC, epiotr
accepted-commit_now Details | Review

Description Eugen Zagorodniy 2009-08-09 09:07:37 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
aborting...

How to reproduce:
1. Run gnome-commander.


Stack trace:
  • #0 kill
    from /lib/libc.so.7
  • #1 raise
    from /lib/libthr.so.3
  • #2 abort
    from /lib/libc.so.7
  • #3 g_logv
    from /usr/local/lib/libglib-2.0.so.0
  • #4 g_log
    from /usr/local/lib/libglib-2.0.so.0
  • #5 g_malloc0
    from /usr/local/lib/libglib-2.0.so.0
  • #6 GnomeCmdOwner
    at owner.cc line 66
  • #7 __static_initialization_and_destruction_0
    at owner.cc line 34
  • #8 global constructors keyed to gcmd_owner
    at owner.cc line 138
  • #9 __do_global_ctors_aux
  • #10 _init
  • #11 ??


Other information:
The issue seem to be mentioned also at http://archive.netbsd.se/?ml=freebsd-gnome&a=2009-07&m=11113668.
Comment 1 epiotr 2009-08-10 09:55:58 UTC
Created attachment 140311 [details] [review]
Check for return of sysconf(_SC_GETPW_R_SIZE_MAX) & sysconf(_SC_GETGR_R_SIZE_MAX)
Comment 2 epiotr 2009-08-10 10:16:13 UTC
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.
Comment 3 Eugen Zagorodniy 2009-08-10 17:09:52 UTC
The patch solved my problem.
Comment 4 epiotr 2009-08-10 17:19:18 UTC
Created attachment 140352 [details] [review]
gcmd-591206.patch

The next version of the patch - the previous one incorrectly displays owner/group
Comment 5 epiotr 2009-08-10 17:19:42 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.