This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: STATUS_ACCESS_VIOLATION/segfault problems with cygwin 1.1.4


>>>>> "Albert" == Albert Graef <Dr.Graef@t-online.de> writes:

    Albert> I've been following the threads about STATUS_ACCESS_VIOLATION/segfault
    Albert> problems for some days now, since I had really bad troubles running a
    Albert> software which works without a hitch under Linux and mingw, and also used to
    Albert> work with previous gnuwin32/cygwin releases.

    Albert> I've been looking into it, and I am 100% sure that's it a problem with the
    Albert> latest cygwin release (maybe with the linker or ar, or with the system
    Albert> libraries, you experts know better ;-).

    Albert> The problem occurs whenever you build a static library and a program which
    Albert> is linked to both this library and libm.a. I can reproduce it with sources
    Albert> as simple as the following:

WOW, I tried this and removed -lm from the link line of

  o xfig-3.2.3c - http://www.XFIG.ORG/xfigdist/

and now it works. Before it build fine but I also got the STATUS_ACCESS_VIOLATION.

Thanks, this drove me crazy for 3 days now.

Ciao
  Volker

PS:

I just checked some other combinations:

vzell:/gnu/src/xfig.3.2.3c> /usr/bin/gcc -o xfig.exe -O2 -pedantic -fno-strength-reduce -fpcc-struct-return -fvtable-thunks -m486 -Wall     -L/usr/X11R6/lib d_arc.o d_arcbox.o d_box.o d_ellipse.o d_picobj.o            d_subspline.o d_line.o d_regpoly.o d_spline.o d_text.o          e_addpt.o e_align.o e_arrow.o e_break.o e_compound.o            e_convert.o e_copy.o e_delete.o e_deletept.o          e_edit.o e_flip.o e_glue.o e_joinsplit.o e_move.o               e_movept.o e_placelib.o e_rotate.o e_scale.o e_update.o      f_load.o f_neuclrtab.o f_picobj.o f_read.o f_readold.o           f_readppm.o f_readtif.o f_readeps.o             f_readxbm.o f_readgif.o f_readjpg.o f_readpcx.o f_readxpm.o           f_save.o f_util.o f_wrpcx.o             main.o mode.o object.o resources.o              u_bound.o u_create.o u_drag.o u_draw.o          u_elastic.o u_error.o u_fonts.o u_free.o u_geom.o             u_list.o u_markers.o u_pan.o u_print.o          u_redraw.o u_scale.o u_search.o u_tra!
!
nslate.o u_undo.o w_listwidget.o w_browse.o w_capture.o w_srchrepl.o w_help.o w_layers.o w_menuentry.o           w_canvas.o w_cmdpanel.o w_color.o w_cursor.o w_dir.o w_drawprim.o               w_export.o w_file.o w_fontbits.o w_fontpanel.o w_grid.o w_icons.o             w_indpanel.o w_library.o w_modepanel.o w_mousefun.o w_msgpanel.o                w_print.o w_rottext.o w_rulers.o w_setup.o w_util.o w_zoom.o           -L/usr/lib -ljpeg   -L/usr/X11R6/lib -lm -lXpm  -lXaw3d -lXmu -lXt -lSM -lICE -lXext -lX11 -lXpm
vzell:/gnu/src/xfig.3.2.3c> ./xfig.exe 
      0 [main] xfig 11094 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
   4172 [main] xfig 11094 stackdump: Dumping stack trace to xfig.exe.stackdump
Segmentation fault (core dumped)


vzell:/gnu/src/xfig.3.2.3c> /usr/bin/gcc -o xfig.exe -O2 -pedantic -fno-strength-reduce -fpcc-struct-return -fvtable-thunks -m486 -Wall     -L/usr/X11R6/lib d_arc.o d_arcbox.o d_box.o d_ellipse.o d_picobj.o            d_subspline.o d_line.o d_regpoly.o d_spline.o d_text.o          e_addpt.o e_align.o e_arrow.o e_break.o e_compound.o            e_convert.o e_copy.o e_delete.o e_deletept.o          e_edit.o e_flip.o e_glue.o e_joinsplit.o e_move.o               e_movept.o e_placelib.o e_rotate.o e_scale.o e_update.o      f_load.o f_neuclrtab.o f_picobj.o f_read.o f_readold.o           f_readppm.o f_readtif.o f_readeps.o             f_readxbm.o f_readgif.o f_readjpg.o f_readpcx.o f_readxpm.o           f_save.o f_util.o f_wrpcx.o             main.o mode.o object.o resources.o              u_bound.o u_create.o u_drag.o u_draw.o          u_elastic.o u_error.o u_fonts.o u_free.o u_geom.o             u_list.o u_markers.o u_pan.o u_print.o          u_redraw.o u_scale.o u_search.o u_tra!
!
nslate.o u_undo.o w_listwidget.o w_browse.o w_capture.o w_srchrepl.o w_help.o w_layers.o w_menuentry.o           w_canvas.o w_cmdpanel.o w_color.o w_cursor.o w_dir.o w_drawprim.o               w_export.o w_file.o w_fontbits.o w_fontpanel.o w_grid.o w_icons.o             w_indpanel.o w_library.o w_modepanel.o w_mousefun.o w_msgpanel.o                w_print.o w_rottext.o w_rulers.o w_setup.o w_util.o w_zoom.o           -L/usr/lib -ljpeg   -L/usr/X11R6/lib -lXpm  -lXaw3d -lXmu -lXt -lSM -lICE -lXext -lX11 -lXpm -lm   
vzell:/gnu/src/xfig.3.2.3c> ./xfig.exe 



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]