kastnermario / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

cannot run "monsters" test under cygwin #108

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, this may be a problem so I am posting it here.
I need to write a configuration parser under cygwin and I am trying to use 
yaml-cpp. I managed to compile it fine with cmake, getting:

-- Install configuration: "Release"
-- Installing: /usr/local/lib/libyaml-cpp.a
-- Installing: /usr/local/include/yaml-cpp/aliasmanager.h
-- Installing: /usr/local/include/yaml-cpp/anchor.h
-- Installing: /usr/local/include/yaml-cpp/conversion.h
-- Installing: /usr/local/include/yaml-cpp/dll.h
-- Installing: /usr/local/include/yaml-cpp/emitfromevents.h
-- Installing: /usr/local/include/yaml-cpp/emitter.h
-- Installing: /usr/local/include/yaml-cpp/emittermanip.h
-- Installing: /usr/local/include/yaml-cpp/eventhandler.h
-- Installing: /usr/local/include/yaml-cpp/exceptions.h
-- Installing: /usr/local/include/yaml-cpp/iterator.h
-- Installing: /usr/local/include/yaml-cpp/ltnode.h
-- Installing: /usr/local/include/yaml-cpp/mark.h
-- Installing: /usr/local/include/yaml-cpp/node.h
-- Installing: /usr/local/include/yaml-cpp/nodeimpl.h
-- Installing: /usr/local/include/yaml-cpp/nodereadimpl.h
-- Installing: /usr/local/include/yaml-cpp/nodeutil.h
-- Installing: /usr/local/include/yaml-cpp/noncopyable.h
-- Installing: /usr/local/include/yaml-cpp/null.h
-- Installing: /usr/local/include/yaml-cpp/ostream.h
-- Installing: /usr/local/include/yaml-cpp/parser.h
-- Installing: /usr/local/include/yaml-cpp/stlemitter.h
-- Installing: /usr/local/include/yaml-cpp/stlnode.h
-- Installing: /usr/local/include/yaml-cpp/traits.h
-- Installing: /usr/local/include/yaml-cpp/yaml.h
-- Installing: /usr/local/include/yaml-cpp/anchordict.h
-- Installing: /usr/local/include/yaml-cpp/graphbuilder.h
-- Installing: /usr/local/bin/pkgconfig/yaml-cpp.pc

Then I compile the test code (main.cpp and monsters.yaml) this way

g++ -Wall  main.cpp -I/usr/local/include/  -L/usr/local/lib/ -lyaml-cpp  -o test

It compiles fine. When I run it though I get an error when it calls:

parser.GetNextDocument(doc).

Using gdb the error is:

Program received signal SIGSEGV, Segmentation fault. 0x00466554 in 
YAML::RegEx::MatchUnchecked ()

Can anybody help please?

I am using the last yaml version 0.2.6 under cygwin and xp. Thanks, l.

Original issue reported on code.google.com by lore.ago...@gmail.com on 29 Jun 2011 at 8:34

GoogleCodeExporter commented 8 years ago
This is old enough that I'm marking Invalid. If this is still an issue, please 
reopen.

Original comment by jbe...@gmail.com on 24 Jan 2015 at 9:29