this is pure speculation unless we can get ahold of the source code for your 
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.html

ssize_t
   29 __sendto (int fd,
   30           const void *buf,
   31           size_t n,
   32           int flags,
   33           const struct sockaddr_un *addr,
   34           socklen_t addr_len)
Here his maximum buffer length for sending is unsigned int specifically size_t
so..
are both send and receive entities IPv4 or both entities are IPv6
if thats the case..
can you send 
0 Bytes
2 bytes
4 bytes
8 bytes
at what maximum length of buffer does the segfault occur
?

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.


> From: p...@computer.org
> Subject: RE: UDF writing to unix socket - segfaults?
> Date: Wed, 8 Aug 2012 15:39:09 +0200
> To: mysql@lists.mysql.com
> 
> Martin Gainty wrote:
> 
> > assuming you worked out the access to network by your code permissions
> 
> When I open the unix socket, I give it 0777.
> 
> > 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
> 
> I'm running on Linux, so that is glibc - they work fine in a lot of
> other code. I find it hard to suspect those two. 
> 
> 
> /Per
> 
> -- 
> Per Jessen, Zürich (23.0°C)
> 
> 
> -- 
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/mysql
> 
                                          

Reply via email to