Sponsored Content
Top Forums Programming how to avoid the segfault from Address 0x1cd00000103 out of bounds Post 302277361 by otheus on Friday 16th of January 2009 04:43:55 AM
Old 01-16-2009
I don't think anyone here can help you further unless you post the actual code.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

crontab: error on previous line; number out of bounds.

Hi, I am trying to set up a cron job for every Friday at 6:00 p.m. and got an error: "/var/tmp/aaaa29638" 1 line, 73 characters 00 18 00 0 5 /app/test/backup.ksh crontab: error on previous line; number out of bounds. Any ideas? Thanks! (1 Reply)
Discussion started by: oradbus
1 Replies

2. UNIX for Dummies Questions & Answers

[Linux] How Do I Run Until Segfault

Hello, sorry if this has been posted before but i was wondering if there is a way to run a program until a segmentation fault is found. Currently i'm using a simple shell script which runs my program 100 times, sleeps 1 second because srand(time(0)) is dependent on seconds. Is there a possible... (1 Reply)
Discussion started by: aslambilal
1 Replies

3. Programming

array bounds and mem leak tool

Is there any freeware to find out array bounds static and dynamic ways in Solaris 10. (1 Reply)
Discussion started by: satish@123
1 Replies

4. Solaris

Working around netscape 4.9 segfault on Solaris 8

We have a Solaris 8 server which users login to via VNC to get a desktop. On that desktop these users use Netscape Communicator 4.9 to access a very important mail account. Unfortunately Netscape has started segfaulting regularly. Does anyone have any ideas how I can try to find out what point... (1 Reply)
Discussion started by: aussieos
1 Replies

5. Programming

id3lib SEGFAULT

Hello everyone, I'm writing a program using the id3lib unfortunately I've encountered with memory issue that cause segmentation fault. I tried to rerun and analyze the program with valgrind but it doesn't point me anywhere. I really stuck on this one. Valgrind output: ==14716== Invalid read of... (2 Replies)
Discussion started by: errb
2 Replies

6. Programming

Is Drive Valid Segfault

I have a program that allows users to specify the debug log file location and name. I have tried using the access() and stat() but they both segfault if the drive say (d:\) is invalid. Both seem to be fine if the drive exists. Could someone please point me in the direction to a function that... (1 Reply)
Discussion started by: robfwauk
1 Replies

7. Programming

segfault in pointer to string program

hello all, my question is not about How code can be rewritten, i just wanna know even though i am not using read only memory of C (i have declared str) why this function gives me segfault :wall:and the other code executes comfortably though both code uses same pointer arithmetic. ... (4 Replies)
Discussion started by: zius_oram
4 Replies

8. Shell Programming and Scripting

Grep for string, but within mentioned bounds

Hi, I've been trying to filter a file which has several repetitions of lines which looks as follows: ('hello My name is jamie blabla xyz>>) Each line has different values in them. I want grep or awk or sed to treat everything within the (' and >>) as one line and then filter for a... (2 Replies)
Discussion started by: jamie_123
2 Replies

9. Programming

Segfault When Parsing Delimiters In C

Another project, another bump in the road and another chance to learn. I've been trying to open gzipped files and parse data from them and hit a snag. I have data in gzips with a place followed by an ip or ip range sort of like this: Some place:x.x.x.x-x.x.x.x I was able to modify some code... (6 Replies)
Discussion started by: Azrael
6 Replies

10. Programming

-Warray-bounds option to GCC compiler

What exactly is the -Warray-bounds option to the GCC compiler supposed to warn about? the man page states: ~ g++ --version g++ (GCC) 7.3.1 20180130 (Red Hat 7.3.1-2) Copyright (C) 2017 Free Software Foundation, Inc.Thank you. (14 Replies)
Discussion started by: milhan
14 Replies
btparse::doc::bt_macros(3)					      btparse						btparse::doc::bt_macros(3)

NAME
bt_macros - accessing and manipulating the btparse macro table SYNOPSIS
void bt_add_macro_value (AST * assignment, btshort options); void bt_add_macro_text (char * macro, char * text, char * filename, int line); void bt_delete_macro (char * macro); void bt_delete_all_macros (void); int bt_macro_length (char *macro); char * bt_macro_text (char * macro, char * filename, int line); DESCRIPTION
btparse maintains a single table of all macros (abbreviations) encountered while parsing BibTeX entries. It updates this table whenever it encounters a "macro definition" (@string) entry, and refers to it whenever a macro is used in an entry and needs to be expanded. (Macros are not necessarily expanded on input, although this is the default. See bt_postprocess.) Macro definitions are only cleared when btparse's global cleanup function, "bt_cleanup()", is called. Thus, unless you explicitly call "bt_delete_macro()" or "bt_delete_all_macros()", macro definitions persist for as long as you use the library---usually, the lifetime of your process. FUNCTIONS
You can use the following functions to add macros, delete them, and query their values---thus interfering with btparse's normal operation on the fly. bt_add_macro_text () void bt_add_macro_text (char * macro, char * text, char * filename, int line); Defines a new macro, or redefines an old one. "macro" is the name of the macro, and "text" is the text it should expand to. "filename" and "line" are just used to generate any warnings about the macro definition; if they don't apply, specify "NULL" for "filename" and 0 for "line". The only such warning occurs when you redefine an old macro: its value is overridden, and "bt_add_macro_text()" issues a warning saying so. For instance, when parsing this macro definition entry: @string{fubar = "Fouled Up Beyond All Recognition"} the library (in particular, the post-processing code called after an entry is successfully parsed) will ultimately do this: bt_add_macro_text ("fubar", "Fouled Up Beyond All Recognition", filename, line); This in turn will cause the macro "fubar" to be expanded appropriately whenever the post-processing code sees it in any future entries. bt_add_macro_value () void bt_add_macro_value (AST * assignment, btshort options); This function is mainly for internal use by the library, but it's available to you if you ever find yourself with a little bit of AST representing a macro definition, and you want to set the macro yourself (rather than letting the library's post-processing code take care of it for you). "assignment" must be an AST node as returned by "bt_next_field()". Unlike most other btparse functions that take an "options" argument, "options" here tells how the value in "assignment" was post-processed. This is needed because macro values have to be processed in a special way to be valid in future expansions; if this one wasn't processed like that, "bt_add_macro_value()" will do it for you. If you don't know how the value was post-processed, just supply 0 for "options"---that's guaranteed to describe something different from "the right way" for macros, so the post-processing will be done correctly. The processing done to macro values is mainly to ensure that we can get away with storing just a string in the macro table: macros invoked by the macro are themselves expanded, and all sub-strings are concatenated. For instance, if btparse parses these entries: @string{and = " and "} @string{jim_n_bob = "James Smith" # and # "Bob Jones"} then the value stored for "jim_n_bob" should obviously be the string "James Smith and Bob Jones". To ensure this, btparse has to process the value of "and" differently from most BibTeX strings: in particular, whitespace is not collapsed before the string is stored. That way, the correct value, " and ", is interpolated into the value of "jim_n_bob". Thus, all macro values have sub-macros expanded and strings concatenated before they are stored, but whitespace is not collapsed until the macro is used in a regular entry. This function calls "bt_add_macro_text()", so the same proviso about redefining old macros applies---a warning will be issued, and the old value lost. bt_delete_macro () void bt_delete_macro (char * macro); Deletes a macro from the macro table. If "macro" isn't defined, takes no action. bt_delete_all_macros () void bt_delete_all_macros (void); Deletes all macros from the macro table. bt_macro_length () int bt_macro_length (char *macro); Returns the length of a macro's expansion text. If the macro is undefined, returns 0; no warning is issued. bt_macro_text () char * bt_macro_text (char * macro, char * filename, int line); Returns the expansion text of a macro. If the macro is not defined, issues a warning and returns "NULL". "filename" and "line" are used for generating this warning; if they don't apply (i.e. you're not expanding the macro as a result of finding it in some file), supply "NULL" for "filename" and 0 for "line". SEE ALSO
btparse AUTHOR
Greg Ward <gward@python.net> btparse, version 0.63 2012-05-12 btparse::doc::bt_macros(3)
All times are GMT -4. The time now is 05:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy