Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2016 04:58:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 207868] chinese/librime: rime_deployer gets segfault on building chinese/brise on 9.3R
Message-ID:  <bug-207868-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207868

            Bug ID: 207868
           Summary: chinese/librime: rime_deployer gets segfault on
                    building chinese/brise on 9.3R
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: hiroto.kagotani@gmail.com
                CC: lichray@gmail.com
                CC: lichray@gmail.com

Created attachment 167948
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167948&action=
=3Dedit
make log of chinese/brise

While building chinese/brise on 9.3R (amd64 and i386),
the build process stops for rime_deployer getting segmentation fault,
which is a tool installed by chinese/librime.
Building on 10.2R does not have any problem.


Here is the build log:

# make MAKE_JOBS_UNSAFE=3Dyes
=3D=3D=3D>  License GPLv3 accepted by the user
=3D=3D=3D>   zh-brise-0.35 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by zh-brise-0.35 for building
=3D=3D=3D>  Extracting for zh-brise-0.35
=3D=3D=3D>  License GPLv3 accepted by the user
=3D=3D=3D>   zh-brise-0.35 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by zh-brise-0.35 for building
=3D> SHA256 Checksum OK for rime-brise-brise-0.35_GH0.tar.gz.
=3D=3D=3D>  Patching for zh-brise-0.35
=3D=3D=3D>   zh-brise-0.35 depends on executable: rime_deployer - found
=3D=3D=3D>   zh-brise-0.35 depends on executable: gmake - found
=3D=3D=3D>  Configuring for zh-brise-0.35
=3D=3D=3D>  Building for zh-brise-0.35
building rime data.
rime_deployer --build  /usr/ports/chinese/brise/work/brise-brise-0.35/data
Makefile:14: recipe for target 'all' failed
gmake: *** [all] Segmentation fault: 11
*** [do-build] Error code 1

Stop in /usr/ports/chinese/brise.
*** [/usr/ports/chinese/brise/work/.build_done.brise._usr_local] Error code=
 1

Stop in /usr/ports/chinese/brise.


A core file was dumped:

# ls -l work/brise-brise-0.35
...
-rw-------  1 root  wheel  66650112 Mar 10 13:13 rime_deployer.core


To confirm it is not depending on brise data, I tested with librime data.

# cd /usr/ports/chinese/librime
# make extract
# cd work/lib
# rime_deployer --build work/librime-rime-1.1/data/minimal
Segmentation fault
# ls -l
...
-rw-------  1 root  wheel  124518400 Mar 10 13:26 rime_deployer.core


I tried to use gdb to get where the problem is,
but it is more I can handle.

# cd /usr/ports/chinese/librime
# make clean
# make WITH_DEBUG=3Dyes
# gdb work/librime-rime-1.1/bin/rime_deployer=20
(gdb) run --build  /usr/ports/chinese/brise/work/brise-brise-0.35/data
Starting program:
/usr/ports/chinese/librime/work/librime-rime-1.1/bin/rime_deployer --build=
=20
/usr/ports/chinese/brise/work/brise-brise-0.35/data
(no debugging symbols found)...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [=
in
module /usr/ports/chinese/librime/work/librime-rime-1.1/lib/librime.so.1]
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging sym=
bols
found)...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [=
in
module /usr/local/lib/gcc48/libstdc++.so.6]
(no debugging symbols found)...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [=
in
module /usr/local/lib/gcc48/libgcc_s.so.1]
(no debugging symbols found)...[New LWP 100132]
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...[New Thread 806407400 (LWP 100132/rime_deployer)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 806407400 (LWP 100132/rime_deployer)]
0x00000008034a16ee in free () from /lib/libc.so.7
(gdb) where
#0  0x00000008034a16ee in free () from /lib/libc.so.7
#1  0x0000000801f0c73f in std::vector<YAML::RegEx, std::allocator<YAML::Reg=
Ex>
>::~vector () from /usr/local/lib/libyaml-cpp.so.0
#2  0x0000000801f0c73f in std::vector<YAML::RegEx, std::allocator<YAML::Reg=
Ex>
>::~vector () from /usr/local/lib/libyaml-cpp.so.0
#3  0x0000000801f0c73f in std::vector<YAML::RegEx, std::allocator<YAML::Reg=
Ex>
>::~vector () from /usr/local/lib/libyaml-cpp.so.0
#4  0x0000000801f0c73f in std::vector<YAML::RegEx, std::allocator<YAML::Reg=
Ex>
>::~vector () from /usr/local/lib/libyaml-cpp.so.0
#5  0x0000000801f0c73f in std::vector<YAML::RegEx, std::allocator<YAML::Reg=
Ex>
>::~vector () from /usr/local/lib/libyaml-cpp.so.0
#6  0x0000000801f0c73f in std::vector<YAML::RegEx, std::allocator<YAML::Reg=
Ex>
>::~vector () from /usr/local/lib/libyaml-cpp.so.0
#7  0x0000000801f0c73f in std::vector<YAML::RegEx, std::allocator<YAML::Reg=
Ex>
>::~vector () from /usr/local/lib/libyaml-cpp.so.0
#8  0x0000000801f0c73f in std::vector<YAML::RegEx, std::allocator<YAML::Reg=
Ex>
>::~vector () from /usr/local/lib/libyaml-cpp.so.0
#9  0x0000000801f39cd5 in YAML::Utils::WriteTag ()
   from /usr/local/lib/libyaml-cpp.so.0
#10 0x0000000801f3a69c in YAML::Utils::ComputeStringFormat ()
   from /usr/local/lib/libyaml-cpp.so.0
#11 0x0000000801f2653b in YAML::Emitter::Write ()
   from /usr/local/lib/libyaml-cpp.so.0
#12 0x0000000800e7accf in ?? ()
   from /usr/ports/chinese/librime/work/librime-rime-1.1/lib/librime.so.1
#13 0x0000000806466d58 in ?? ()
#14 0x00007fffffffd9b0 in ?? ()
#15 0x00007fffffffd7f0 in ?? ()
#16 0x0000000800e78eec in ?? ()
   from /usr/ports/chinese/librime/work/librime-rime-1.1/lib/librime.so.1
#17 0x00007fffffffd9b0 in ?? ()
#18 0x0000000806466d58 in ?? ()
#19 0x0000000802dbc680 in ?? () from /usr/local/lib/gcc48/libstdc++.so.6
#20 0x0000000800e829c9 in ?? ()
   from /usr/ports/chinese/librime/work/librime-rime-1.1/lib/librime.so.1
#21 0x0000000000000500 in ?? ()
#22 0x0000000802dbc680 in ?? () from /usr/local/lib/gcc48/libstdc++.so.6
#23 0x0000000000005f2e in ?? ()
#24 0x00007fffffffd850 in ?? ()
#25 0x0000000000000002 in ?? ()
#26 0x0000000800e7f32f in ?? ()
   from /usr/ports/chinese/librime/work/librime-rime-1.1/lib/librime.so.1
#27 0x0000000000000500 in ?? ()
#28 0x0000000802dbc680 in ?? () from /usr/local/lib/gcc48/libstdc++.so.6
#29 0x0000000000005f2e in ?? ()
#30 0x0000000806466d48 in ?? ()
#31 0x0000000000000002 in ?? ()
#32 0xfae0da7eb156b0aa in ?? ()
#33 0x00007fffffffd8d0 in ?? ()
#34 0x0000000000000002 in ?? ()
#35 0x00007fffffffd870 in ?? ()
#36 0x0000000800e78fe7 in ?? ()
   from /usr/ports/chinese/librime/work/librime-rime-1.1/lib/librime.so.1
#37 0x0000000000000000 in ?? ()
(gdb)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207868-13>