[asterisk-dev] [Code Review] 2760: Add _IO_stdin_used in version-script to fix SIGBUSes on Sparc
wdoekes
reviewboard at asterisk.org
Wed Aug 21 04:43:12 CDT 2013
> On Aug. 21, 2013, 4:56 a.m., jkister wrote:
> > I tested this patch on Asterisk 11.5.0 and 1.8.22 on both debian/x86 and debian/sparc. Not sure my 'Ship It' matters, but,
If no one complains by the end of the day, I'm committing it.
- wdoekes
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2760/#review9448
-----------------------------------------------------------
On Aug. 15, 2013, 8:08 a.m., wdoekes wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2760/
> -----------------------------------------------------------
>
> (Updated Aug. 15, 2013, 8:08 a.m.)
>
>
> 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/20130821/1e0eef19/attachment.htm>
More information about the asterisk-dev
mailing list