Julia crashes when importing yaml file

Bug #1563806 reported by albop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
julia (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The steps to reproduce are easy:

- julia
- Pkg.add("YAML")
- Pkg.test('YAML')

The result is :

```
signal (11): Segmentation fault
parse_stream_start at /home/pablo/.julia/v0.4/YAML/src/parser.jl:124
forward! at /home/pablo/.julia/v0.4/YAML/src/parser.jl:66
==================================================================================================[ ERROR: YAML ]==================================================================================================

failed process: Process(`/usr/bin/julia --check-bounds=yes --code-coverage=none --color=yes /home/pablo/.julia/v0.4/YAML/test/runtests.jl`, ProcessSignaled(11)) [0]

===================================================================================================================================================================================================================
ERROR: YAML had test errors
 in test at ./pkg/entry.jl:803
 in anonymous at ./pkg/dir.jl:31
 in cd at ./file.jl:22
```

There is also a segmentation fault when trying to import a single yaml file ( in julia, `YAML.load_file(...)`)

I am reporting the bug here, since albeit, it depends on the third party yaml library, the bug doesn't happen using generic linux binaries distributed on julia's website or with a freshly compiled version of julia.

Operating system is ubuntu 16.04.

Julia version is 0.4.3.

```
sudo apt-cache policy julia
[sudo] password for pablo:
julia:
  Installed: 0.4.3-4
  Candidate: 0.4.3-4
  Version table:
 *** 0.4.3-4 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status
```

Revision history for this message
Graham Inggs (ginggs) wrote :

Seems to be fixed in version 0.4.5 coming to Xenial shortly.
Which upstream versions did you test?

               _
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: http://docs.julialang.org
   _ _ _| |_ __ _ | Type "?help" for help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.4.5 (2016-03-18 00:58 UTC)
 _/ |\__'_|_|_|\__'_| |
|__/ | x86_64-linux-gnu

julia> Pkg.test("YAML")
INFO: Testing YAML
INFO: Recompiling stale cache file /home/ginggs/.julia/lib/v0.4/YAML.ji for module YAML.
INFO: Recompiling stale cache file /home/ginggs/.julia/lib/v0.4/Codecs.ji for module Codecs.
INFO: Recompiling stale cache file /home/ginggs/.julia/lib/v0.4/Compat.ji for module Compat.
spec-02-01: PASSED
spec-02-02: PASSED
spec-02-03: PASSED
spec-02-04: PASSED
spec-02-05: PASSED
spec-02-06: PASSED
spec-02-07: PASSED
spec-02-08: PASSED
spec-02-09: PASSED
spec-02-10: PASSED
spec-02-11: PASSED
spec-02-12: PASSED
spec-02-13: PASSED
spec-02-14: PASSED
spec-02-15: PASSED
spec-02-16: PASSED
spec-02-17: PASSED
spec-02-18: PASSED
spec-02-19: PASSED
spec-02-20: PASSED
spec-02-21: PASSED
spec-02-22: PASSED
spec-02-23: PASSED
empty_scalar: PASSED
no_trailing_newline: PASSED
windows_newlines: PASSED
issue15: PASSED
INFO: YAML tests passed

Changed in julia (Ubuntu):
status: New → Confirmed
Revision history for this message
albop (pablo-winant) wrote : Re: [Bug 1563806] Re: Julia crashes when importing yaml file
Download full text (3.7 KiB)

Upstream (the binaries) was 0.4.5.

On Wed, Mar 30, 2016 at 1:46 PM, Graham Inggs <email address hidden> wrote:

> Seems to be fixed in version 0.4.5 coming to Xenial shortly.
> Which upstream versions did you test?
>
> _
> _ _ _(_)_ | A fresh approach to technical computing
> (_) | (_) (_) | Documentation: http://docs.julialang.org
> _ _ _| |_ __ _ | Type "?help" for help.
> | | | | | | |/ _` | |
> | | |_| | | | (_| | | Version 0.4.5 (2016-03-18 00:58 UTC)
> _/ |\__'_|_|_|\__'_| |
> |__/ | x86_64-linux-gnu
>
> julia> Pkg.test("YAML")
> INFO: Testing YAML
> INFO: Recompiling stale cache file /home/ginggs/.julia/lib/v0.4/YAML.ji
> for module YAML.
> INFO: Recompiling stale cache file /home/ginggs/.julia/lib/v0.4/Codecs.ji
> for module Codecs.
> INFO: Recompiling stale cache file /home/ginggs/.julia/lib/v0.4/Compat.ji
> for module Compat.
> spec-02-01: PASSED
> spec-02-02: PASSED
> spec-02-03: PASSED
> spec-02-04: PASSED
> spec-02-05: PASSED
> spec-02-06: PASSED
> spec-02-07: PASSED
> spec-02-08: PASSED
> spec-02-09: PASSED
> spec-02-10: PASSED
> spec-02-11: PASSED
> spec-02-12: PASSED
> spec-02-13: PASSED
> spec-02-14: PASSED
> spec-02-15: PASSED
> spec-02-16: PASSED
> spec-02-17: PASSED
> spec-02-18: PASSED
> spec-02-19: PASSED
> spec-02-20: PASSED
> spec-02-21: PASSED
> spec-02-22: PASSED
> spec-02-23: PASSED
> empty_scalar: PASSED
> no_trailing_newline: PASSED
> windows_newlines: PASSED
> issue15: PASSED
> INFO: YAML tests passed
>
>
> ** Changed in: julia (Ubuntu)
> Status: New => Confirmed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1563806
>
> Title:
> Julia crashes when importing yaml file
>
> Status in julia package in Ubuntu:
> Confirmed
>
> Bug description:
> The steps to reproduce are easy:
>
> - julia
> - Pkg.add("YAML")
> - Pkg.test('YAML')
>
> The result is :
>
> ```
> signal (11): Segmentation fault
> parse_stream_start at /home/pablo/.julia/v0.4/YAML/src/parser.jl:124
> forward! at /home/pablo/.julia/v0.4/YAML/src/parser.jl:66
>
> ==================================================================================================[
> ERROR: YAML
> ]==================================================================================================
>
> failed process: Process(`/usr/bin/julia --check-bounds=yes --code-
> coverage=none --color=yes
> /home/pablo/.julia/v0.4/YAML/test/runtests.jl`, ProcessSignaled(11))
> [0]
>
>
> ===================================================================================================================================================================================================================
> ERROR: YAML had test errors
> in test at ./pkg/entry.jl:803
> in anonymous at ./pkg/dir.jl:31
> in cd at ./file.jl:22
> ```
>
> There is also a segmentation fault when trying to import a single yaml
> file ( in julia, `YAML.load_file(...)`)
>
> I am reporting the bug here, since albeit, it depends on the third
> party yaml library, the bug doesn't happen using generic linux
> binaries dis...

Read more...

Graham Inggs (ginggs)
Changed in julia (Ubuntu):
status: Confirmed → Fix Committed
Graham Inggs (ginggs)
Changed in julia (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.