Bug 122318 - [linux] [cmake]: Segmentation fault when running Linux cmake
Summary: [linux] [cmake]: Segmentation fault when running Linux cmake
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 7.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Konstantin Belousov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-01 00:40 UTC by Sean Farley
Modified: 2008-10-31 14:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Farley freebsd_committer freebsd_triage 2008-04-01 00:40:01 UTC
I have a build chroot based upon FC2--please do not shoot me--that had
worked in the past with RELENG_6 on an i386 box.  I moved to RELENG_7 on
an amd64 box.  For some reason, running cmake core dumps regardless if
it is my FC2 chroot or linux_base-fc{4,6}.

How-To-Repeat: mkdir -p test/build
mkdir -p test/src
echo "PROJECT(ARGH)" > test/src/CMakeLists.txt
cd test/build
cmake ../src

This results in:
-- Check for working C compiler: /usr/bin/gcc
[1]    22830 segmentation fault (core dumped) /home/sean/devel/chroots/fc2/usr/bin/cmake ..

The output from linux_kdump near the final gasp:
...

  22793 cmake    CALL  linux_select(0x9,0x82d4630,0,0,0)
  22793 cmake    RET   linux_select 1
  22793 cmake    CALL  read(0x8,0x82d41f8,0x400)
  22793 cmake    GIO   fd 8 read 136 bytes
        "gmake[1]: Leaving directory `/usr/home/sean/devel/chroots/fc2/home\
         /builder/build/CMakeFiles/CMakeTmp'
        "
  22793 cmake    RET   read 136/0x88
  22793 cmake    CALL  linux_select(0x9,0x82d4630,0,0,0)
  22793 cmake    RET   linux_select 1
  22793 cmake    CALL  read(0x8,0x82d41f8,0x400)
  22793 cmake    GIO   fd 8 read 0 bytes
        ""
  22793 cmake    RET   read 0
  22793 cmake    CALL  close(0x8)
  22793 cmake    RET   close 0
  22793 cmake    CALL  linux_select(0x7,0x82d4630,0,0,0)
  22793 cmake    RET   linux_select 1
  22793 cmake    PSIG  SIGCHLD caught handler=0x8215a00 mask=0x0 code=0x0
  22793 cmake    CALL  read(0x3,0xffffbc77,0x1)
  22793 cmake    RET   read -1 errno 11 Resource deadlock avoided
  22793 cmake    CALL  write(0x4,0xffffbc77,0x1)
  22793 cmake    GIO   fd 4 wrote 1 byte
        "\^A"
  22793 cmake    RET   write 1
  22793 cmake    CALL  linux_rt_sigreturn(0xffffbd18)
  22793 cmake    RET   linux_rt_sigreturn JUSTRETURN
  22793 cmake    PSIG  SIGSEGV SIG_DFL
  22793 cmake    NAMI  "cmake.core"
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2008-04-01 07:40:26 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-emulation

reassign to emulation team
Comment 2 Konstantin Belousov freebsd_committer freebsd_triage 2008-09-08 21:07:53 UTC
State Changed
From-To: open->patched

Chagin supplied the patch. Patch committed to HEAD, MFC set. 


Comment 3 Konstantin Belousov freebsd_committer freebsd_triage 2008-09-08 21:07:53 UTC
Responsible Changed
From-To: freebsd-emulation->kib

Chagin supplied the patch. Patch committed to HEAD, MFC set.
Comment 4 Konstantin Belousov freebsd_committer freebsd_triage 2008-10-31 14:03:20 UTC
State Changed
From-To: patched->closed

Patch in HEAD and 7.