[XForms] c++ xforms code segfaults

Jens Thoms Toerring jt at toerring.de
Tue Apr 28 12:52:16 CEST 2009


To subscribers of the xforms list

Hi Bon,

On Wed, Apr 22, 2009 at 06:06:53PM -0400, Robert Williams wrote:
> I'm trying to resurrect an XForms based package
> of mine named XSpectra, written in mixed C++ and
> Fortran.   The package was working once,
> compiles and links without errors,
> but segfaults before entering the main program:
> 
> (gdb) run
> Starting program: /usr/local/src/xspectra_march_2009/xspectra
> Program received signal SIGSEGV, Segmentation fault.
> 0xb7fb03d7 in __do_global_dtors_aux ()
> Current language:  auto; currently asm
> 
> Breakpoints don't help and backtrace shows only the
> __do_global_dtors_aux () line above.    Does anyone on the list have
> a small working C++ example, or any experience with this
> situation?

I haven't answered yet because I am not very well acquainted
with C++ but I would of course be very interested if you could
solve this problem already and if it had anything to do with
the newer version of XForms. I tried to write an extremely
simple C++ program using XForms (just calling fl_initialize()
and  fl_finish() and with that I couldn't reproduce your pro-
blem - but that, of course, doesn't prove anything...

                            Best regards, Jens
-- 
  \   Jens Thoms Toerring  ________      jt at toerring.de
   \_______________________________      http://toerring.de
_______________________________________________
To unsubscribe, send any message to
xforms-leave at bob.usuhs.mil or see: 
http://cweblog.usuhs.mil/mailman/listinfo/xforms
List Archive: http://bob.usuhs.mil/pipermail/xforms and
http://bob.usuhs.mil/mailserv/list-archives/
XForms Home: http://savannah.nongnu.org/projects/xforms



More information about the Xforms mailing list