LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-10-2003, 11:36 AM   #1
Castro
LQ Newbie
 
Registered: Apr 2002
Location: Boston, MA
Distribution: Redhat 7.1/7.2
Posts: 5

Rep: Reputation: 0
Unhappy gnome_error_dialog seg fault??


I have a program we developed under Redhat 7.2 which uses gtk and the gnome libraries. Everything has always worked fine. Recently I made the mistake of trying the program on a fresh RedHat 7.3 box with Gnome and KDE installed. When running the program I get an immediate seg fault.

After moving the code over and recompiling on the 7.3 box I found that this fault is coming from the gnome_error_dialog call. e.g. gnome_error_dialog("wth"); I should be capable enough to relay any necessary information out of DDD or anjuta if that would help.

I configured using autoconf version 2.13 and compiled with make 3.79.1.

Can't find anything even remotely similar on the web. Also, I'm definitely a noob with the specifics of linux so flame away on obvious issues if you like just throw some insight in there as well. =P

TIA

Castro
 
Old 06-11-2003, 08:21 AM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
Look at the part of the backtrace before the <signal handler called> line. The gnome_error_handler code does what its name suggests - it displays the crash dialog.
 
Old 06-11-2003, 12:51 PM   #3
Castro
LQ Newbie
 
Registered: Apr 2002
Location: Boston, MA
Distribution: Redhat 7.1/7.2
Posts: 5

Original Poster
Rep: Reputation: 0
I'm not sure I understand fully what you mean.

For some added detail to figure it out I tried using:

GtkWidget* widDialog

widDialog = gnome_ok_dialog("Help me");


That line seg faults with no display as well.


I created a basic Gnome C application using anjuta and inserted the same dialog code and the dialog box displayed without trouble. Therefore, I am guessing it is some kind of compile/library linking issue?

Still looking for a resolution ...

TIA for any help

- Marc Castrechini
 
Old 06-11-2003, 01:28 PM   #4
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
Did you call gnome_init?
 
  


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
seg fault on fedora only dh0104 Programming 3 03-26-2005 12:57 PM
RH 7.2 crash...getting seg fault when using ls sakima Red Hat 1 10-11-2004 09:14 AM
C seg fault drigz Programming 5 10-01-2004 03:35 PM
seg fault on fclose (); lackluster Programming 4 06-28-2003 07:30 PM
gnome_app_create_menus seg fault in RH 7.3 Castro Programming 0 05-30-2003 08:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration