[CMake] CPack : seg fault

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Mar 6 16:08:56 EST 2008


Hi david,

Thanks for taking the time to reproduce the issue. I fixed the
CHECK_INCLUDE_FILE in cmake you should be all set when taking rev
2669.

Thanks again
-Mathieu

On Thu, Mar 6, 2008 at 7:47 PM, David Cole <david.cole at kitware.com> wrote:
> I tried to repro this just now, but I get a build error at svn revision
> 2668.
>
>  Linking CXX static library ../../bin/libgdcmDICT.a
>  [ 60%] Built target gdcmDICT
>  Scanning dependencies of target gdcmDSED
>  [ 60%] Building CXX object
> Source/DataStructureAndEncodingDefinition/CMakeFiles/gdcmDSED.dir/gdcmTag.o
>  [ 61%] Building CXX object
> Source/DataStructureAndEncodingDefinition/CMakeFiles/gdcmDSED.dir/gdcmFileSet.o
>  [ 61%] Building CXX object
> Source/DataStructureAndEncodingDefinition/CMakeFiles/gdcmDSED.dir/gdcmDataSet.o
>  [ 61%] Building CXX object
> Source/DataStructureAndEncodingDefinition/CMakeFiles/gdcmDSED.dir/gdcmByteSwapFilter.o
>  In file included from
> /home/David/test/trunk/Source/Common/gdcmSwapper.h:49,
>                   from
> /home/David/test/trunk/Source/DataStructureAndEncodingDefinition/gdcmItem.h:22,
>                   from
> /home/David/test/trunk/Source/DataStructureAndEncodingDefinition/gdcmSequenceOfItems.h:20,
>                   from
> /home/David/test/trunk/Source/DataStructureAndEncodingDefinition/gdcmByteSwapFilter.cxx:19:
>  /home/David/test/trunk/Source/Common/gdcmSwapper.txx:25:22: byteswap.h: No
> such file or directory
>  In file included from
> /home/David/test/trunk/Source/Common/gdcmSwapper.h:49,
>                   from
> /home/David/test/trunk/Source/DataStructureAndEncodingDefinition/gdcmItem.h:22,
>                   from
> /home/David/test/trunk/Source/DataStructureAndEncodingDefinition/gdcmSequenceOfItems.h:20,
>                   from
> /home/David/test/trunk/Source/DataStructureAndEncodingDefinition/gdcmByteSwapFilter.cxx:19:
>  /home/David/test/trunk/Source/Common/gdcmSwapper.txx: In static member
> function `static T gdcm::SwapperDoOp::Swap(T) [with T = uint16_t]':
>  /home/David/test/trunk/Source/Common/gdcmSwapper.txx:35: error: `bswap_16'
> undeclared (first use this function)
>  /home/David/test/trunk/Source/Common/gdcmSwapper.txx:35: error: (Each
> undeclared identifier is reported only once for each function it appears
> in.)
>  /home/David/test/trunk/Source/Common/gdcmSwapper.txx: In static member
> function `static T gdcm::SwapperDoOp::Swap(T) [with T = uint32_t]':
>  /home/David/test/trunk/Source/Common/gdcmSwapper.txx:43: error: `bswap_32'
> undeclared (first use this function)
>  /home/David/test/trunk/Source/Common/gdcmSwapper.txx: In static member
> function `static T gdcm::SwapperDoOp::Swap(T) [with T = uint64_t]':
>  /home/David/test/trunk/Source/Common/gdcmSwapper.txx:51: error: `bswap_64'
> undeclared (first use this function)
>  make[2]: ***
> [Source/DataStructureAndEncodingDefinition/CMakeFiles/gdcmDSED.dir/gdcmByteSwapFilter.o]
> Error 1
>  make[1]: ***
> [Source/DataStructureAndEncodingDefinition/CMakeFiles/gdcmDSED.dir/all]
> Error 2
>
>
>
>
>
>
> On 3/6/08, Mathieu Malaterre <mathieu.malaterre at gmail.com> wrote:
> >
> >
> >
> > On Thu, Mar 6, 2008 at 5:34 PM, Bill Hoffman <bill.hoffman at kitware.com>
> wrote:
> > >
> > > Mathieu Malaterre wrote:
> > >  > Hi,
> > >  >
> > >  >   I am getting a seg fault somewhere in CPack (CVS HEAD and cmake
> > >  > 2.4.7) on cygwin, but even with a debug build of CMake I cannot get a
> > >  > nice backtrace (*). Has anyone any suggestion on how to deubg this
> > >  > thing ?
> > >  >
> > >  > Thanks
> > >  > -Mathieu
> > >  >
> > >  > Run CPack packaging tool...
> > >  > /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe --config
> /home/mmalaterre/Proj
> > >  > ects/gdcm/trunk/cygwin/CPackConfig.cmake
> > >  > CPack: Create package using CygwinBinary
> > >  >      24 [main] cpack 5096 _cygtls::handle_exceptions: Error while
> dumping state
> > >  > (probably corrupted stack)
> > >  > make: *** [package] Segmentation fault (vidange mémoire)
> > >  >
> > >  > mmalaterre at bender ~/Projects/gdcm/trunk/cygwin
> > >  > $ gdb /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe
> > >  > GNU gdb 6.5.50.20060706-cvs (cygwin-special)
> > >  > Copyright (C) 2006 Free Software Foundation, Inc.
> > >  > GDB is free software, covered by the GNU General Public License, and
> you are
> > >  > welcome to change it and/or distribute copies of it under certain
> conditions.
> > >  > Type "show copying" to see the conditions.
> > >  > There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> > >  > This GDB was configured as "i686-pc-cygwin"...
> > >  > (gdb) r --config
> /home/mmalaterre/Projects/gdcm/trunk/cygwin/CPackConfig.cmake
> > >  >
> > >  > Starting program: /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe
> --config /ho
> > >  > me/mmalaterre/Projects/gdcm/trunk/cygwin/CPackConfig.cmake
> > >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
> > >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
> > >  > Loaded symbols for /usr/bin/cygwin1.dll
> > >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
> > >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
> > >  > Loaded symbols for /cygdrive/c/WINDOWS/system32/secur32.dll
> > >  > CPack: Create package using CygwinBinary
> > >  >      15 [main] cpack 5856 _cygtls::handle_exceptions: Exception:
> STATUS_ACCESS_V
> > >  > IOLATION
> > >  >     607 [main] cpack 5856 open_stackdumpfile: Dumping stack trace to
> cpack.exe.s
> > >  > tackdump
> > >  > 1482308 [main] cpack 5856 _cygtls::handle_exceptions: Exception:
> STATUS_ACCESS_V
> > >  > IOLATION
> > >  > 1504326 [main] cpack 5856 _cygtls::handle_exceptions: Error while
> dumping state
> > >  > (probably corrupted stack)
> > >  >
> > >  > Program received signal SIGSEGV, Segmentation fault.
> > >  > 0x610164e5 in stack_info::walk () from /usr/bin/cygwin1.dll
> > >  > (gdb) bt
> > >  > #0  0x610164e5 in stack_info::walk () from /usr/bin/cygwin1.dll
> > >  > #1  0x7c859dcc in OutputDebugStringA ()
> > >  >    from /cygdrive/c/WINDOWS/system32/kernel32.dll
> > >  > #2  0x40010006 in ?? ()
> > >  > #3  0x00000000 in ?? ()
> > >  > (gdb)
> > >  >
> > >  Please create a bug report and attach a way to reproduce the problem,
> if
> > >  at all possible in a small example.  CMake itself uses the cygwin
> > >  packager, so I know it works for that.
> >
> >
> >
> > svn co https://gdcm.svn.sourceforge.net/svnroot/gdcm/trunk
> > mkdir bin
> > cd bin
> > cmake ../trunk
> > make && make package
> >
> > Let me know if you can reproduce the issue.
> >
> > Thanks,
> > -Mathieu
> >
> >
> > --
> >
> > Mathieu
> >
> > _______________________________________________
> > CMake mailing list
> > CMake at cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake
> >
>
>



-- 
Mathieu


More information about the CMake mailing list