Operating System - HP-UX
1825465 Members
3575 Online
109681 Solutions
New Discussion юеВ

vsprintf & vsnprintf crash on 11.23 with muti-byte characters

 
Sumesh_1
Honored Contributor

vsprintf & vsnprintf crash on 11.23 with muti-byte characters

Hello,

I have issues with vsprintf and vsnprintf dumping core with muti-byte characters. If I change the locale to English [C], then it works fine.
Is there some latest libC patch that fixes this issue ?

I have a old version of libC with me on my system:

what /usr/lib/hpux32/libc.so.1
/usr/lib/hpux32/libc.so.1:
$ B11.23_LR Aug 29 2003 20:48:35 $

Thanks
Sumesh
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: vsprintf & vsnprintf crash on 11.23 with muti-byte characters

Yours looks like the original 11.23 libc. You could try the latest: PHCO_37228
Sumesh_1
Honored Contributor

Re: vsprintf & vsnprintf crash on 11.23 with muti-byte characters

Hello,

I updated libC to the latest one, still no luck. :-(

what /usr/lib/hpux32/libc.so.1
/usr/lib/hpux32/libc.so.1:
$ PATCH_11.23/PHCO_37228 Sep 22 2007 02:10:43 $

The application continues to core in vsnprintf. Are you folks aware of any such issues with vsnprintf on localised platforms ?

Thanks
Sumesh
Dennis Handly
Acclaimed Contributor

Re: vsprintf & vsnprintf crash on 11.23 with muti-byte characters

>The application continues to core in vsnprintf. Are you folks aware of any such issues with vsnprintf on localised platforms?

No. Do you have a small test case? What signal are you getting?
Are you using threads?
Sumesh_1
Honored Contributor

Re: vsprintf & vsnprintf crash on 11.23 with muti-byte characters

There was a problem with the catalog files. Solved it finally :-) Phew ! Thanks for the help.