Application crash on HP-UX 11.11

Discussion in 'C++' started by Thanvir, Apr 12, 2005.

  1. Thanvir

    Thanvir Guest

    We are currently trying to port a c++ application developed on linux to
    HP unix 11.11. We have already ported the application successfully on
    Windows, solaris. We have use the gnu c++ compiler 3.4.3.
    The compilation was successfull and we created a 64 bit executable but
    the application crashes immediately when I start it(Program received
    signal SIGSEGV, Segmentation fault.
    0x40000000010a8fc4 in ?? ())


    Does anybody have any clue of how to trap what is wrong? the gdb stack
    is as follows.
    #0 0x40000000010a8fc4 in ?? ()
    warning: Attempting to unwind past bad PC 0x40000000010a8fc4
    #1 0x4000000000aca4dc in
    _GLOBAL__I_.._.._.._.._src_libstdc___v3_src_allocator_inst.cc_AAEE1AA9_4FB7074D
    () at mt_allocator.h:163
    #2 0x40000000000a9530 in __do_global_ctors_aux+0x38 ()
    #3 0xc00000000000cca0 in IN_do_list+0x178 () from
    /usr/lib/pa20_64/dld.sl
    #4 0xc00000000000f658 in crt_dld_main+0x7e0 () from
    /usr/lib/pa20_64/dld.sl
    #5 0xc00000000000a138 in $START$+0x80 () from /usr/lib/pa20_64/dld.sl
    Error accessing memory address 0x0: Invalid argument

    Thanks in advance
    Thanvir, Apr 12, 2005
    #1
    1. Advertising

  2. Thanvir

    Uenal Mutlu Guest

    The program seems to accessing a null pointer. Ie. the return
    value of some memory allocations was omitted.
    Best you can do is: locate the source location and check
    whether the requested resource allocation (ie. memory)
    succeeded, and proceed as necessary...


    "Thanvir" <> wrote in message
    news:...
    > We are currently trying to port a c++ application developed on linux to
    > HP unix 11.11. We have already ported the application successfully on
    > Windows, solaris. We have use the gnu c++ compiler 3.4.3.
    > The compilation was successfull and we created a 64 bit executable but
    > the application crashes immediately when I start it(Program received
    > signal SIGSEGV, Segmentation fault.
    > 0x40000000010a8fc4 in ?? ())
    >
    >
    > Does anybody have any clue of how to trap what is wrong? the gdb stack
    > is as follows.
    > #0 0x40000000010a8fc4 in ?? ()
    > warning: Attempting to unwind past bad PC 0x40000000010a8fc4
    > #1 0x4000000000aca4dc in
    > _GLOBAL__I_.._.._.._.._src_libstdc___v3_src_allocator_inst.cc_AAEE1AA9_4FB7074D
    > () at mt_allocator.h:163
    > #2 0x40000000000a9530 in __do_global_ctors_aux+0x38 ()
    > #3 0xc00000000000cca0 in IN_do_list+0x178 () from
    > /usr/lib/pa20_64/dld.sl
    > #4 0xc00000000000f658 in crt_dld_main+0x7e0 () from
    > /usr/lib/pa20_64/dld.sl
    > #5 0xc00000000000a138 in $START$+0x80 () from /usr/lib/pa20_64/dld.sl
    > Error accessing memory address 0x0: Invalid argument
    >
    > Thanks in advance
    >
    Uenal Mutlu, Apr 12, 2005
    #2
    1. Advertising

  3. Thanvir

    Uenal Mutlu Guest

    It should read
    "Ie. checking the return value of some memory allocations was omitted."


    "Uenal Mutlu" <> wrote in message
    news:d3g2gd$1n0$00$-online.com...
    > The program seems to accessing a null pointer. Ie. the return
    > value of some memory allocations was omitted.
    > Best you can do is: locate the source location and check
    > whether the requested resource allocation (ie. memory)
    > succeeded, and proceed as necessary...
    >
    >
    > "Thanvir" <> wrote in message
    > news:...
    > > We are currently trying to port a c++ application developed on linux to
    > > HP unix 11.11. We have already ported the application successfully on
    > > Windows, solaris. We have use the gnu c++ compiler 3.4.3.
    > > The compilation was successfull and we created a 64 bit executable but
    > > the application crashes immediately when I start it(Program received
    > > signal SIGSEGV, Segmentation fault.
    > > 0x40000000010a8fc4 in ?? ())
    > >
    > >
    > > Does anybody have any clue of how to trap what is wrong? the gdb stack
    > > is as follows.
    > > #0 0x40000000010a8fc4 in ?? ()
    > > warning: Attempting to unwind past bad PC 0x40000000010a8fc4
    > > #1 0x4000000000aca4dc in
    > >

    _GLOBAL__I_.._.._.._.._src_libstdc___v3_src_allocator_inst.cc_AAEE1AA9_4FB7074D
    > > () at mt_allocator.h:163
    > > #2 0x40000000000a9530 in __do_global_ctors_aux+0x38 ()
    > > #3 0xc00000000000cca0 in IN_do_list+0x178 () from
    > > /usr/lib/pa20_64/dld.sl
    > > #4 0xc00000000000f658 in crt_dld_main+0x7e0 () from
    > > /usr/lib/pa20_64/dld.sl
    > > #5 0xc00000000000a138 in $START$+0x80 () from /usr/lib/pa20_64/dld.sl
    > > Error accessing memory address 0x0: Invalid argument
    > >
    > > Thanks in advance
    > >

    >
    >
    Uenal Mutlu, Apr 12, 2005
    #3
  4. Thanvir

    Thanvir Guest

    The first line in the main reads like this
    cout<<"Main .....";
    Even this is not displayed before the segmentation fault.
    So don't know how to locate for the code where it crashes.
    The same code executes fine in Linux, windows and solaris.
    Thanvir, Apr 13, 2005
    #4
  5. Read the gdb messages carefully. You can see:

    __do_global_ctors_aux+0x38 ()

    which suggests that some global object's constructor contains the
    problem. If I were you, I would check all the global variables that
    use allocators:

    _GLOBAL__I_.._.._.._.._src_lib stdc___v3_src_allocator_inst.c
    c_AAEE1AA9_4FB7074D

    Regards
    --
    Piotr Filip Mieszkowski
    Piotr Filip Mieszkowski, Apr 13, 2005
    #5
    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. =?Utf-8?B?TmlsZXNodw==?=

    application crash in try catch

    =?Utf-8?B?TmlsZXNodw==?=, Mar 2, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    2,170
    Sorin Dolha [MCSD .NET]
    Mar 2, 2004
  2. Replies:
    2
    Views:
    402
    =?Utf-8?B?QnJlbmRhbiBTdGV2ZW5zb24=?=
    Mar 22, 2005
  3. Dusty Lefevre
    Replies:
    0
    Views:
    815
    Dusty Lefevre
    Mar 27, 2005
  4. Thanvir
    Replies:
    0
    Views:
    576
    Thanvir
    Apr 12, 2005
  5. Thanvir
    Replies:
    0
    Views:
    620
    Thanvir
    Apr 12, 2005
Loading...

Share This Page