kern/122318: Segmentation fault when running Linux cmake

Sean Farley scf at FreeBSD.org
Mon Mar 31 16:40:02 PDT 2008


>Number:         122318
>Category:       kern
>Synopsis:       Segmentation fault when running Linux cmake
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 31 23:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Sean Farley
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD thor.farley.org 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Mar 29 15:00:16 CDT 2008 sean at thor.farley.org:/usr/FreeBSD/RELENG_7/obj/usr/FreeBSD/RELENG_7/src/sys/THOR i386

>Description:
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"
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list