[asterisk-dev] [Code Review] 2760: Add _IO_stdin_used in version-script to fix SIGBUSes on Sparc

wdoekes reviewboard at asterisk.org
Thu Aug 15 03:08:50 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2760/
-----------------------------------------------------------

Review request for Asterisk Developers and jkister.


Bugs: ASTERISK-21763
    https://issues.asterisk.org/jira/browse/ASTERISK-21763


Repository: Asterisk


Description
-------

Asterisk was killed by SIGBUSes on Jeremy Kisters' Sparc.

One of the problems was that the STDIO file structures were getting misaligned because of some compatibility code.

A Mozilla bug report on the Debian tracker provides lots of useful info.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634261#94

>>> FYI, I found that it is triggered by the _IO_stdin_used symbol
>>> not being exported from the binary, which happened because of a
>>> version-script couple with -rdynamic. I still think there is
>>> something fishy going on on the libc6 side, but not as bad as
>>> originally thought.

>> This seems to be a known and more or less documented behavior of
>> libc to determine which ABI to use for an application software.

> A build process that mangles the export of _IO_stdin_used is (as
> defined by the libc ABI, even if not explicitly written down)
> broken.


I added comments[1] in the asterisk.exports.in file so we wouldn't forget what that strange entry is doing there.

[1] http://www.scoberlin.de/content/media/http/informatik/gcc_docs/ld_3.html#SEC7


Diffs
-----

  /branches/1.8/default.exports 396721 
  /branches/1.8/main/asterisk.exports.in 396721 

Diff: https://reviewboard.asterisk.org/r/2760/diff/


Testing
-------

See bug reports: ASTERISK-21763 and ASTERISK-21665.

Note that this doesn't fix all the problems on the Sparc, but it's a start.


Thanks,

wdoekes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130815/8cbd9004/attachment.htm>


More information about the asterisk-dev mailing list