On Wednesday 09 September 2015 10:56:25 Jean-Marc Lasgouttes wrote:
> Can you get a more explicit backtrace?
> 
> JMarc

I send it attached. Note that in this case I am using lyx-2.2dev from 
yesterday, compiled with qt-5.5 (not that it matters in this case).

So the crash happens for both 2.1 and 2.2.

Although quite annoying if I select the text and press delete it does not 
crash. The same happens if I use the middle button to copy. :-)

-- 
José Abílio
==12791== Memcheck, a memory error detector
==12791== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==12791== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==12791== Command: src/lyx /home/jamatos/tmp/inbox/notas.lyx 2
==12791== 
==12791== Conditional jump or move depends on uninitialised value(s)
==12791==    at 0x4019A58: index (in /usr/lib64/ld-2.22.so)
==12791==    by 0x4008396: _dl_map_object (in /usr/lib64/ld-2.22.so)
==12791==    by 0x4000E64: map_doit (in /usr/lib64/ld-2.22.so)
==12791==    by 0x400F643: _dl_catch_error (in /usr/lib64/ld-2.22.so)
==12791==    by 0x4000B1E: do_preload (in /usr/lib64/ld-2.22.so)
==12791==    by 0x40043FC: dl_main (in /usr/lib64/ld-2.22.so)
==12791==    by 0x4017C4F: _dl_sysdep_start (in /usr/lib64/ld-2.22.so)
==12791==    by 0x4004C10: _dl_start (in /usr/lib64/ld-2.22.so)
==12791==    by 0x4000C87: ??? (in /usr/lib64/ld-2.22.so)
==12791==    by 0x2: ???
==12791==    by 0xFFF00049E: ???
==12791==    by 0xFFF0004A6: ???
==12791== 
==12797== Warning: invalid file descriptor 1024 in syscall close()
==12797== Warning: invalid file descriptor 1025 in syscall close()
==12797== Warning: invalid file descriptor 1026 in syscall close()
==12797== Warning: invalid file descriptor 1027 in syscall close()
==12797==    Use --log-fd=<number> to select an alternative log fd.
==12797== Warning: invalid file descriptor 1028 in syscall close()
==12797== Warning: invalid file descriptor 1029 in syscall close()
==12791== Syscall param writev(vector[...]) points to uninitialised byte(s)
==12791==    at 0x82C28FD: ??? (in /usr/lib64/libc-2.22.so)
==12791==    by 0xBBB0448: ??? (in /usr/lib64/libxcb.so.1.1.0)
==12791==    by 0xBBB083C: ??? (in /usr/lib64/libxcb.so.1.1.0)
==12791==    by 0xBBB0F76: ??? (in /usr/lib64/libxcb.so.1.1.0)
==12791==    by 0xBBB1AA2: ??? (in /usr/lib64/libxcb.so.1.1.0)
==12791==    by 0xBBB1B20: xcb_wait_for_reply (in /usr/lib64/libxcb.so.1.1.0)
==12791==    by 0x144D8669: QXcbConnection::sync() (in 
/usr/lib64/libQt5XcbQpa.so.5.5.0)
==12791==    by 0x144F669E: QXcbWindow::requestActivateWindow() (in 
/usr/lib64/libQt5XcbQpa.so.5.5.0)
==12791==    by 0x144EE988: 
QXcbWindow::handleMapNotifyEvent(xcb_map_notify_event_t const*) (in 
/usr/lib64/libQt5XcbQpa.so.5.5.0)
==12791==    by 0x144DD374: 
QXcbConnection::handleXcbEvent(xcb_generic_event_t*) (in 
/usr/lib64/libQt5XcbQpa.so.5.5.0)
==12791==    by 0x144DDD72: QXcbConnection::processXcbEvents() (in 
/usr/lib64/libQt5XcbQpa.so.5.5.0)
==12791==    by 0x72F6020: QObject::event(QEvent*) (in 
/usr/lib64/libQt5Core.so.5.5.0)
==12791==  Address 0xd30c1ae is 4,558 bytes inside a block of size 21,152 
alloc'd
==12791==    at 0x4C2A9C7: calloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==12791==    by 0xBBAFDFB: xcb_connect_to_fd (in /usr/lib64/libxcb.so.1.1.0)
==12791==    by 0xBBB39B0: xcb_connect_to_display_with_auth_info (in 
/usr/lib64/libxcb.so.1.1.0)
==12791==    by 0x90D6F59: _XConnectXCB (in /usr/lib64/libX11.so.6.3.0)
==12791==    by 0x90C7AF1: XOpenDisplay (in /usr/lib64/libX11.so.6.3.0)
==12791==    by 0x144DB0BB: 
QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, unsigned int, char 
const*) (in /usr/lib64/libQt5XcbQpa.so.5.5.0)
==12791==    by 0x144E09DC: QXcbIntegration::QXcbIntegration(QStringList 
const&, int&, char**) (in /usr/lib64/libQt5XcbQpa.so.5.5.0)
==12791==    by 0x1429E46C: ??? (in /usr/lib64/qt5/plugins/platforms/libqxcb.so)
==12791==    by 0x69D83F1: QPlatformIntegrationFactory::create(QString const&, 
QStringList const&, int&, char**, QString const&) (in 
/usr/lib64/libQt5Gui.so.5.5.0)
==12791==    by 0x69E4611: QGuiApplicationPrivate::createPlatformIntegration() 
(in /usr/lib64/libQt5Gui.so.5.5.0)
==12791==    by 0x69E554C: QGuiApplicationPrivate::createEventDispatcher() (in 
/usr/lib64/libQt5Gui.so.5.5.0)
==12791==    by 0x72CAA55: QCoreApplication::init() (in 
/usr/lib64/libQt5Core.so.5.5.0)
==12791== 
==12791== Invalid free() / delete / delete[] / realloc()
==12791==    at 0x4C2A184: operator delete(void*) (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==12791==    by 0x6632A5: deallocate (new_allocator.h:110)
==12791==    by 0x6632A5: deallocate (alloc_traits.h:386)
==12791==    by 0x6632A5: _M_destroy (basic_string.h:185)
==12791==    by 0x6632A5: _M_dispose (basic_string.h:180)
==12791==    by 0x6632A5: ~basic_string (basic_string.h:544)
==12791==    by 0x6632A5: lyx::html::StartTag::~StartTag() (output_xhtml.h:48)
==12791==    by 0x6780C4: ~FontTag (output_xhtml.h:167)
==12791==    by 0x6780C4: 
lyx::Paragraph::simpleLyXHTMLOnePar[abi:cxx11](lyx::Buffer const&, 
lyx::XHTMLStream&, lyx::OutputParams const&, lyx::Font const&, long) const 
(Paragraph.cpp:2912)
==12791==    by 0x661604: lyx::(anonymous 
namespace)::makeEnvironment(lyx::Buffer const&, lyx::XHTMLStream&, 
lyx::OutputParams const&, lyx::Text const&, 
__gnu_debug::_Safe_iterator<std::__cxx1998::_List_const_iterator<lyx::Paragraph>,
 std::__debug::list<lyx::Paragraph, std::allocator<lyx::Paragraph> > > const&, 
__gnu_debug::_Safe_iterator<std::__cxx1998::_List_const_iterator<lyx::Paragraph>,
 std::__debug::list<lyx::Paragraph, std::allocator<lyx::Paragraph> > > const&) 
(output_xhtml.cpp:1043)
==12791==    by 0x662736: lyx::xhtmlParagraphs(lyx::Text const&, lyx::Buffer 
const&, lyx::XHTMLStream&, lyx::OutputParams const&) (output_xhtml.cpp:1186)
==12791==    by 0x4D7F49: 
lyx::Buffer::writeLyXHTMLSource(std::basic_ostream<wchar_t, 
std::char_traits<wchar_t> >&, lyx::OutputParams const&, 
lyx::Buffer::OutputWhat) const (Buffer.cpp:2085)
==12791==    by 0x56F673: lyx::(anonymous 
namespace)::putClipboard(lyx::ParagraphList const&, 
std::shared_ptr<lyx::DocumentClass const>, std::__cxx11::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) 
(CutAndPaste.cpp:563)
==12791==    by 0x5701F5: lyx::cap::copySelection(lyx::Cursor const&, 
std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> > const&) (CutAndPaste.cpp:1028)
==12791==    by 0x570299: lyx::cap::copySelection(lyx::Cursor const&) 
(CutAndPaste.cpp:929)
==12791==    by 0x6CA74E: lyx::Text::dispatch(lyx::Cursor&, lyx::FuncRequest&) 
(Text3.cpp:1378)
==12791==    by 0x99610C: lyx::InsetText::doDispatch(lyx::Cursor&, 
lyx::FuncRequest&) (InsetText.cpp:312)
==12791==    by 0x88605A: lyx::Inset::dispatch(lyx::Cursor&, lyx::FuncRequest&) 
(Inset.cpp:319)
==12791==  Address 0xffeff8f88 is on thread 1's stack
==12791==  in frame #0, created by operator delete(void*) (???)
==12791== 
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0xed 0x2 0x68 0x0 0x20 0x73 0x74 0x79 0x6c 0x65 0x3d 0x27 0x66 0x6f 
0x6e 0x74 0x2d 0x66 0x61 0x6d 0x69 0x6c 0x79 0x3a 0x73 0x61 0x6e 0x73 0x2d 0x73 
0x65 0x72 0x69 0x66 0x3b 0x27 0x3e
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0x2f 0xed 0x2 0x68 0x0 0x3e
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0xed 0x2 0x68 0x0 0x20 0x73 0x74 0x79 0x6c 0x65 0x3d 0x27 0x66 0x6f 
0x6e 0x74 0x2d 0x66 0x61 0x6d 0x69 0x6c 0x79 0x3a 0x73 0x61 0x6e 0x73 0x2d 0x73 
0x65 0x72 0x69 0x66 0x3b 0x27 0x3e
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0x2f 0xed 0x2 0x68 0x0 0x3e
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0xed 0x2 0x68 0x0 0x20 0x73 0x74 0x79 0x6c 0x65 0x3d 0x27 0x66 0x6f 
0x6e 0x74 0x2d 0x66 0x61 0x6d 0x69 0x6c 0x79 0x3a 0x73 0x61 0x6e 0x73 0x2d 0x73 
0x65 0x72 0x69 0x66 0x3b 0x27 0x3e
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0x2f 0xed 0x2 0x68 0x0 0x3e
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0xed 0x2 0x68 0x0 0x20 0x73 0x74 0x79 0x6c 0x65 0x3d 0x27 0x66 0x6f 
0x6e 0x74 0x2d 0x66 0x61 0x6d 0x69 0x6c 0x79 0x3a 0x73 0x61 0x6e 0x73 0x2d 0x73 
0x65 0x72 0x69 0x66 0x3b 0x27 0x3e
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0x2f 0xed 0x2 0x68 0x0 0x3e
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0xed 0x2 0x68 0x0 0x20 0x73 0x74 0x79 0x6c 0x65 0x3d 0x27 0x66 0x6f 
0x6e 0x74 0x2d 0x66 0x61 0x6d 0x69 0x6c 0x79 0x3a 0x73 0x61 0x6e 0x73 0x2d 0x73 
0x65 0x72 0x69 0x66 0x3b 0x27 0x3e
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x3c 0x2f 0xed 0x2 0x68 0x0 0x3e
==12791== 
==12791== HEAP SUMMARY:
==12791==     in use at exit: 355,483 bytes in 5,768 blocks
==12791==   total heap usage: 1,631,406 allocs, 1,625,643 frees, 683,465,290 
bytes allocated
==12791== 
==12791== LEAK SUMMARY:
==12791==    definitely lost: 16,004 bytes in 258 blocks
==12791==    indirectly lost: 145,832 bytes in 4,358 blocks
==12791==      possibly lost: 11,501 bytes in 112 blocks
==12791==    still reachable: 182,146 bytes in 1,040 blocks
==12791==         suppressed: 0 bytes in 0 blocks
==12791== Rerun with --leak-check=full to see details of leaked memory
==12791== 
==12791== For counts of detected and suppressed errors, rerun with: -v
==12791== Use --track-origins=yes to see where uninitialised values come from
==12791== ERROR SUMMARY: 41 errors from 3 contexts (suppressed: 0 from 0)

Reply via email to