Mysterious sigbus received from sscanf()
timm_at_mbari.org
Date: 12/14/04
- Next message: Rick Jones: "Re: Mysterious sigbus received from sscanf()"
- Previous message: Paul Pluzhnikov: "Re: HPX memory problem - calloc returns NULL"
- Next in thread: Rick Jones: "Re: Mysterious sigbus received from sscanf()"
- Reply: Rick Jones: "Re: Mysterious sigbus received from sscanf()"
- Reply: Dennis Handly: "Re: Mysterious sigbus received from sscanf()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Dec 2004 15:01:51 -0800
Hello all,
I'm relatively new to HP/UX and have been assigned to port a legacy
application from 10.x to 11. I actually accomplished this using shared
libraries, but recently had to revert back to archives and a
fully-linked app as we have to run more than one instance of the code
per processor and evidently some of it is not re-entrant or robust
enough for a SL implementation.
So I converted it to link statically, got over the link order hurdles,
and now the program throws sigbus, ostensibly from sscanf(). This is
the same code that had worked fine while in a shared library. A call
trace is shown below. The DmNat16Object below instantiates a base
class, which calls strdup() on one of it's arguments.
Any suggestions would be much appreciated.
Thanks,
Tim Meese
#0 0x7af92d58 in _sigfillset+0x2798 () from /usr/lib/libc.2
#1 0x7af90e18 in _sigfillset+0x858 () from /usr/lib/libc.2
#2 0x7af8e84c in _sscanf+0x55c () from /usr/lib/libc.2
#3 0x7af9401c in malloc+0x18c () from /usr/lib/libc.2
#4 0x7adb66bc in operator new+0x40 () from /usr/lib/libCsup.2
#5 0x10f88c in DmNat16Object::DmNat16Object (this=0x0, name=0x7f7f1f88
"TIBURON.THRUSTER.STBD_HORIZ.MOTOR_CURRENT", arraySize=1) at
DataManager.cc:492
[...]
#12 0x8994c in main (argc=1, argv=0x7f7f0a94) at
/tmp_mnt/u/timm/tiburon/unix/gui/tmacs/tmacs/tmacs.cc:90
- Next message: Rick Jones: "Re: Mysterious sigbus received from sscanf()"
- Previous message: Paul Pluzhnikov: "Re: HPX memory problem - calloc returns NULL"
- Next in thread: Rick Jones: "Re: Mysterious sigbus received from sscanf()"
- Reply: Rick Jones: "Re: Mysterious sigbus received from sscanf()"
- Reply: Dennis Handly: "Re: Mysterious sigbus received from sscanf()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|