#1 Coredump on FreeBSD using v.02.11.94

closed-fixed
nobody
None
5
2008-03-05
2008-03-01
Volker
No

Hi,

the latest version causes a core dump on FreeBSD.

vmbsd63# ./inadyn-advanced Sat Mar 1 11:01:10 2008: I:LANG: Language file search locale: C...
Segmentation fault (core dumped)

The reason is the following call in function init_lang_strings:

searchedLangFile(pLOG_FILE,&lang_file_and_path,strcat((char *) str_to_lwr(strncpy(langCode,strncpy(
localeBuff,szLocale,strchr(szLocale,'_')-szLocale),2)),".lng"));

Seems the language code does not work correct if szLocale is "C" like it is on UNIX.

P.S.: A compiler flag to disable debug output strings would be really great.

Regards
Volker

Discussion

  • Bryan Hoover

    Bryan Hoover - 2008-03-05

    Logged In: YES
    user_id=977323
    Originator: NO

    Thanks!

    Fix committed to unicows branch. I'll release a new version in a day, or so.

    And, I'm looking into toning down the chatter -- hopefully it was helpful seeing what the problem was though.

    Bryan

     
  • Bryan Hoover

    Bryan Hoover - 2008-03-05
    • status: open --> closed-fixed
     

Log in to post a comment.