From: Martin Gainty Date: August 8 2012 12:58pm Subject: RE: UDF writing to unix socket - segfaults? List-Archive: http://lists.mysql.com/mysql/227968 Message-Id: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_0e5cb5b0-44a8-40da-b804-2b9718a0c09e_" --_0e5cb5b0-44a8-40da-b804-2b9718a0c09e_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable assuming you worked out the access to network by your code permissions that means memory heap or stack is being overrun...you would be well advise= d to download the connect() and sendto() code from the OS vendor and toss i= n plenty of codeguard and debug statements and recompile and rebuild. Mit Fruendlichen Gr=FC=DFen Martin=20 (12.2=B0C) ______________________________________________=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: UDF writing to unix socket - segfaults? > Date: Wed=2C 8 Aug 2012 08:26:23 +0200 > To: mysql@stripped >=20 > I am writing a UDF for sending messages to a local daemon. I've been > trying to make it use a UNIX socket=2C but it keeps segfaulting on > connect() or sendto(). I have double and tripled checked everything=2C > but I'm not finding anything.=20 >=20 > After a day or two=2C I finally decided to switch to UDP and writing to > localhost instead=2C which works fine. I still feel writing to a UNIX > socket ought to work and even if I've got a permission issue or > similar=2C a segfault is not the appropriate handling. Any clues? >=20 >=20 > --=20 > Per Jessen=2C Z=FCrich (16.5=B0C) >=20 >=20 > --=20 > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/mysql >=20 = --_0e5cb5b0-44a8-40da-b804-2b9718a0c09e_--