I'm having trouble with glib on the i.MX6, it seems to crash whenever a "%p" is sent to a *printf function.
To replicate the problem:
rm -rf .gstreamer-0.10&& GST_DEBUG=5 gst-inspect
Mine aborts in _g_gnulib_vasnprintf. Does anyone have a solution?
Solved! Go to Solution.
You can try this patch under your ltib folder ($ patch -p1 < patch_file):
From 957b52f24b01c9df9c361fb4d87228b80ca94e3c Mon Sep 17 00:00:00 2001
From: Terry Lv <r65388@freescale.com>
Date: Tue, 6 Nov 2012 15:59:03 +0800
Subject: [PATCH] Fix g_print segmentation fault with %p in glib2.
Signed-off-by: Terry Lv <r65388@freescale.com>
---
dist/lfs-5.1/glib2/glib2.spec | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dist/lfs-5.1/glib2/glib2.spec b/dist/lfs-5.1/glib2/glib2.spec
index dd9cbaf..6e77885 100644
--- a/dist/lfs-5.1/glib2/glib2.spec
+++ b/dist/lfs-5.1/glib2/glib2.spec
@@ -27,6 +27,9 @@ glib_cv_stack_grows=no \
glib_cv_uscore=no \
ac_cv_func_posix_getpwuid_r=yes \
ac_cv_func_posix_getgrgid_r=yes \
+glib_cv_long_long_format=ll \
+ac_cv_func_printf_unix98=yes \
+ac_cv_func_vsnprintf_c99=yes \
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
make
--
1.7.10.4
The above patch can also be obtained from
You can try this patch under your ltib folder ($ patch -p1 < patch_file):
From 957b52f24b01c9df9c361fb4d87228b80ca94e3c Mon Sep 17 00:00:00 2001
From: Terry Lv <r65388@freescale.com>
Date: Tue, 6 Nov 2012 15:59:03 +0800
Subject: [PATCH] Fix g_print segmentation fault with %p in glib2.
Signed-off-by: Terry Lv <r65388@freescale.com>
---
dist/lfs-5.1/glib2/glib2.spec | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dist/lfs-5.1/glib2/glib2.spec b/dist/lfs-5.1/glib2/glib2.spec
index dd9cbaf..6e77885 100644
--- a/dist/lfs-5.1/glib2/glib2.spec
+++ b/dist/lfs-5.1/glib2/glib2.spec
@@ -27,6 +27,9 @@ glib_cv_stack_grows=no \
glib_cv_uscore=no \
ac_cv_func_posix_getpwuid_r=yes \
ac_cv_func_posix_getgrgid_r=yes \
+glib_cv_long_long_format=ll \
+ac_cv_func_printf_unix98=yes \
+ac_cv_func_vsnprintf_c99=yes \
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
make
--
1.7.10.4
The above patch can also be obtained from