LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Segmentation Fault - Gtk Static App (https://www.linuxquestions.org/questions/programming-9/segmentation-fault-gtk-static-app-521606/)

boogy 01-22-2007 03:02 AM

Segmentation Fault - Gtk Static App
 
Hello All:

I have made a GTK application, and compiled it statically, its size increased from 64K to 15.1MB. When i try to run it i get a segmentation fault. Can you help me with that?

Note:
When i compiled it as dynamic, it works fine with no errors, And I'm working on suse 10.1

Thanx All.

acid_kewpie 01-22-2007 04:24 AM

you can start by telling us where it's segfaulting... run it through gdb and print of a backtrace of the stack when it crashes. shouold point towards a certain library or function.

boogy 01-22-2007 06:44 AM

Thanks for your reply.

Here is what i get:

(gdb) run
Program received signal SIGSEGV, Segmentation fault.
0x083b198d in add_to_global ()

(gdb) bt
#0 0x083b198d in add_to_global ()
#1 0x083b1d3c in dl_open_worker ()
#2 0x083b05da in _dl_catch_error ()
#3 0x083b169e in _dl_open ()
#4 0x0838a1a6 in dlopen_doit ()
#5 0x083b05da in _dl_catch_error ()
#6 0x0838a451 in _dlerror_run ()
#7 0x0838a115 in __dlopen ()
#8 0x0823b02f in dlopen ()
#9 0x0823a853 in g_module_open (
file_name=0x85f6020 "/usr/local/lib/pango/1.4.0/modules/pango-basic-fc.so", flags=G_MODULE_BIND_LAZY) at gmodule-dl.c:98
#10 0x081da735 in pango_module_load (module=0x861f4e0) at modules.c:172
#11 0x08234ef8 in IA__g_type_module_use (module=0x861f4e0) at gtypemodule.c:190
#12 0x081da85b in pango_engine_pair_get_engine (pair=0x85f6000)
at modules.c:258
#13 0x081da8b7 in append_engines (engine_list=0xbff9fba8, pair_list=0x0)
at modules.c:664
#14 0x081da93a in pango_map_get_engines (map=0x867d130, script=140102980,
exact_engines=0xbff9fba8, fallback_engines=0xbff9fbac) at modules.c:707
#15 0x081c7a9e in get_shaper_and_font (state=0xbff9fb38, wc=68,
shape_engine=0xbff9faf8, font=0xbff9faf4) at pango-context.c:864
#16 0x081c7deb in itemize_state_process_run (state=0xbff9fb38)


All times are GMT -5. The time now is 03:19 AM.