Why does bessel.so coredump on init?

Hello,


CPU: x86
OS: QNX 6.1.0A

I’m trying to build an application that uses Bessel functions. Why does
the app core dump (SIGSEGV) before main()?

Here’s what DL_DEBUG=1 reports:

load_object: attempt load of libsocket.so.2
load_elf32: loaded lib at addr b034e000(text) b035d4e0(data)
load_object: attempt load of libBLT24.so
load_elf32: loaded lib at addr b8200000(text) b83d8860(data)
load_object: attempt load of libX11.so.6.1
load_elf32: loaded lib at addr b0360000(text) b03f2660(data)
load_object: attempt load of libm.so.2
load_elf32: loaded lib at addr b03f8000(text) b0407e48(data)
load_object: attempt load of libbessel.so.1
load_elf32: loaded lib at addr b0409000(text) b040dee4(data)
Memory fault (core dumped)


Thanks,
-david

Operating System Tech Support wrote:

“David Alessio” <> david.alessio@hsa.hitachi.com> > wrote in message
news:> 3BDE39FB.28214CC6@hsa.hitachi.com> …
CPU: x86
OS: QNX 6.1.0A

I’m trying to build an application that uses Bessel functions. Why does
the app core dump (SIGSEGV) before main()?

Here’s what DL_DEBUG=1 reports:

load_object: attempt load of libsocket.so.2
load_elf32: loaded lib at addr b034e000(text) b035d4e0(data)
load_object: attempt load of libBLT24.so
load_elf32: loaded lib at addr b8200000(text) b83d8860(data)

What is libBLT24 ?

OK, BLT is the BLT extension to TCL/TK:

Can you post your code (everything leading up to main)? Is it possible

http://www.scriptics.com/ftp/blt/
ftp://tcl.activestate.com/pub/tcl/blt/

You’ll need TCL 8.3.2 and Tk 8.3.2

Let me move the Porting-BLT-specific to qnxrtp.porting.


you’re trying to declare a structure of monstorous size before main or on
main’s stack?

I don’t think so. The static version works well. My question for this
group is how do I get a handle on the source of this problem? I know
I’m three calls into libc, but that’s it…

-david

“David Alessio” <david.alessio@hsa.hitachi.com> wrote in message
news:3BDE39FB.28214CC6@hsa.hitachi.com

CPU: x86
OS: QNX 6.1.0A

I’m trying to build an application that uses Bessel functions. Why does
the app core dump (SIGSEGV) before main()?

Here’s what DL_DEBUG=1 reports:

load_object: attempt load of libsocket.so.2
load_elf32: loaded lib at addr b034e000(text) b035d4e0(data)
load_object: attempt load of libBLT24.so
load_elf32: loaded lib at addr b8200000(text) b83d8860(data)

What is libBLT24 ?

Can you post your code (everything leading up to main)? Is it possible
you’re trying to declare a structure of monstorous size before main or on
main’s stack?

-Adam

It’s not necessarily libbessel that is the problem, it’s more likely something else. Check for bad
relocations in your shared libs (use objdump -h and look for rel.text or rel.rodata)

David Alessio <david.alessio@hsa.hitachi.com> wrote:


Operating System Tech Support wrote:

“David Alessio” <> david.alessio@hsa.hitachi.com> > wrote in message
news:> 3BDE39FB.28214CC6@hsa.hitachi.com> …
CPU: x86
OS: QNX 6.1.0A

I’m trying to build an application that uses Bessel functions. Why does
the app core dump (SIGSEGV) before main()?

Here’s what DL_DEBUG=1 reports:

load_object: attempt load of libsocket.so.2
load_elf32: loaded lib at addr b034e000(text) b035d4e0(data)
load_object: attempt load of libBLT24.so
load_elf32: loaded lib at addr b8200000(text) b83d8860(data)

What is libBLT24 ?

OK, BLT is the BLT extension to TCL/TK:


Can you post your code (everything leading up to main)? Is it possible

http://www.scriptics.com/ftp/blt/
ftp://tcl.activestate.com/pub/tcl/blt/

You’ll need TCL 8.3.2 and Tk 8.3.2

Let me move the Porting-BLT-specific to qnxrtp.porting.



you’re trying to declare a structure of monstorous size before main or on
main’s stack?

I don’t think so. The static version works well. My question for this
group is how do I get a handle on the source of this problem? I know
I’m three calls into libc, but that’s it…

-david


cburgess@qnx.com

David Alessio wrote:

Operating System Tech Support wrote:

“David Alessio” <> david.alessio@hsa.hitachi.com> > wrote in message
news:> 3BDE39FB.28214CC6@hsa.hitachi.com> …

CPU: x86
OS: QNX 6.1.0A

I’m trying to build an application that uses Bessel functions. Why does
the app core dump (SIGSEGV) before main()?

Here’s what DL_DEBUG=1 reports:

load_object: attempt load of libsocket.so.2
load_elf32: loaded lib at addr b034e000(text) b035d4e0(data)
load_object: attempt load of libBLT24.so
load_elf32: loaded lib at addr b8200000(text) b83d8860(data)

What is libBLT24 ?


OK, BLT is the BLT extension to TCL/TK:


Can you post your code (everything leading up to main)? Is it possible


http://www.scriptics.com/ftp/blt/
ftp://tcl.activestate.com/pub/tcl/blt/

Looks very interesting …

Armin


You’ll need TCL 8.3.2 and Tk 8.3.2

Let me move the Porting-BLT-specific to qnxrtp.porting.



you’re trying to declare a structure of monstorous size before main or on
main’s stack?


I don’t think so. The static version works well. My question for this
group is how do I get a handle on the source of this problem? I know
I’m three calls into libc, but that’s it…

-david