1753297 Members
6587 Online
108792 Solutions
New Discussion юеВ

SIGBUS error

 
ASR
Contributor

SIGBUS error

Attached program throws SIGBUS error when we changed to most private address space g++. Not able to debug with gdb because of Error trying to get information about dynamic linker.

# g++ -N -Xlinker +as -Xlinker mpas -g -pthread mmapfile.cxx
# ./a.out
Bus error(coredump)
3 REPLIES 3
Michael Steele_2
Honored Contributor

Re: SIGBUS error

You have the core but can't analyze it? You'll need a hex editor. You can also get some info with 'strings core'.

And your cxx file is very unreadable. What the hell is a cxx file anyway? Can't you put this into ascii text format with notepad or something?

Support Fatherhood - Stop Family Law
ASR
Contributor

Re: SIGBUS error

Thanks for reply.. Attached text file.
Dennis Handly
Acclaimed Contributor

Re: SIGBUS error

This works fine with aC++ and g++ 4.2.1.

>Not able to debug with gdb because of Error trying to get information about dynamic linker.

What version of gdb do you have?

>Michael: You have the core but can't analyze it? You'll need a hex editor.

Better to get a gdb that works.

>You can also get some info with 'strings core'.

Not likely.

>What the hell is a cxx file anyway?

A C++ source file.