[Freewnn-users 144] make 'CCOPTIONS=-g' と指定するとatodがSEGVで落ちるようになる (was: Released 1.1.1-a022)

Back to archive index

1xx itsan****@gmail*****
2013年 8月 11日 (日) 19:06:25 JST

openSUSE 13.1 Milestone 3および4 x64 環境でbinary packageを作っていて、

1. make 'CCOPTIONS=-g' と指定するとatodがSEGVで落ちるようになる。

make  'CCOPTIONS=-g'
と打ったときでatodのfile sizeが異なります。

 'CCOPTIONS=-g'  あり:
> ls -l atod
-rwxr-xr-x 1 mitsutoshi users 217286 Aug 11 17:55 atod
> ls -l ~/atod
-rwxr-xr-x 1 mitsutoshi users 217183 Aug 11 15:55 /home/mitsutoshi/atod

make  'CCOPTIONS=-g'  と打った方はmakeの辞書の作成時にSEGVで落ちます。

GNU gdb (GDB; openSUSE Factory)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
For bug reporting instructions, please see:
Reading symbols from
[New LWP 20874]
Core was generated by `../..//Wnn/jutil/atod -p Version -P Version -h
../..//Wnn/jd/hinsi.data bio.dic'.
Program terminated with signal 11, Segmentation fault.
#0  __strncpy_ssse3 () at ../sysdeps/x86_64/multiarch/strcpy-ssse3.S:43
43      ../sysdeps/x86_64/multiarch/strcpy-ssse3.S: No such file or directory.
(gdb) bt full
#0  __strncpy_ssse3 () at ../sysdeps/x86_64/multiarch/strcpy-ssse3.S:43
No locals.
#1  0x00000000004065da in strncpy (__len=16, __src=<optimized out>,
    __dest=0x658428 <jt+8> "") at /usr/include/bits/string3.h:120
No locals.
#2  new_pwd (src=src @ entry=0x7fff33a4d760 "Pubdic+ Version",
    encd=encd @ entry=0x658428 <jt+8> "") at ../..//Wnn/etc/pwd.c:93
        i = 2
        x = <optimized out>
        c = <optimized out>
        xx = "7j"
        cr = <optimized out>
#3  0x0000000000401a25 in get_pwd (fname=0x7fff33a4f1c5 "Version",
    crypted=0x658428 <jt+8> "") at atod.c:807
        pwd = "Pubdic+ Version"
        fp = 0x106b010
#4  0x0000000000401b01 in init (argc=8, argv=0x7fff33a4d8d8) at atod.c:147
        c = <optimized out>
#5  0x00000000004012b9 in main (argc=<optimized out>, argv=<optimized out>)
    at atod.c:236
        cswidth_name = <optimized out>
(gdb) quit


1xx <ItSAN****@gmail*****> <https://twitter.com/ItSANgo>

freewnn-users メーリングリストの案内
Back to archive index