Sponsored Content
Top Forums Programming What is an "Illegal Instruction -Core Dumped" Post 39080 by samn on Wednesday 6th of August 2003 09:11:49 AM
Old 08-06-2003
What is an "Illegal Instruction -Core Dumped"

Hai!

i am working on Digital UNIX V3.2c Work station, my program uses Pro*C, C and X-Motif calls. i am facing problem while running application saying "Illegal Instruction Core Dumped".
debugger dbx shows error at a line which shows "noname". when commenting large portion of the code it runs successfully and the code is quite large consisting of about 300 files the same is working perfectly fine when compiled and executed on Windows NT/ XP with Exceed( an X window emulation and development environment on PC).

Please advice what to do and i would like to understand when this type of error occurs.


Regards,
Sam .N
 

9 More Discussions You Might Find Interesting

1. Programming

why tell "core dumped"?

why tell core dumped? I am a new .I write a program.I use cc to complier it. when i run it,it tell me "core dumped"? who can tell me the reason? the program as follow: main() { char *a; printf("please input your name:"); scanf("%s",a); printf("\n"); printf("%s",a); } (3 Replies)
Discussion started by: fresh
3 Replies

2. HP-UX

script running with "ksh" dumping core but not with "sh"

Hi, I have small script written in korn shell. When it is called from different script, its dumping core, but no core dump when we run it standalone. And its not dumping core if we run the script using "/bin/sh" instead of "ksh" Can some body please help me how to resolve this issue. ... (9 Replies)
Discussion started by: simhe02
9 Replies

3. UNIX for Dummies Questions & Answers

Error: "logger: illegal option -- p"

Hi All, I am working on a Solaris 10 server. From this month start, it gives the error "logger: illegal option -- p" with each command. If I execute a script whose output shown on terminal, it comes many times.. Could you please help? It comes only for my login. And I dont remember any changes... (4 Replies)
Discussion started by: jaiseaugustine
4 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

How to solve this problem "Illegal Option"

I am just trying to read the password from command prompt that user should type with in 10 seconds, I am getting "read: Illegal option -t" #!/bin/bash ... (1 Reply)
Discussion started by: KarthikPS
1 Replies

6. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

7. UNIX for Dummies Questions & Answers

Find a string across line break (because of "segmentation fault core dumped")

Hi, thanks to a precedent post, and thanks to the reply of derekludwig of the forum, I have convert my first awk command as : test.txt is : AAAAAGHIJKLAjKMEFJKLjklABCDJkLEFGHIJKL awk -f findstring.awk test.txt > textreturn.txtfindstring.awk is : BEGIN{ SLENGTH = 3 } { ... (3 Replies)
Discussion started by: thewizarde6
3 Replies

8. UNIX for Dummies Questions & Answers

Is "stat: illegal option -- -" an issue with hyphenated filename or flag problem?

Hi. I'm trying to install VMWare Workstation to run a virtual machine on my Mac OS, but running the bundle from bash(xterm) sh VMware-workstation-Full-11.0.0-2305329.x86_64.bundle (as suggested in install guide) comes up with error:stat: illegal option -- - usage: stat Digging... (5 Replies)
Discussion started by: defeated
5 Replies

9. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
XtInstallAccelerators() 												   XtInstallAccelerators()

Name
  XtInstallAccelerators - install a widget's accelerators on another widget.

Synopsis
  void XtInstallAccelerators(destination, source)
	 Widget destination;
	 Widget source;

Inputs
  destination
	    Specifies  the widget in which events specified in the accelerator table will be detected.	Must be of class Core or any subclass
	    thereof.

  source    Specifies the widget whose actions will be invoked when events occur in destination.  Must be  of  class  Core  or	any  subclass
	    thereof.

Description
  XtInstallAccelerators()  merges  the accelerator table of source into the translation table of destination.  After this call, events in the
  destination widget will trigger actions in the source widget.

  If the display_accelerator() method of source is non-NULL, XtInstallAccelerators() calls it with source and a canonical  representation  of
  the accelerator table that was installed.  This method is a hook that is intended to allow a widget to dynamically modify its appearance (a
  menu button might display the key sequence that will invoke it, for example) when an accelerator is installed.

Usage
  It is often convenient to be able to bind events in one widget to actions in another.  In particular, it is often  useful  to  be  able  to
  invoke menu actions from the keyboard.  The Intrinsics provide a facility, called accelerators, that let you accomplish this.  An accelera-
  tor table is a translation table that binds events in the destination widget to actions in the source widget.  The accelerator table can be
  installed  on  one or more destination widgets.  When an event sequence in destination would cause an accelerator action to be invoked, and
  if the source widget is sensitive, the actions are executed as though triggered by the same event sequence in source.  The event is  passed
  to the action procedure without modification.  The action procedures used within accelerators must assume neither that the source widget is
  realized, nor that any fields of the event are in reference to the source widget's window if the widget is realized.

  Every widget includes an XtNaccelerators resource, which is defined by the Core widget class.  The actual value of  this  resource  can  be
  hardcoded by the application or set in a resource file, just like any other resource.

  In  order for the XtNaccelerators resource to actually be used, however, the application must call XtInstallAccelerators() (or XtInstallAl-
  lAccelerators()).  This call takes two arguments.  The destination widget is the widget whose translation table will be augmented with  the
  accelerator table from the source widget.

  It  is  difficult to remember which of the two widgets in this call is which.  If you want to install a keyboard accelerator so that a key-
  stroke in a text widget invokes an action in a menu button, then the menu button is the source, and the text	widget	is  the  destination.
  You must set the accelerator table in the XtNaccelerators resource of the menu button, and then install those accelerators on the text wid-
  get.

  If you are programming with the Motif widget set, you will generally not be able to use accelerators as described here.  Motif  provides  a
  different (and incompatible) style of accelerators for use with menus; see Volume 6, Motif Programming Manual for more information.

Example
  Assume  an  application  whose  top-level shell widget is named topLevel, and which contains a Command widget instance named quit.  Further
  assume that the quit widget has the following XtNaccelerators resource defined for it:

	*quit.accelerators:	 <KeyPress>q: notify()

  The call:

	XtInstallAccelerators (topLevel, quit);

  would allow a "q" typed in the application's top-level window to invoke the quit widget's notify action.  The  notify  action  invokes  the
  callback list of the button, and assuming that a quit callback was registered, causes the application to terminate.

See Also
  XtInstallAllAccelerators(1),
  display_accelerator(4).

Xt - Translations and Actions												   XtInstallAccelerators()
All times are GMT -4. The time now is 10:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy