This is the mail archive of the cygwin 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]
Other format: [Raw text]

SIGSEGV in cygwin1.dll


Hi list, this is my first post here.
I'm writing an application that uses SDL, lib3ds and glib
I've installed SDL and lib3ds from sources, both compiled with -mno-cygwin, while glib (2.2) comes from here http://web.sfc.keio.ac.jp/~s01397ms/cygwin/
I wasn't able to compile it from sources, still need to understand why.
Anyway after I actually compiled my application I run it and ... SIGSEGV
(The application works in my linux box)
With gdb I was able to collect this stack trace:


Program received signal SIGSEGV, Segmentation fault.
0x61021a8b in unsetenv () from /usr/bin/cygwin1.dll
(gdb) bt
#0 0x61021a8b in unsetenv () from /usr/bin/cygwin1.dll
#1 0x6101f9b2 in dlfork () from /usr/bin/cygwin1.dll
#2 0x6101fa28 in getenv () from /usr/bin/cygwin1.dll
#3 0x0061ccec in g_type_init_with_debug_flags ()
from /usr/bin/cyggobject-2.0-0.dll
#4 0x0061ce4c in g_type_init () from /usr/bin/cyggobject-2.0-0.dll
#5 0x0040566f in e3d_init () at e3d.c:7
#6 0x00401fcc in test3 (surface=0x3e6bb8) at main.c:332
#7 0x004028df in SDL_main (argc=1, argv=0x22fec0) at main.c:473
#8 0x00407942 in console_main (argc=1, argv=0x22fec0)
at win32/SDL_win32_main.c:249
#9 0x00407aee in WinMain (hInst=0x400000, hPrev=0x0, szCmdLine=0x241f05 "",
sw=10) at win32/SDL_win32_main.c:361
#10 0x004073df in main ()


I tried to get cygwin from cvs and compile a debug version of cygwin1.dll, but i can't.
I didn't find a doc on how to compile it from sources, in particular i'm interestend in compiling only src/winsup/cygwin and not all cygwin.
Is it possible? How?
If i can compile it I'll able to understand where's the problem


Thanks

Marco Canini


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


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