From: Martin Gainty Date: August 8 2012 2:57pm Subject: RE: UDF writing to unix socket - segfaults? List-Archive: http://lists.mysql.com/mysql/227971 Message-Id: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_df14932f-5b7d-4612-a205-9883c8f48ae5_" --_df14932f-5b7d-4612-a205-9883c8f48ae5_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable this is pure speculation unless we can get ahold of the source code for you= r specific version of glibc and determine what the maximum sizes are .. otherwise anything I suggest would be speculative..lets take a look at http://fossies.org/dox/glibc-2.16.0/sysdeps_2mach_2hurd_2sendto_8c_source.h= tml ssize_t 29 __sendto (int fd=2C 30 const void *buf=2C 31 size_t n=2C 32 int flags=2C 33 const struct sockaddr_un *addr=2C 34 socklen_t addr_len) Here his maximum buffer length for sending is unsigned int specifically siz= e_t so.. are both send and receive entities IPv4 or both entities are IPv6 if thats the case.. can you send=20 0 Bytes 2 bytes 4 bytes 8 bytes at what maximum length of buffer does the segfault occur ? Martin=20 ______________________________________________=20 Verzicht und Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit= =E9 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaeng= er sein=2C so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiter= leitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient l= ediglich dem Austausch von Informationen und entfaltet keine rechtliche Bin= dungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen w= ir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAtes= pas le destinataire pr=E9vu=2C nous te demandons avec bont=E9 que pour sat= isfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9e= ou la copie de ceci est interdite. Ce message sert =E0 l'information seule= ment et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant d= onn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation= =2C nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni= . > From: per@stripped > Subject: RE: UDF writing to unix socket - segfaults? > Date: Wed=2C 8 Aug 2012 15:39:09 +0200 > To: mysql@stripped >=20 > Martin Gainty wrote: >=20 > > assuming you worked out the access to network by your code permissions >=20 > When I open the unix socket=2C I give it 0777. >=20 > > that means memory heap or stack is being overrun...you would be well > > advised to download the connect() and sendto() code from the OS vendor >=20 > I'm running on Linux=2C so that is glibc - they work fine in a lot of > other code. I find it hard to suspect those two.=20 >=20 >=20 > /Per >=20 > --=20 > Per Jessen=2C Z=FCrich (23.0=B0C) >=20 >=20 > --=20 > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/mysql >=20 = --_df14932f-5b7d-4612-a205-9883c8f48ae5_--