polarssl segfaults in certain functions(test with polarssl_ssl_server2 i.e.)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
Expired
|
Undecided
|
Unassigned |
Bug Description
Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l GNU/Linux
$ polarssl_
. Seeding the random number generator... ok
. Loading the CA root certificate ... ok (0 skipped)
. Loading the server cert. and key...*** glibc detected *** polarssl_
Aborted
$ dpkg -s libc6 | grep ^Version
Version: 2.13-38+rpi2
$ dpkg -s libpolarssl0 | grep ^Version
Version: 1.1.4-2
I needed to compile some certain package that uses polarssl, I was unsuccesfull with running it, nether with polarssl from raspbian repositories nor with the one compiled from source frome their website. But I managed to dig some stuff up when I compiled polarssl with debug information. In that case the error was stemming from bignum.c file in polarssl, it is using bunch of macros that try to use architecture dependent assembly. And my guess would be that it fails to use correct one(or to fallback to general C implementation, if non of them match pi's assembly). However I cannot guarante that polarssl_
I would guess that the simples fix would be to make polarssl fallback to generic C implementations of mentioned functions (and possibly others that I did not find).
Have you tried to get in touch with polarssl upstream?