Re: ivtools 1.0.6
Brought to you by:
johnston
From: Scott J. <joh...@ve...> - 2002-12-02 20:01:22
|
I see that you are building a custom application on top of ivtools. That is great. First off, what sample program from ivtools did you start with for your "ged" program? Trying to make use of ivtools/InterViews without reusing an existing program is quite impossible. You need to start with a working program, and evolve it one step at a time into what you need, testing that things still work after every change. If that is the case, then when you get a segmentation fault in gdb you need to determine what caused it by inspecting (printing) all the local variables. This is made easier if you run gdb from emacs (M-x gdb). If everything is compiled with -g, and emacs can find the sources, it will bring up the source file and show where the segmentation fault occurred. There are so many possible explanations for what your problem might be that I can do little but offer strategies for you to apply yourself. I am not sure of your general skill level with C++ or Unix or gcc, but your problem might well fall into the category of basic skills needed for these domains. I would suggest a book on programming for Linux, one with an emphasis on C++, gcc, and gdb. Unfortunately I can't recommend any titles (please share with the list if you find a good one). But if the problem is specific to ivtools, please post further to this mailing list for continued help. Good Luck, Scott Johnston http://www.ivtools.org At 1:40 PM -0500 12/2/02, czebaduag wrote: > Hiiii... > >I continue trying to find solution about an application >with ivtools 1.0.6.... > >Next I give you my error message: > >gdb ./LINUX_EGCS/ged >GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT) >Copyright 2001 Free Software Foundation, Inc. >GDB is free software, covered by the GNU General Public >License, and you are >welcome to change it and/or distribute copies of it under >certain conditions. >Type "show copying" to see the conditions. >There is absolutely no warranty for GDB. Type "show >warranty" for details. >This GDB was configured as "i386-redhat-linux"... >(gdb) run >Starting program: >/home/setac/Head/SetacC/Ged/ged/./LINUX_EGCS/ged >[New Thread 1024 (LWP 6031)] >Conectado a SQL como modelos > > >Program received signal SIGSEGV, Segmentation fault. >[Switching to Thread 1024 (LWP 6031)] >0x40705b1f in rep__C7ivColorP14ivWindowVisual >(this=0x812a6c8, wv=0x8124300) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../IV-X11/xcolor.c:39 >39 implementPtrList(ColorRepList,ColorRep) >Current language: auto; currently c > > >#0 0x40705b1f in rep__C7ivColorP14ivWindowVisual >(this=0x812a6c8, > wv=0x8124300) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../IV-X11/xcolor.c:39 >#1 0x407037f5 in color__11ivCanvasRepPC7ivColor >(this=0x8141b00, > color=0x812a6c8) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../IV-X11/xcanvas.c:1282 >#2 0x40700d0f in fill__8ivCanvasPC7ivColor >(this=0x8141af0, color=0x812a6c8) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../IV-X11/xcanvas.c:500 >#3 0x4070421a in fill_rect__8ivCanvasffffPC7ivColor >(this=0x8141af0, l=0, > b=0, r=502.079987, t=382.079987, c=0x812a6c8) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../IV-X11/xcanvas.c:518 >#4 0x4066313b in >draw__C12ivBackgroundP8ivCanvasRC12ivAllocation ( > this=0x8126fc0, c=0x8141af0, a=@0x8141a38) > at >/home/setac/ivtools/ivtools-1.0/src/include/InterViews/geometry.h:295 >#5 0x4071d805 in repair__8ivWindow (this=0x81419e8) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../IV-X11/xwindow.c:581 >#6 0x4071c834 in repair__9ivDisplay (this=0x8123700) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../IV-X11/xwindow.c:1765 >#7 0x4071c9b6 in get__9ivDisplayR7ivEvent >(this=0x8123700, event=@0xbffff470) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../IV-X11/xwindow.c:2018 >#8 0x406c309c in check__12ivSessionRepR7ivEvent >(this=0x80fe2f8, > e=@0xbffff470) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../InterViews/session.c:3 >---Type <return> to continue, or q <return> to quit--- >80 >#9 0x406c2f6f in read__9ivSessionR7ivEventPFv_Ui >(this=0x80f15d0, > e=@0xbffff470, test=0) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../InterViews/session.c:3 >45 >#10 0x406c2d5b in run__9ivSession (this=0x80f15d0) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../InterViews/session.c:2 >85 >#11 0x406c2e0d in run_window__9ivSessionP8ivWindow >(this=0x80f15d0, > w=0x81419e8) > at >/home/setac/ivtools/ivtools-1.0/src/IV/LINUX/../../InterViews/session.c:2 >97 >#12 0x080536fd in main (argc=1, argv=0xbffff684) at >ged.cc:86 >#13 0x4139a507 in __libc_start_main (main=0x80535ac ><main>, argc=1, > ubp_av=0xbffff684, init=0x8051cd8 <_init>, >fini=0x809b8c0 <_fini>, > rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff67c) > at ../sysdeps/generic/libc-start.c:129 > > >can everybody help me......???? > >I don know what hapened..... > > >Thanks a lot for your time....... > > >Carlos Zebadua > > >------------------------------------------------------- >This SF.net email is sponsored by: Get the new Palm Tungsten T >handheld. Power & Color in a compact size! >http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en >_______________________________________________ >Ivtools-user mailing list >Ivt...@li... >https://lists.sourceforge.net/lists/listinfo/ivtools-user |