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,  <[EMAIL PROTECTED]> 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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>
(gdb) r                                                                      
Starting program: 
/home/jpablo/extra/texmacs-cvs/libexec/TeXmacs/bin/texmacs.bin 
[Thread debugging using libthread_db enabled]                                   
 
[New Thread 0xb6d6e6d0 (LWP 15307)]                                             
 
TeXmacs] With linked TrueType support                                           
 
[New Thread 0xb60f2b90 (LWP 15342)]                                             
 
TeXmacs] Loading corktounicode                                                  
 
TeXmacs] Loading unicode-cork-oneway                                            
 
TeXmacs] Loading tmuniversaltounicode                                           
 
TeXmacs] Loading unicode-symbol-oneway                                          
 

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6d6e6d0 (LWP 15307)]        
0x00000000 in ?? ()                                 
(gdb) bt                                            
#0  0x00000000 in ?? ()                             
#1  0xb792091a in QPainterPrivate::updateStateImpl (this=0x8aff708, 
newState=0x8b1f438) at painting/qpainter.cpp:884
#2  0xb79209a0 in QPainterPrivate::updateState (this=0x8aff708, 
newState=0x8b1f438) at painting/qpainter.cpp:912    
#3  0xb7927fbc in QPainter::drawRects (this=0xbf903860, rects=0xbf9037b4, 
rectCount=1) at painting/qpainter.cpp:2983
#4  0xb7928317 in QPainter::fillRect (this=0xbf903860, [EMAIL PROTECTED], 
[EMAIL PROTECTED]) at ../../include/QtGui/../../src/gui/painting/qpainter.h:593
#5  0x082dff3f in QPainter::fillRect (this=0xbf903860, x=0, y=0, w=1, h=1, 
[EMAIL PROTECTED]) at /usr/local/Trolltech/Qt-4.4.0/include/QtGui/qpainter.h:716
#6  0x082de6a6 in qt_renderer_rep::draw (this=0x8b72620, c=113, [EMAIL 
PROTECTED], x=0, y=0) at ./Plugins/Qt/qt_renderer.cpp:431                       
  
#7  0x083148b4 in tex_font_rep::draw (this=0x883ea00, ren=0x8b7263c, [EMAIL 
PROTECTED], ox=0, y=0) at ./Plugins/Metafont/tex_font.cpp:629                  
#8  0x08320f45 in text_box_rep::display (this=0x8b3d1a0, ren=0x8b7263c) at 
./Typeset/Boxes/Basic/text_boxes.cpp:81                                     
#9  0x0806be3c in box_rep::redraw (this=0x8b3d1a0, ren=0x8b7263c, [EMAIL 
PROTECTED], [EMAIL PROTECTED]) at ./Typeset/Boxes/Basic/boxes.cpp:522           
      
#10 0x0806bb11 in box_rep::redraw (this=0x8b981d0, ren=0x8b7263c, [EMAIL 
PROTECTED], [EMAIL PROTECTED]) at ./Typeset/Boxes/Basic/boxes.cpp:506           
      
#11 0x0806bb11 in box_rep::redraw (this=0x883eaa0, ren=0x8b7263c, [EMAIL 
PROTECTED], [EMAIL PROTECTED]) at ./Typeset/Boxes/Basic/boxes.cpp:506           
      
#12 0x0806bb11 in box_rep::redraw (this=0x8bd5e08, ren=0x8b7263c, [EMAIL 
PROTECTED], [EMAIL PROTECTED]) at ./Typeset/Boxes/Basic/boxes.cpp:506           
      
#13 0x0806bb11 in box_rep::redraw (this=0x88df4f0, ren=0x8b7263c, [EMAIL 
PROTECTED], [EMAIL PROTECTED]) at ./Typeset/Boxes/Basic/boxes.cpp:506           
      
#14 0x0806bb11 in box_rep::redraw (this=0x8b33088, ren=0x8b7263c, [EMAIL 
PROTECTED], [EMAIL PROTECTED]) at ./Typeset/Boxes/Basic/boxes.cpp:506           
      
#15 0x0806bb11 in box_rep::redraw (this=0x8bef680, ren=0x8b7263c, [EMAIL 
PROTECTED], [EMAIL PROTECTED]) at ./Typeset/Boxes/Basic/boxes.cpp:506           
      
#16 0x0806bb11 in box_rep::redraw (this=0x8b43bf8, ren=0x8b7263c, [EMAIL 
PROTECTED], [EMAIL PROTECTED]) at ./Typeset/Boxes/Basic/boxes.cpp:506           
      
#17 0x081566f6 in edit_interface_rep::draw_text (this=0x87efac0, ren=0x8b7263c, 
[EMAIL PROTECTED]) at ./Edit/Interface/edit_repaint.cpp:31                 
#18 0x081568d5 in edit_interface_rep::draw_with_shadow (this=0x87efac0, [EMAIL 
PROTECTED]) at ./Edit/Interface/edit_repaint.cpp:214                        
#19 0x08157265 in edit_interface_rep::draw_with_stored (this=0x87efac0, [EMAIL 
PROTECTED]) at ./Edit/Interface/edit_repaint.cpp:271                        
#20 0x0815762b in edit_interface_rep::handle_repaint (this=0x87efac0, x1=0, 
y1=-40448, x2=193280, y2=0) at ./Edit/Interface/edit_repaint.cpp:326       
#21 0x08051664 in QTMWidget::paintEvent (this=0x8798540, event=0xbf9046d4) at 
./Plugins/Qt/QTMWidget.cpp:146                                           
#22 0xb78809db in QWidget::event (this=0x8798540, event=0xbf9046d4) at 
kernel/qwidget.cpp:7065                                                         
#23 0x080503d6 in QTMWidget::event (this=0x8aff708, event=0x88fe6a0) at 
./Plugins/Qt/QTMWidget.cpp:276                                                 
#24 0xb7828eec in QApplicationPrivate::notify_helper (this=0x849f368, 
receiver=0x8798540, e=0xbf9046d4) at kernel/qapplication.cpp:3772
#25 0xb782db78 in QApplication::notify (this=0x845ed60, receiver=0x8798540, 
e=0xbf9046d4) at kernel/qapplication.cpp:3739
#26 0xb739d689 in QCoreApplication::notifyInternal (this=0x845ed60, 
receiver=0x8798540, event=0xbf9046d4) at kernel/qcoreapplication.cpp:587
#27 0xb788682e in qt_sendSpontaneousEvent (receiver=0x8798540, 
event=0xbf9046d4) at 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#28 0xb787acaf in QWidgetPrivate::drawWidget (this=0x87e9af8, pdev=0x871c9dc, 
[EMAIL PROTECTED], [EMAIL PROTECTED], flags=<value optimized out>,
    sharedPainter=0x860d010) at kernel/qwidget.cpp:4491
#29 0xb787b364 in QWidgetPrivate::paintSiblingsRecursive (this=0x870f6b8, 
pdev=0x871c9dc, [EMAIL PROTECTED], index=0, [EMAIL PROTECTED],
    [EMAIL PROTECTED], flags=4, sharedPainter=0x860d010) at 
kernel/qwidget.cpp:4589
#30 0xb787a866 in QWidgetPrivate::drawWidget (this=0x870f6b8, pdev=0x871c9dc, 
[EMAIL PROTECTED], [EMAIL PROTECTED], flags=4, sharedPainter=0x860d010)
    at kernel/qwidget.cpp:4532
#31 0xb787b364 in QWidgetPrivate::paintSiblingsRecursive (this=0x858d3b8, 
pdev=0x871c9dc, [EMAIL PROTECTED], index=2, [EMAIL PROTECTED],
    [EMAIL PROTECTED], flags=4, sharedPainter=0x860d010) at 
kernel/qwidget.cpp:4589
#32 0xb787a866 in QWidgetPrivate::drawWidget (this=0x858d3b8, pdev=0x871c9dc, 
[EMAIL PROTECTED], [EMAIL PROTECTED], flags=4, sharedPainter=0x860d010)
---Type <return> to continue, or q <return> to quit---
    at kernel/qwidget.cpp:4532
#33 0xb787b364 in QWidgetPrivate::paintSiblingsRecursive (this=0x858ce20, 
pdev=0x871c9dc, [EMAIL PROTECTED], index=7, [EMAIL PROTECTED],
    [EMAIL PROTECTED], flags=4, sharedPainter=0x860d010) at 
kernel/qwidget.cpp:4589
#34 0xb787a866 in QWidgetPrivate::drawWidget (this=0x858ce20, pdev=0x871c9dc, 
[EMAIL PROTECTED], [EMAIL PROTECTED], flags=4, sharedPainter=0x860d010)
    at kernel/qwidget.cpp:4532
#35 0xb79d839d in QWidgetBackingStore::cleanRegion (this=0x87a2250, [EMAIL 
PROTECTED], widget=0x8718fc0, recursiveCopyToScreen=true)
    at painting/qbackingstore.cpp:1035
#36 0xb79d8b17 in qt_syncBackingStore (widget=0x8718fc0) at 
painting/qbackingstore.cpp:319
#37 0xb78805ef in QWidget::event (this=0x8718fc0, event=0x8bc61c8) at 
kernel/qwidget.cpp:7209
#38 0xb7bcd5f5 in QMainWindow::event (this=0x8718fc0, event=0x8bc61c8) at 
widgets/qmainwindow.cpp:1252
#39 0xb7828eec in QApplicationPrivate::notify_helper (this=0x849f368, 
receiver=0x8718fc0, e=0x8bc61c8) at kernel/qapplication.cpp:3772
#40 0xb782db78 in QApplication::notify (this=0x845ed60, receiver=0x8718fc0, 
e=0x8bc61c8) at kernel/qapplication.cpp:3739
#41 0xb739d689 in QCoreApplication::notifyInternal (this=0x845ed60, 
receiver=0x8718fc0, event=0x8bc61c8) at kernel/qcoreapplication.cpp:587
#42 0xb739ea49 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
event_type=0, data=0x8477dc8)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#43 0xb739ec6d in QCoreApplication::sendPostedEvents (receiver=0x0, 
event_type=0) at kernel/qcoreapplication.cpp:1091
#44 0x082db34d in QCoreApplication::sendPostedEvents () at 
/usr/local/Trolltech/Qt-4.4.0/include/QtCore/qcoreapplication.h:220
#45 0x082d8743 in qt_gui_rep::event_loop (this=0x85ca408) at 
./Plugins/Qt/qt_gui.cpp:549
#46 0x082d8771 in gui_start_loop () at ./Plugins/Qt/qt_gui.cpp:638
#47 0x083201e3 in TeXmacs_main (argc=1, argv=0xbf9059c4) at 
./Texmacs/Texmacs/texmacs.cpp:234
#48 0x081ccd6a in new_call_back (closure=0x0, argc=1, argv=0xbf9059c4) at 
./Guile/Scheme/evaluate.cpp:29
#49 0xb70da436 in ?? () from /usr/lib/libguile.so.17
#50 0x00000000 in ?? ()
(gdb)
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to