https://bugs.documentfoundation.org/show_bug.cgi?id=96243

            Bug ID: 96243
           Summary: Crashes when view path is incorrect
           Product: LibreOffice
           Version: 5.1.0.0.beta1
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

Using http://koji.fedoraproject.org/koji/buildinfo?buildID=703072

$ cat test.js 
#!/usr/bin/gjs

const Gtk = imports.gi.Gtk;
const LOKDocView = imports.gi.LOKDocView;

Gtk.init(null);

let view = LOKDocView.View.new("/path/that/doesnt/exist", null, null);

$ GI_TYPELIB_PATH=$GI_TYPELIB_PATH:/usr/lib64/libreoffice/girepository-1.0/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/libreoffice/program/ gjs test.js 

failed to open library '/path/that/doesnt/exit/libmergedlo.so':
/path/that/doesnt/exit/libmergedlo.so: cannot open shared object file: No such
file or directory
failed to find hook in library '(null)'
Segmentation fault (core dumped)

The call should fail gracefully instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to