Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash due to misaligned pointer #28

Closed
vchuravy opened this issue Dec 7, 2023 · 1 comment
Closed

Crash due to misaligned pointer #28

vchuravy opened this issue Dec 7, 2023 · 1 comment

Comments

@vchuravy
Copy link

vchuravy commented Dec 7, 2023

Validation: Error During Test at /home/vchuravy/.julia/packages/LIBLINEAR/77yny/test/validation.jl:1
  Got exception outside of a @test
  ArgumentError: unsafe_wrap: pointer 0x400000003 is not properly aligned to 4 bytes
  Stacktrace:
    [1] #unsafe_wrap#110
      @ Base ./pointer.jl:114 [inlined]
    [2] unsafe_wrap
      @ Base ./pointer.jl:112 [inlined]
    [3] linear_train(labels::Vector{String}, instances::Matrix{Float64}; weights::Nothing, solver_type::Int32, eps::Float64, C::Float64, p::Float64, init_sol::Ptr{Float64}, bias::Float64, verbose::Bool)
      @ LIBLINEAR ~/.julia/packages/LIBLINEAR/77yny/src/LIBLINEAR.jl:239
    [4] macro expansion
      @ ~/.julia/packages/LIBLINEAR/77yny/test/validation.jl:2 [inlined]
    [5] macro expansion
      @ ~/builds/julia/usr/share/julia/stdlib/v1.11/Test/src/Test.jl:1598 [inlined]
    [6] top-level scope
      @ ~/.julia/packages/LIBLINEAR/77yny/test/validation.jl:2
    [7] include(fname::String)
      @ Main ./sysimg.jl:38
    [8] top-level scope
      @ ~/.julia/packages/LIBLINEAR/77yny/test/runtests.jl:11
    [9] include(fname::String)
      @ Main ./sysimg.jl:38
   [10] top-level scope
      @ none:6
   [11] eval
      @ Core ./boot.jl:428 [inlined]
   [12] exec_options(opts::Base.JLOptions)
      @ Base ./client.jl:291
   [13] _start()
      @ Base ./client.jl:525
Test Summary: | Error  Total  Time
Validation    |     1      1  3.0s
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /home/vchuravy/.julia/packages/LIBLINEAR/77yny/test/validation.jl:1
in expression starting at /home/vchuravy/.julia/packages/LIBLINEAR/77yny/test/runtests.jl:11

While trying to look into a failure in PkgEval: https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/96c4164_vs_fd41af5/LIBLINEAR.primary.log

barucden added a commit to barucden/LIBLINEAR.jl that referenced this issue Jan 28, 2024
We were missing the fields `nu` and `regularize_bias` in the `Parameter`
structure.

Fixes JuliaML#28.

Discovered when working on JuliaML/LIBSVM.jl/#98.
@barucden
Copy link
Member

Thank you for reporting it. Fixed in #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants