http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51297
--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-11-24 18:40:43 UTC --- > What are the values being passed to the bsearch call? Very likely the problem indeed. qsort is known to be very picky on Solaris 8 and 9, in the sense that the comparer function must impose a total order on the array or else the function crashes. I presume it's the same for bsearch.