LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-22-2007, 03:02 AM   #1
boogy
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
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.
 
Old 01-22-2007, 04:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 01-22-2007, 06:44 AM   #3
boogy
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika Suse/Novell 2 12-02-2005 09:34 AM
Segmentation Fault after adding a radio button into my compiled app/ Gnarg Programming 2 10-18-2005 06:47 AM
Segmentation fault on toplevel = XtVaAppInitialize(&app, "Email", NULL, 0, &argc, cbranje Programming 0 02-19-2005 12:06 PM
My Qt App Produce A Segmentation Fault andresbm3 Programming 1 01-16-2004 10:41 AM
segmentation fault with my Gtk Application jaganmolleti Programming 1 03-18-2003 11:05 AM


All times are GMT -5. The time now is 12:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration