Giter VIP home page Giter VIP logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Igor, please notice that Meny used feed file with 5 sockets and run the server 
with 5 threads.
After you fix it, please see if this also fixes Alex Seydin's issue and let us 
know.

Original comment by [email protected] on 29 Mar 2011 at 9:54

  • Changed state: Accepted
  • Added labels: Priority-High
  • Removed labels: Priority-Medium

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024

Original comment by [email protected] on 31 Mar 2011 at 7:27

  • Changed state: Started

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
I can not reproduce issue you described with sockperf 2.5.25 on following 
system as
- Linux version 2.6.18-164.el5 ([email protected]) (gcc version 
4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Sep 3 03:28:30 EDT 2009
- (GNU libc) 2.5
Steps to reproduce:
- launch: $sockperf sr -f udp_10.txt -F s --threads-num=10
- launch: $sockperf pp -f udp_10.txt -F s
- ^C for server after client completion

I suppose seeing backtrace (thanks for that) fault could relate issue described 
at 
http://sourceware.org/bugzilla/show_bug.cgi?id=4509

Meny,
could you set more detail info about used system including libc version.
In addition,
check latest version of sockperf on your system as long as it should include 
additional validation of TID before pthread_kill() call.


Original comment by [email protected] on 31 Mar 2011 at 1:51

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Meny,
Have you observed issue on different systems? 
Could you please put core dump of the issue case on bgate into /tmp and send 
info about used system and libc.
Thanks

Original comment by [email protected] on 5 Apr 2011 at 6:42

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Igor, I ran it on another O.S. same result.
Try ending server proceess (^c) after client finishes.

Original comment by [email protected] on 5 Apr 2011 at 10:57

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Meny,
I believe I do the same (see comments #3). I have experimented with different 
combinations as 1000records/10threads, 10/10, 1000/100 etc.
It is possible that core dump helps to see root of issue. Send system info you 
tried also (may be the issue is system depended).
Thanks

Original comment by [email protected] on 5 Apr 2011 at 11:49

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Here is the bt, hope it helps.

(gdb) thread 1
[Switching to thread 1 (Thread 32481)]#0  0x00000033af20c670 in pthread_kill () 
from /lib64/libpthread.so.0
(gdb) bt
#0  0x00000033af20c670 in pthread_kill () from /lib64/libpthread.so.0
#1  0x00000000005873bf in server_select_per_thread() ()
#2  0x000000000059a8f1 in main ()
(gdb) thread 2
[Switching to thread 2 (Thread 32482)]#0  0x00000033aeeda093 in select () from 
/lib64/libc.so.6
(gdb) bt
#0  0x00000033aeeda093 in select () from /lib64/libc.so.6
#1  0x000000000058c2e4 in Server<IoSelect, SwitchOff, SwitchOff>::doLoop() ()
#2  0x0000000000593932 in void server_handler<IoSelect, SwitchOff, 
SwitchOff>(int, int, int) ()
#3  0x00000000005878f1 in server_handler_for_multi_threaded(void*) ()
#4  0x00000033af2077e1 in start_thread () from /lib64/libpthread.so.0
#5  0x00000033aeee153d in clone () from /lib64/libc.so.6
(gdb) thread 3
[Switching to thread 3 (Thread 32483)]#0  0x00000033aeeda093 in select () from 
/lib64/libc.so.6
(gdb) bt
#0  0x00000033aeeda093 in select () from /lib64/libc.so.6
#1  0x000000000058c2e4 in Server<IoSelect, SwitchOff, SwitchOff>::doLoop() ()
#2  0x0000000000593932 in void server_handler<IoSelect, SwitchOff, 
SwitchOff>(int, int, int) ()
#3  0x00000000005878f1 in server_handler_for_multi_threaded(void*) ()
#4  0x00000033af2077e1 in start_thread () from /lib64/libpthread.so.0
#5  0x00000033aeee153d in clone () from /lib64/libc.so.6
(gdb) thread 4
[Switching to thread 4 (Thread 32488)]#0  0x00000033aeeda093 in select () from 
/lib64/libc.so.6
(gdb) bt
#0  0x00000033aeeda093 in select () from /lib64/libc.so.6
#1  0x000000000058c2e4 in Server<IoSelect, SwitchOff, SwitchOff>::doLoop() ()
#2  0x0000000000593932 in void server_handler<IoSelect, SwitchOff, 
SwitchOff>(int, int, int) ()
#3  0x00000000005878f1 in server_handler_for_multi_threaded(void*) ()
#4  0x00000033af2077e1 in start_thread () from /lib64/libpthread.so.0
#5  0x00000033aeee153d in clone () from /lib64/libc.so.6

Original comment by [email protected] on 6 Apr 2011 at 8:25

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Checked sockperf r2.5.27, r2.5.43

Fedora14:
Linux fedoravm 2.6.35.6-48.fc14.i686 #1 SMP Fri Oct 22 15:34:36 UTC 2010 i686 
i686 i386 GNU/Linux
(GNU Libc) 2.13

Ubuntu9.04:
Linux ubuntu 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 
GNU/Linux
(GNU libc) 2.9

Original comment by [email protected] on 6 Apr 2011 at 1:09

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Meny,
Thank you for bt you sent but it does not make issue clearer.
Could you send output of 'uname -a' and 'ldd --version' from the hosts you have 
used.

Original comment by [email protected] on 6 Apr 2011 at 1:12

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
*uname -a
Linux ronaldo3 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 
x86_64 x86_64 GNU/Linux

*ldd --version
ldd (GNU libc) 2.11.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.


Original comment by [email protected] on 7 Apr 2011 at 5:30

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Modified thread termination procedure for multi-threads server mode in r46.
Meny,
Could you verify r46 for this issue.

Original comment by [email protected] on 8 Apr 2011 at 1:19

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Checked it. No seg fault.
verified with r46

Original comment by [email protected] on 17 Apr 2011 at 9:16

from sockperf.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
r46

Original comment by [email protected] on 18 Apr 2011 at 7:14

  • Changed state: Fixed

from sockperf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.