texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Experimental Qt port


From: Alvaro Tejero Cantero
Subject: Re: [Texmacs-dev] Experimental Qt port
Date: Thu, 2 Oct 2008 19:42:15 +0200

Hi,

On my system your fixes allow compilation, but texmacs.bin segfaults
inmediately. I ran gdb as shown below, please tell me if I am missing
some option.

Cheers,

Á.

address@hidden:~/tmp/CVSTeXmacs/src/TeXmacs/bin$ gdb texmacs.bin
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run
Starting program: /home/tejero/tmp/CVSTeXmacs/src/TeXmacs/bin/texmacs.bin
[Thread debugging using libthread_db enabled]
[New Thread 0x7f9f6cf87780 (LWP 11269)]
Qt: gdb: -nograb added to command-line options.
         Use the -dograb option to enforce grabbing.
TeXmacs] With linked TrueType support
[New Thread 0x4214c950 (LWP 11310)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9f6cf87780 (LWP 11269)]
0x00007f9f6a20ae69 in QString::fromLocal8Bit () from /usr/lib/libQtCore.so.4
(gdb) n
Single stepping until exit from function _ZN7QString13fromLocal8BitEPKci,
which has no line number information.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)


On Thu, Oct 2, 2008 at 17:27,  <address@hidden> wrote:
> I've commited a patch which should resolve this issue.
>
> max
>
> On 2 oct. 08, at 17:12, Alvaro Tejero Cantero wrote:
>
>> My compilation error is still present with latest CVS update and my
>> libqtdev is version 4.3.4 (ubuntu 8.04's stock version)
>>
>> ./Plugins/Qt/qt_widget.cpp: In member function 'virtual blackbox
>> qt_view_widget_rep::query(slot, int)':
>> ./Plugins/Qt/qt_widget.cpp:365: error: cast from 'QWidget*' to 'int'
>> loses precision
>> ./Plugins/Qt/qt_widget.cpp: In member function 'virtual blackbox
>> qt_window_widget_rep::query(slot, int)':
>> ./Plugins/Qt/qt_widget.cpp:1144: error: cast from 'QWidget*' to 'int'
>> loses precision
>>
>>
>> Á.
>>
>>
>> On Thu, Oct 2, 2008 at 14:53,  <address@hidden> wrote:
>>>
>>> I've done some testing on current cvs texmacs and the situation is the
>>> following:
>>>
>>> - linking with qt4.4.3 release version  leads to crash (gdb session
>>> attached
>>> below).
>>> - linking with qt4.4.3 debug version works fine
>>> - linking with qt4.3.5 debug or release works fine
>>>
>>> So current hypothesis is that it is a problem with the release version of
>>> 4.4.3. Moreover I just commited some patches which should allow correct
>>> visualization of characters under Linux (at least for me works on Red Hat
>>> Enterprise with Linux 2.6.9-78.0.1.ELsmp)
>>>
>>> Massimiliano
>>>
>>>
>>>
>>>
>>>
>>> On 30 sept. 08, at 18:39, Juan Pablo Romero Méndez wrote:
>>>
>>>> Ok, now I've set TEXMACS_PATH  and GUILE_LOAD_PATH properly and
>>>> compiled with  --enable-debug
>>>>
>>>> I'm using Qt 4.4.0
>>>> gcc: 4.2.1
>>>> KDE 4.1.1
>>>>
>>>> Attached is the output of gdb.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Sep 30, 2008 at 6:29 AM,  <address@hidden> wrote:
>>>>>
>>>>> Thanks,
>>>>>
>>>>>
>>>>> On 30 sept. 08, at 08:25, Juan Pablo Romero Méndez wrote:
>>>>>
>>>>>> Now it compiles with just one change:
>>>>>>
>>>>>> in src/Plugins/Qt/QTMGuiHelper.hpp
>>>>>>
>>>>>> line 45:
>>>>>>
>>>>>> virtual int QTMStyle::pixelMetric(PixelMetric metric, const
>>>>>> QStyleOption *opt, const QWidget *widget) const;
>>>>>>
>>>>>>
>>>>>> gcc 4.2.1 requires:
>>>>>>
>>>>>> virtual int pixelMetric(PixelMetric metric, const QStyleOption *opt,
>>>>>> const QWidget *widget) const;
>>>>>>
>>>>>>
>>>>>> The problem is in execution; it seg faults with any keystroke.
>>>>>>
>>>>>> I've tried debugging it, but I'm not sure how. I tried launching "gdb
>>>>>> texmacs.bin procID"
>>>>>>
>>>>>> this is the result of "bt":
>>>>>>
>>>>>> (gdb) r
>>>>>> The program being debugged has been started already.
>>>>>> Start it from the beginning? (y or n) y
>>>>>> Starting program:
>>>>>> /home/jpablo/extra/texmacs-cvs/libexec/TeXmacs/bin/texmacs.bin
>>>>>> (no debugging symbols found)
>>>>>> (no debugging symbols found)
>>>>>> [Thread debugging using libthread_db enabled]
>>>>>> [New Thread 0xb6efb9b0 (LWP 12021)]
>>>>>> TeXmacs] couldn't concretize ? (none)
>>>>>> TeXmacs] couldn't concretize ? (none)
>>>>>> TeXmacs] couldn't concretize ? (concat, xxx, ? (concat, fonts, type1))
>>>>>> TeXmacs] couldn't concretize ? (concat, xxx, ? (concat, fonts, type1))
>>>>>>
>>>>>> TeXmacs]
>>>>>> TeXmacs] Installation problem: please send a bug report.
>>>>>> TeXmacs] The initialization file init-texmacs.scm could not be found.
>>>>>> TeXmacs] Please check the values of the environment variables
>>>>>> TeXmacs] TEXMACS_PATH and GUILE_LOAD_PATH. init-texmacs.scm should
>>>>>> TeXmacs] be readable and in the directory $TEXMACS_PATH/progs
>>>>>> TeXmacs] or in the directory $GUILE_LOAD_PATH
>>>>>> TeXmacs]
>>>>>>
>>>>>> Fatal error: Guile could not be found in 'init_guile'
>>>>>> See file   : init_texmacs.cpp
>>>>>>
>>>>>> Program received signal SIGABRT, Aborted.
>>>>>> [Switching to Thread 0xb6efb9b0 (LWP 12021)]
>>>>>> 0xffffe410 in __kernel_vsyscall ()
>>>>>> (gdb) bt
>>>>>> #0  0xffffe410 in __kernel_vsyscall ()
>>>>>> #1  0xb70568f5 in raise () from /lib/libc.so.6
>>>>>> #2  0xb70581e1 in abort () from /lib/libc.so.6
>>>>>> #3  0x08421b85 in FT_Select_Charmap ()
>>>>>> #4  0x085ba300 in ?? ()
>>>>>> #5  0x085950fd in ?? ()
>>>>>> #6  0x00000001 in ?? ()
>>>>>> #7  0xbfccac7c in ?? ()
>>>>>> #8  0x00000018 in ?? ()
>>>>>> #9  0x00000018 in ?? ()
>>>>>> #10 0x0000000a in ?? ()
>>>>>> #11 0x0841fdb0 in FT_Select_Charmap ()
>>>>>> #12 0x00000020 in ?? ()
>>>>>> #13 0x0863bc01 in ?? ()
>>>>>> #14 0x705ba300 in ?? ()
>>>>>> #15 0xbfccac7c in ?? ()
>>>>>> #16 0xbfccac78 in ?? ()
>>>>>> #17 0xbfccac74 in ?? ()
>>>>>> #18 0xbfccac98 in ?? ()
>>>>>> #19 0x083237d8 in FT_Select_Charmap ()
>>>>>> #20 0xbfccac7c in ?? ()
>>>>>> #21 0xbfccac78 in ?? ()
>>>>>> #22 0xbfccac74 in ?? ()
>>>>>> #23 0xbfccac68 in ?? ()
>>>>>> #24 0xb7095179 in free () from /lib/libc.so.6
>>>>>> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
>>>>>> (gdb)
>>>>>>
>>>>>>
>>>>>
>>>>> If you want to debug by calling directly the executable I think you
>>>>> should
>>>>> properly set TEXMACS_PATH  and GUILE_LOAD_PATH  before.
>>>>> Also, what verision of Qt do you have?
>>>>>
>>>>> massimiliano
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Texmacs-dev mailing list
>>>>> address@hidden
>>>>> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>>>>>
>>>> <gdb-texmacs-qt.txt>_______________________________________________
>>>> Texmacs-dev mailing list
>>>> address@hidden
>>>> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>>>
>>>
>>> _______________________________________________
>>> Texmacs-dev mailing list
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>>>
>>>
>>
>>
>> _______________________________________________
>> Texmacs-dev mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>
>
>
> _______________________________________________
> Texmacs-dev mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]