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

access violation when accessing root of a closed document #114

Open
mzaffalon opened this issue Feb 2, 2021 · 0 comments
Open

access violation when accessing root of a closed document #114

mzaffalon opened this issue Feb 2, 2021 · 0 comments

Comments

@mzaffalon
Copy link

Julia 1.5.3 crashes on the following code (LightXML v0.9.0)

xdoc = parse_file("ex1.xml")
xroot = root(xdoc)
free(xdoc)
xroot

where the file ex1.xml is given in the GitHub page. Here is the error message:

Exception: EXCEPTION_ACCESS_VIOLATION at 0x2bad9cde -- xmlNodeDumpOutputInternal at /workspace/srcdir/libxml2-2.9.10\xmlsave.c:1041
in expression starting at none:0
xmlNodeDumpOutputInternal at /workspace/srcdir/libxml2-2.9.10\xmlsave.c:1041
xmlNodeDumpOutput at /workspace/srcdir/libxml2-2.9.10\xmlsave.c:2377
xmlBufNodeDump at /workspace/srcdir/libxml2-2.9.10\xmlsave.c:2271
xmlNodeDump at /workspace/srcdir/libxml2-2.9.10\xmlsave.c:2207
string at C:\Users\michele.zaffalon\.julia\packages\LightXML\g6rbQ\src\nodes.jl:187
show at C:\Users\michele.zaffalon\.julia\packages\LightXML\g6rbQ\src\nodes.jl:194 [inlined]
show at C:\Users\michele.zaffalon\.julia\packages\LightXML\g6rbQ\src\nodes.jl:223 [inlined]
show at .\multimedia.jl:47
unknown function (ip: 0000000021bc01f4)
display at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:214
display at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:218
display at .\multimedia.jl:328
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1690 [inlined]
do_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:655
jl_f__apply at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:669 [inlined]
jl_f__apply_latest at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:705
#invokelatest#1 at .\essentials.jl:710 [inlined]
invokelatest at .\essentials.jl:709 [inlined]
print_response at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:238
print_response at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:223
do_respond at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:822
jfptr_do_respond_29330.clone_1 at C:\Users\michele.zaffalon\AppData\Local\Programs\Julia 1.5.3\lib\julia\sys.dll (unknown line)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1690 [inlined]
do_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:655
jl_f__apply at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:669 [inlined]
jl_f__apply_latest at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:705
#invokelatest#1 at .\essentials.jl:710 [inlined]
invokelatest at .\essentials.jl:709 [inlined]
run_interface at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\LineEdit.jl:2355
jfptr_run_interface_30026.clone_1 at C:\Users\michele.zaffalon\AppData\Local\Programs\Julia 1.5.3\lib\julia\sys.dll (unknown line)
run_frontend at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:1144#38 at .\task.jl:356
jfptr_YY.38_29208.clone_1 at C:\Users\michele.zaffalon\AppData\Local\Programs\Julia 1.5.3\lib\julia\sys.dll (unknown line)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1690 [inlined]
start_task at /cygdrive/c/buildbot/worker/package_win64/build/src\task.c:705
Allocations: 3140812 (Pool: 3139784; Big: 1028); GC: 4
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

No branches or pull requests

1 participant