Re: Invalid string offset problem in motif.

Discussion in 'C Programming' started by Michel Bardiaux, Jul 23, 2003.

  1. Surya Kiran wrote:
    > Joe Durusau <> wrote in message news:<>...
    >
    >>Surya Kiran wrote:
    >>
    >>>Hi all,
    >>>Dont know where to post this problem, and so i'm posting this question
    >>>on all the lists. Please do not think otherwise.
    >>>
    >>>I've created a statically linked motif application, on my Redhat 8.0
    >>>machine, with g++-3.2 and Motif 2.1. The executable is running fine on
    >>>redhat 7.3 machines, and some redhat 8.0 machines. On my machine
    >>>(redhat 8.0) it was showing segmentation violation. I opened the
    >>>executable in a debugger, and the debugger was showing an error
    >>>
    >>>===========
    >>> invalid string offset 194 >= 128 for section `'
    >>>(no debugging symbols found)...(gdb)
    >>>===========
    >>>
    >>>what could have gone wrong. I was not able to figure out anything from
    >>>the error message shown by the debugger.
    >>>
    >>>Thanks in advance,
    >>>Surya

    >>
    >> As a first guess, although you said that this is a statically
    >>linked app, see whether it has any refs to shared libs. There may
    >>be some you don't know about, and they could be different on your
    >>system.
    >>
    >>(maybe run ldd or some such against the executable).
    >>
    >>Speaking only for myself,
    >>
    >>Joe Durusau

    >
    >
    > I've tested that... It has no references to any shared libs.


    And that may well be the problem. Static linking to libc is inherently
    risky.



    --
    Michel Bardiaux
    Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles
    Tel : +32 2 790.29.41
    Michel Bardiaux, Jul 23, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Harald Hein
    Replies:
    0
    Views:
    486
    Harald Hein
    Jul 22, 2003
  2. Roedy Green
    Replies:
    0
    Views:
    402
    Roedy Green
    Jul 22, 2003
  3. Lance Riedel

    Translated Offset to Source Offset

    Lance Riedel, Oct 14, 2003, in forum: XML
    Replies:
    2
    Views:
    498
    Patrick TJ McPhee
    Oct 15, 2003
  4. Daniel Tscharnuter

    Motif: scale widget Problem

    Daniel Tscharnuter, Jan 24, 2004, in forum: C++
    Replies:
    1
    Views:
    339
    Victor Bazarov
    Jan 24, 2004
  5. Roy Smith
    Replies:
    4
    Views:
    263
    Roy Smith
    Jan 27, 2013
Loading...

Share This Page