Giter Site home page Giter Site logo

segfault on ubuntu 10.10 about capt HOT 7 OPEN

bnolan avatar bnolan commented on September 24, 2024
segfault on ubuntu 10.10

from capt.

Comments (7)

danielzzz avatar danielzzz commented on September 24, 2024

Capt:

  • Using coffeescript version 1.0.1
    EDIT: node v0.4.7

from capt.

bnolan avatar bnolan commented on September 24, 2024

Are you getting a stacktrace - or just a segfault? Are you in the project directory when running capt? I'm using node v0.4.1, I'll try upgrade to 0.4.7 and see if I can repro.

from capt.

danielzzz avatar danielzzz commented on September 24, 2024

just a segfault. I tried with v0.4.1 but I am also getting a segfault. maybe it's something related to my system config, but no idea how to trace it :(

from capt.

sleeper avatar sleeper commented on September 24, 2024

Same here. I managed to get a core dump and a stack trace (presumably the core comes from node exec):

fred@aleph:~/dev/sarin3$ capt server
Capt:

  • Using coffeescript version 1.0.1
    Segmentation fault (core dumped)
    fred@aleph:~/dev/sarin3$ gdb which node core
    GNU gdb (GDB) 7.1-ubuntu
    Copyright (C) 2010 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 "i486-linux-gnu".
    For bug reporting instructions, please see:
    http://www.gnu.org/software/gdb/bugs/...
    Reading symbols from /home/fred/opt/bin/node...done.
    [New Thread 3531]
    [New Thread 3532]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/tls/i686/cmov/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /lib/i686/cmov/libssl.so.0.9.8...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libssl.so.0.9.8
Reading symbols from /lib/i686/cmov/libcrypto.so.0.9.8...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libutil.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libutil.so.1
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /home/fred/opt/lib/node/.npm/glob/2.0.6/package/build/default/glob.node...done.
Loaded symbols for /home/fred/opt/lib/node/.npm/glob/2.0.6/package/build/default/glob.node
Core was generated by `node /home/fred/opt/bin/capt server'.
Program terminated with signal 11, Segmentation fault.
#0 0x081b99eb in v8::internal::Builtin_HandleApiCall(v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)1>) ()
(gdb)

from capt.

sleeper avatar sleeper commented on September 24, 2024

Additionally:

g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

from capt.

sleeper avatar sleeper commented on September 24, 2024

Note also that the same is happening when running 'capt watch'

from capt.

mkuklis avatar mkuklis commented on September 24, 2024

I ran few tests on Ubuntu and tried to track the problem down. I suspect there may be an issue with a glob:
for path in Glob(Path.join(@cwd, pathspec))

the segfault happens for cases when path doesn't contain actual files for example:
Glob(Path.join(@cwd, 'public/stylesheets/*.css'))
Glob(Path.join(@cwd, 'public/stylesheets/*.less'))

from capt.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.