Internal Bug
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the failure with the C# sample in Program.Main at line 14. Start by tracing SimdJson.ParseJson into SimdJson.JsonParse and stage1_find_marks.find_structural_bits, then inspect how this input reaches the internal-bug exception. Done means the sample parses without the exception and a regression test covers the behavior.
Written by the indexing model from the issue text.
Description
I use SimdJsonSharp.Managed.
Exception has occurred: CLR/System.InvalidOperationException
An unhandled exception of type 'System.InvalidOperationException' occurred in SimdJsonSharp.Managed.dll: 'Internal bug'
at SimdJsonSharp.stage1_find_marks.find_structural_bits(Byte* buf, UInt64 len, ParsedJson pj)
at SimdJsonSharp.SimdJson.JsonParse(Byte* jsonData, UInt64 length, ParsedJson pj, Boolean reallocIfNeeded)
at SimdJsonSharp.SimdJson.ParseJson(Byte* jsonData, Int32 length, Boolean reallocIfNeeded)
at JsonTest.Program.Main(String[] args) in c:\Users\hez20\Desktop\JsonTest\Program.cs:line 14
test code:
using System;
using System.Text;
using SimdJsonSharp;
namespace JsonTest
{
class Program
{
static unsafe void Main(string[] args)
{
var p = Encoding.UTF8.GetBytes("{\"test\": 1}");
fixed (byte* ptr = p)
{
var json = SimdJson.ParseJson(ptr, p.Length);
}
return;
}
}
}
- Dominant language
- C#
- Stars
- 687
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EgorBo/SimdJsonSharp
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
EgorBo/SimdJsonSharp#23 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
EgorBo/SimdJsonSharp#20 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
EgorBo/SimdJsonSharp#19 · 3 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 18/100
EgorBo/SimdJsonSharp#16 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
EgorBo/SimdJsonSharp#15 · 2 comments ·
All issues in EgorBo/SimdJsonSharp
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·