On Wed, Apr 10, 2013 at 01:32:26PM +0200, Roland Mainz wrote:
> Hi!
>
> ----
>
> [CC:'ing Werner since this is i18n related and was only observed on
> SuSE 12.3 Linux for now...]
IMHO you may use the --args option of the gdb. Be sure that all
debugging symbols are installed (libc e.g.) and ksh is not stripped.
Then start your ksh with
gdb --args ksh
... set a break point as usual
break iconv
run
... wait on ksh
builtin iconv
iconv -t UTF-8 astksh20130409_suse123_32bit_builtin_iconv_hang1.txt
now this should trigger the breka and with the help of `bt' the place where
iconv is used the first time should be visible.
> Attached (as "astksh20130409_suse123_32bit_builtin_iconv_hang1.txt.gz")
> is a (compressed) text file which causes the AST "iconv" builtin
> utility from ast-ksh.2013-04-09 to "hang" in an endless loop in 32bit
> i386 builds (AMD64 64bit builds are OK... *ONLY* the 32bit builds loop
> forever...).
> Program received signal SIGINT, Interrupt.
> 0xf7dd2447 in __gconv_transform_utf8_internal () from /lib/libc.so.6
> (gdb) where
> #0 0xf7dd2447 in __gconv_transform_utf8_internal () from /lib/libc.so.6
> #1 0xf7dcd00a in __gconv () from /lib/libc.so.6
> #2 0xf7dcc5b2 in iconv () from /lib/libc.so.6
> #3 0x00000001 in ?? ()
> #4 0x0821b400 in ?? ()
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
> -- snip --
> (I don't know how to "fix" the "previous frame inner to this frame"
> issue... ;-( )
>
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers