[maemo-developers] Segmentation fault in callback functions - maemo 4.0

From: Eero Tamminen eero.tamminen at nokia.com
Date: Mon Feb 18 13:04:14 EET 2008
Hi,

ext Jakov wrote:
> I have a simple app with socket communication. In Maemo 3.x it worked well.
> But the problem comes when I use Maemo 4.0
> 
> This line is ok when initializing:
> 
> gtk_label_set_text (GTK_LABEL(communication_tab->label_connect), "Connect");
> 
> 
> The label has text "Connect";
> 
> When I click a button, I want to change its text, to "Reconnect", for
> example. A callback func is invoked, you know. But in this func, an error
> occurs:
> 
> "qemu: uncaught target signal 11 (Segmentation fault) - exiting"
> 
> It didn't happen in Maemo 3.x.
> 
> Please tell me what's wrong. Thanks very much.

Does it work on the target device?

(ARM scratchbox target is really meant for building, use x86 target
if you want to do testing in addition to the device.  On x86 you have
also tools like Valgrind for finding errors in your code better.)


	- Eero

More information about the maemo-developers mailing list