Comments (3)
Hmm, what can we do...
from mruby-onig-regexp.
Looking at both struct definitions, it looks like what onigposix.h is trying to do is to (very unsafe-ly) wrap around the posix regex implementation. The "real" oniguruma regex implementation seems to be defined in "oniguruma.h". I don't really understand much about regular expressions or oniguruma, but is there a reason that you used the onigposix.h API and not the native oniguruma.h API? Did you use MRI as sample code? Maybe they have an answer.
from mruby-onig-regexp.
I solved it (I think)! All I had to do is add -lonig
to the linker flags of my application (that statically links mruby), and indeed in your binding, the CPU jumps into libonig instead of libc and there are no more crashes.
from mruby-onig-regexp.
Related Issues (20)
- ld: symbol(s) not found for architecture x86_64 HOT 3
- Slice on empty string
- gem description maybe is "鬼車", not "鬼雲" ? HOT 1
- string size too big (ArgumentError)
- infinite loop when empty regexp HOT 2
- Doesn't freak out when replacing `^` HOT 2
- Abort on UTF-8 split with empty src HOT 7
- /./ should match to latin-1 letter when MRB_UTF8_STRING is not defined.
- build with bundled onigmo fails when c++ API is enabled HOT 3
- Problems finding oniguruma.h HOT 2
- Support `Regexp#match?` HOT 8
- Freeze regex variable HOT 1
- Match? bug HOT 2
- Supporting non-word char in group name HOT 1
- slice! does not work with Regexp HOT 3
- How to cross compile this gem? HOT 7
- Compilation failed on Visual Studio 2019
- Can not cross complie for x86_64-w64-mingw32 on Mac HOT 8
- test fails when MRB_UTF8_STRING is defined HOT 4
- No way to explicitly use the included libonig instead of what is installed on the host system
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mruby-onig-regexp.