Mysterious sigbus received from sscanf()

timm_at_mbari.org
Date: 12/14/04


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



Relevant Pages

  • Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps
    ... pass in log on $ext_if proto tcp from any to $ext_if port 22 keep state ... php4-ctype-4.4.4_1 The ctype shared extension for php ... pkgconfig-0.17.2 A utility to retrieve information about installed libraries ...
    (freebsd-questions)
  • RE: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps
    ... pass in log on $ext_if proto tcp from any to $ext_if port 22 keep state ... php4-ctype-4.4.4_1 The ctype shared extension for php ... xorg-libraries-6.8.2 X11 libraries and headers from X.Org ...
    (freebsd-questions)
  • RE: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps
    ... pass in log on $ext_if proto tcp from any to $ext_if port 22 keep state ... php4-ctype-4.4.4_1 The ctype shared extension for php ... xorg-libraries-6.8.2 X11 libraries and headers from X.Org ...
    (freebsd-questions)
  • Re: Is Forth more focused on detail rather than on concept?
    ... proprietary extensions sucks a lot. ... E.g. the VFX port for MINOS has 1500 ... The next port will have those 1500 lines again, ... far more time implementing libraries outside the kernel than time ...
    (comp.lang.forth)
  • XFree86-4 port wont build under 5.3
    ... broker# make ... I checked the port at the ... freetype2-2.1.7_3 A free and portable TrueType font rendering engine ... linux-XFree86-libs-4.3.0_2 XFree86 libraries, Linux/i386 binary ...
    (freebsd-questions)