Recently I built grip 3.2.0 from ports on OpenBSD/sparc64 -current. Shortly after starting to rip a track grip crashes with a bus error.
#0 0x0000000056086e80 in g_convert_with_iconv ()
#1 0x00000000560870c8 in g_convert ()
#2 0x00000000560877cc in g_locale_from_utf8 ()
#3 0x0000000000123658 in __register_frame_info ()
#4 0x0000000000123658 in __register_frame_info ()
Previous frame identical to this frame (corrupt stack?)
The only call of g_locale_from_utf8 is in src/launch.c
"make" complains about
launch.c: In function `ArgsToLocale':
launch.c:249: warning: passing arg 4 of `g_locale_from_utf8' from incompatible pointer type
g_locale_from_utf8 is called with a pointer to int instead of to gsize.
The attached patch fixes this for me.
In the development version that code part seems to be commented out. Maybe it would be helpful to even fix this there too.
Log in to post a comment.