Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Trusted Contributor
Posts: 104
Registered: ‎02-05-2012
My Device: Bold 9900 (primary) Z10 LE (secondary)
My Carrier: Singtel

[solved]SIGSEGV fault

[ Edited ]

When testing SDL-based LBreakout on Q10:

Process 19493092 (LBreakout) terminated SIGSEGV code=1 fltno=11 ip=01a16660(/usr/lib/ldqnx.so.2@__cortex_a9_strlen+0xf) mapaddr=00066660. ref=000010cd

 main.cpp:

#ifdef HAVE_CONFIG_H
#include "../config.h.in"
#endif

#include <stdlib.h>
#include "game.h"
#include "sndsrv.h"

#define SRC_DIR "./"
#define VERSION 010315

char    *src_dir = SRC_DIR;
char    *home_dir;
int     fast_quit = 0;

int main(int argc, char *argv[])
{
    // version //
    printf("LBreakout %s\nCopyright 2000 Michael Speck\n", VERSION);
    printf("Level Charts by Jean-Philippe Martin\n");
    printf("Enjoy the game!\n-----\n");

    home_dir = getenv("HOME");
#ifdef SOUND
    SndSrv_Init(16);
#endif
	Game *game = new Game();
	game->Run();
	delete game;
#ifdef SOUND
	SndSrv_Quit();
#endif
	return 0;
}

 Even the first printout can't work properly. 

Need help please. Thanks.

Highlighted
Trusted Contributor
Posts: 104
Registered: ‎02-05-2012
My Device: Bold 9900 (primary) Z10 LE (secondary)
My Carrier: Singtel

Re: [solved]SIGSEGV fault

#define VERSION "010315"

 Done.