wyoojune / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

NetworkSourceLineResolverServer.SystemTest unit test fails/crashes on Mac OS X. #423

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure; make followed by make check or 
src/processor/network_source_line_resolver_server_unittest

What is the expected output? What do you see instead?
Expected unit tests to pass without problems. Instead the 
NetworkSourceLineResolverServer.SystemTest crashes with a floating point 
exception. Output is this:

[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from NetworkSourceLineResolverServer
[ RUN      ] NetworkSourceLineResolverServer.SystemTest
2011-03-22 13:45:01: udp_network.cc:110: INFO: Listening on address 127.0.0.1
2011-03-22 13:45:01: udp_network.cc:127: INFO: Listening on port 50351
2011-03-22 13:45:01: udp_network.cc:79: INFO: Initializing network connection 
to localhost:50351
Floating point exception

This appears to be coming from network_source_line_resolver_server_unittest.cc 
line 136
ASSERT_EQ(processor.Process(...

What version of the product are you using? On what operating system?
Trunk revision 782 on Mac OS X 10.6.6 using gcc 4.2.1.

When building for Mac OS X 10.4 using the following script:
#!/bin/bash

export CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 
-mmacosx-version-min=10.4"
export CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 
-mmacosx-version-min=10.4"
export LDFLAGS="-arch i386 -mmacosx-version-min=10.4"

./configure --host=i386-apple-darwin10.4.0
make clean 
make
make check

the same unit test fails with the following output:

[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from NetworkSourceLineResolverServer
[ RUN      ] NetworkSourceLineResolverServer.SystemTest
2011-03-22 14:28:03: udp_network.cc:110: INFO: Listening on address 127.0.0.1
2011-03-22 14:28:03: udp_network.cc:127: INFO: Listening on port 57644
2011-03-22 14:28:03: udp_network.cc:79: INFO: Initializing network connection 
to localhost:57644
2011-03-22 14:28:03: minidump_processor.cc:264: INFO: Processing minidump in 
file ./src/processor/testdata/minidump2.dmp
2011-03-22 14:28:03: minidump.cc:3759: INFO: Minidump opened minidump 
./src/processor/testdata/minidump2.dmp
2011-03-22 14:28:03: minidump.cc:3804: INFO: Minidump not byte-swapping minidump
2011-03-22 14:28:03: minidump.cc:4170: INFO: GetStream: type 1197932546 not 
present
2011-03-22 14:28:03: minidump.cc:1946: INFO: MinidumpModule could not determine 
version for c:\test_app.exe
2011-03-22 14:28:03: minidump_processor.cc:116: INFO: Minidump 
./src/processor/testdata/minidump2.dmp has CPU info, OS info, Breakpad info, 
exception, module list, thread list, dump thread, and requesting thread
2011-03-22 14:28:03: minidump_processor.cc:150: INFO: Looking at thread 
./src/processor/testdata/minidump2.dmp:0/2 id 0xbf4
2011-03-22 14:28:03: network_source_line_resolver.cc:362: INFO: Sending 72 bytes
2011-03-22 14:28:08: network_source_line_resolver.cc:362: INFO: Sending 72 bytes
2011-03-22 14:28:13: network_source_line_resolver.cc:362: INFO: Sending 72 bytes
2011-03-22 14:28:18: network_source_line_resolver.cc:362: INFO: Sending 72 bytes
2011-03-22 14:28:23: network_source_line_resolver.cc:362: INFO: Sending 86 bytes
2011-03-22 14:28:28: network_source_line_resolver.cc:362: INFO: Sending 86 bytes
2011-03-22 14:28:33: minidump_processor.cc:150: INFO: Looking at thread 
./src/processor/testdata/minidump2.dmp:1/2 id 0x11c0
2011-03-22 14:28:33: minidump_processor.cc:258: INFO: Processed 
./src/processor/testdata/minidump2.dmp
2011-03-22 14:28:33: minidump.cc:3731: INFO: Minidump closing minidump
src/processor/network_source_line_resolver_server_unittest.cc:157: Failure
Value of: "`anonymous namespace'::CrashFunction"
Expected: stack->frames()->at(0)->function_name
Which is: ""
[  FAILED  ] NetworkSourceLineResolverServer.SystemTest (30007 ms)
[----------] 1 test from NetworkSourceLineResolverServer (30007 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (30007 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] NetworkSourceLineResolverServer.SystemTest

 1 FAILED TEST
FAIL: src/processor/network_source_line_resolver_server_unittest

Original issue reported on code.google.com by villinte...@gmail.com on 22 Mar 2011 at 1:36

GoogleCodeExporter commented 9 years ago
I am seeing the same issue when I try to run unittest on my Linux 
machine.==========] Running 1 test from 1 test case.

[----------] Global test environment set-up.
[----------] 1 test from NetworkSourceLineResolverServer
[ RUN      ] NetworkSourceLineResolverServer.SystemTest
src/processor/network_source_line_resolver_server_unittest.cc:157: Failure
Value of: "`anonymous namespace'::CrashFunction"
Expected: stack->frames()->at(0)->function_name
Which is: ""
[  FAILED  ] NetworkSourceLineResolverServer.SystemTest (30031 ms)
[----------] 1 test from NetworkSourceLineResolverServer (30031 ms total)

Original comment by jessicag...@gmail.com on 31 May 2011 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by jessicag...@gmail.com on 31 May 2011 at 8:47