[Bug 245093] graphics/poppler: update to 0.86.1 broke opening PDFs with links

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 27 09:39:34 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245093

Philippe Michel <philippe.michel7 at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philippe.michel7 at free.fr

--- Comment #1 from Philippe Michel <philippe.michel7 at free.fr> ---
I see a very similar problem (evince-lite on FreeBSD 12.1-STABLE r359193 with
all relevant ports up to date), although the crash happens at a different place
in poppler-action.cc :

Thread 5 received signal SIGSEGV, Segmentation fault.
[Switching to LWP 100573 of process 99965]
0x000000080543b185 in std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >::__is_long (this=0x20) at
/usr/include/c++/v1/string:1426
1426            {return bool(__r_.first().__s.__size_ & __short_mask);}
(gdb) where
#0  0x000000080543b185 in std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >::__is_long (this=0x20)
at /usr/include/c++/v1/string:1426
#1  0x000000080543b12c in std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >::__get_pointer
(this=0x20)
    at /usr/include/c++/v1/string:1520
#2  0x000000080543b085 in std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >::data (this=0x20) at
/usr/include/c++/v1/string:1248
#3  0x000000080543b385 in std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >::c_str (this=0x20) at
/usr/include/c++/v1/string:1246
#4  0x000000080543a011 in build_uri (action=0x804009480, link=0x0) at
poppler-action.cc:408
#5  0x0000000805439a8f in _poppler_action_new (document=0x805116a80,
link=0x8068b1d40, title=0x0) at poppler-action.cc:642
#6  0x000000080544d004 in poppler_page_get_link_mapping (page=0x806a16f80) at
poppler-page.cc:1237
#7  0x000000080518b544 in ?? () from
/usr/local/lib/evince/4/backends/libpdfdocument.so
#8  0x000000080031cd6d in ?? () from /usr/local/lib/libevview3.so.3
#9  0x000000080031e614 in ?? () from /usr/local/lib/libevview3.so.3
#10 0x000000080149fe4a in ?? () from /usr/local/lib/libglib-2.0.so.0
#11 0x0000000801115735 in ?? () from /lib/libthr.so.3
#12 0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdf9fb000

The attached patch works around the problem for me but I don't know enough c++
to really understand what happens (why does a dynamic_cast of link between
frames #5 and #4 fail)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-desktop mailing list