JDK-4432433 : javadoc run in build on linux crashes jvm (gnumake all docs)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_7
  • CPU: generic
  • Submitted: 2001-03-30
  • Updated: 2012-10-08
  • Resolved: 2001-04-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other
1.3.1 rc2Fixed 1.4.0Fixed
Related Reports
Relates :  
Relates :  
Description

Name: dm26566			Date: 03/30/2001


If you run 'gnumake all docs' you get the following crash:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x40558117
Function=memcpy+0x27
Library=/lib/libc.so.6

Current Java thread:
        at
com.sun.tools.javac.v8.comp.Enter$MemberEnter.signature(Enter.java:675)
        at com.sun.tools.javac.v8.comp.Enter$MemberEnter._case(Enter.java:766)
        at com.sun.tools.javadoc.JavadocTool$2._case(JavadocTool.java:99)
        at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:465)
        at
com.sun.tools.javac.v8.comp.Enter$MemberEnter.memberEnter(Enter.java:693)
        at
com.sun.tools.javac.v8.comp.Enter$MemberEnter.memberEnter(Enter.java:708)
        at
com.sun.tools.javac.v8.comp.Enter$CompleteEnter.finish(Enter.java:928)
        at
com.sun.tools.javac.v8.comp.Enter$CompleteEnter.complete(Enter.java:915)
        at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
        at com.sun.tools.javac.v8.comp.Enter.main(Enter.java:583)
        at
com.sun.tools.javadoc.JavadocTool.getRootDocImpl(JavadocTool.java:185)
        at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:289)
        at com.sun.tools.javadoc.Start.begin(Start.java:102)
        at com.sun.tools.javadoc.Main.execute(Main.java:35)
        at com.sun.tools.javadoc.Main.main(Main.java:25)

Dynamic libraries:
08048000-08051000 r-xp 00000000 08:05 935641
/usr/local/build/merlin/build/linux-i386/bin/i386/native_threads/javadoc
08051000-08053000 rw-p 00008000 08:05 935641
/usr/local/build/merlin/build/linux-i386/bin/i386/native_threads/javadoc
40000000-40012000 r-xp 00000000 08:05 425986     /lib/ld-2.1.2.so
40012000-40013000 rw-p 00012000 08:05 425986     /lib/ld-2.1.2.so
40013000-40016000 r--p 00000000 08:05 540676
/usr/share/locale/en_US/LC_CTYPE
40016000-40017000 r--p 00000000 08:05 573443
/usr/share/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
40017000-40018000 r--p 00000000 08:05 540677
/usr/share/locale/en_US/LC_MONETARY
40018000-40022000 r-xp 00000000 08:05 426032     /lib/libpthread-0.8.so
40022000-40029000 rw-p 00009000 08:05 426032     /lib/libpthread-0.8.so
4002a000-4031c000 r-xp 00000000 08:05 1869326
/usr/local/build/merlin/build/linux-i386/lib/i386/client/libjvm.so
4031c000-404e2000 rw-p 002f1000 08:05 1869326
/usr/local/build/merlin/build/linux-i386/lib/i386/client/libjvm.so
404f6000-404f8000 r-xp 00000000 08:05 426002     /lib/libdl-2.1.2.so
404f8000-404f9000 rw-p 00001000 08:05 426002     /lib/libdl-2.1.2.so
404f9000-405e4000 r-xp 00000000 08:05 425993     /lib/libc-2.1.2.so
405e4000-405e8000 rw-p 000ea000 08:05 425993     /lib/libc-2.1.2.so
405ec000-405fe000 r-xp 00000000 08:05 426006     /lib/libnsl-2.1.2.so
405fe000-405ff000 rw-p 00011000 08:05 426006     /lib/libnsl-2.1.2.so
40602000-40636000 r-xp 00000000 08:05 262225
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
40636000-40642000 rw-p 00033000 08:05 262225
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
40644000-4065f000 r-xp 00000000 08:05 426004     /lib/libm-2.1.2.so
4065f000-40660000 rw-p 0001a000 08:05 426004     /lib/libm-2.1.2.so
40661000-4066a000 r-xp 00000000 08:05 1230338
/usr/local/build/merlin/build/linux-i386/lib/i386/native_threads/libhpi.so
4066a000-4066b000 rw-p 00008000 08:05 1230338
/usr/local/build/merlin/build/linux-i386/lib/i386/native_threads/libhpi.so
4066b000-40680000 r-xp 00000000 08:05 869995
/usr/local/build/merlin/build/linux-i386/lib/i386/libverify.so
40680000-40683000 rw-p 00014000 08:05 869995
/usr/local/build/merlin/build/linux-i386/lib/i386/libverify.so
40683000-406a9000 r-xp 00000000 08:05 869999
/usr/local/build/merlin/build/linux-i386/lib/i386/libjava.so
406a9000-406ac000 rw-p 00025000 08:05 869999
/usr/local/build/merlin/build/linux-i386/lib/i386/libjava.so
406ad000-406c1000 r-xp 00000000 08:05 870003
/usr/local/build/merlin/build/linux-i386/lib/i386/libzip.so
406c1000-406c4000 rw-p 00013000 08:05 870003
/usr/local/build/merlin/build/linux-i386/lib/i386/libzip.so
406c4000-40977000 r--s 00000000 08:05 1230772
/usr/local/build/merlin/build/linux-i386/lib/i18n.jar
40977000-4098c000 r--s 00000000 08:05 1230339
/usr/local/build/merlin/build/linux-i386/lib/sunrsasign.jar
4098c000-40a06000 r--s 00000000 08:05 1230341
/usr/local/build/merlin/build/linux-i386/lib/jsse.jar
40a06000-40a18000 r--s 00000000 08:05 1230340
/usr/local/build/merlin/build/linux-i386/lib/jce.jar
4ff93000-4ff9b000 r--p 00000000 08:05 540675
/usr/share/locale/en_US/LC_COLLATE
4ff9b000-4ff9c000 r--p 00000000 08:05 540679     /usr/share/locale/en_US/LC_TIME
4ff9c000-4ff9d000 r--p 00000000 08:05 540678
/usr/share/locale/en_US/LC_NUMERIC
4ff9d000-4ff9f000 r--s 00000000 08:05 870013
/usr/local/build/merlin/build/linux-i386/lib/ext/dnsns.jar
4ffa2000-4ffaa000 r-xp 00000000 08:05 426024     /lib/libnss_files-2.1.2.so
4ffaa000-4ffab000 rw-p 00007000 08:05 426024     /lib/libnss_files-2.1.2.so
4ffd6000-4fff4000 r--s 00000000 08:05 869987
/usr/local/build/merlin/build/linux-i386/lib/ext/sunjce_provider.jar
4fff4000-50001000 r--s 00000000 08:05 870037
/usr/local/build/merlin/build/linux-i386/lib/ext/ldapsec.jar
50001000-50005000 r-xp 00000000 08:05 870009
/usr/local/build/merlin/build/linux-i386/lib/i386/libnio.so
50005000-50006000 rw-p 00003000 08:05 870009
/usr/local/build/merlin/build/linux-i386/lib/i386/libnio.so
50006000-50016000 r-xp 00000000 08:05 870005
/usr/local/build/merlin/build/linux-i386/lib/i386/libnet.so
50016000-50017000 rw-p 0000f000 08:05 870005
/usr/local/build/merlin/build/linux-i386/lib/i386/libnet.so

Local Time = Fri Mar 30 08:20:15 2001
Elapsed Time = 414
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta-b58 mixed mode)
#

======================================================================

Name: agR10195			Date: 03/25/2002



Alexey Gibadullin, ###@###.###

THe testcase has been added to testbase_nsk, to execute it 
regularly by the SQE team. The test will be shipped with 
"r13" release of testbase_nsk; and the test name will be:

    nsk/regression/b4432433

Testbase_nsk is located at

    /net/sqesvr.sfbay/export/vsn/VM/testbase/testbase_nsk



======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: ladybird-rc2 FIXED IN: ladybird-rc2 merlin-beta merlin-beta2 INTEGRATED IN: ladybird-rc2 merlin-beta merlin-beta2
14-06-2004

EVALUATION This crash happens only on linux, with both -client and -server. It works on solaris, unknown if windows works or not. Reliably reproduceable. some subsets of the command (removing half of the packages, beginning at javax.swing) does work. This happens in the current master (after TL integration on 3/29/01). Javadoc and javac are 100% java code - no Native code. dale.mcduffie@Eng 2001-03-30 ============================================= The system has run out of memory (physical + swap) and crashed in GC. The root cause for this crash is a bug in os_linux.cpp that incorrectly interprets the return value of mmap(). mmap() would return MAP_FAILED (-1) upon failures, whereas the code assumes it would return NULL. The result is that VM incorrectly believes it has the memory reserved and chooses not to throw OutOfMemoryException, it then dies later on when writing to the memory. hui.huang@Eng 2001-04-11 ------------------------------------ The mmap() return value bug is fixed in ladybird RC2 (b23). But because Linux does not reserve physical pages for mmap(), we could still get SEGV if system has run out of swap space. We should document this. hui.huang@Eng 2001-04-20 Name: elR10090 Date: 03/26/2002 Eugene I. Latkin <###@###.###> Unfortunately, this (or very similar) bug seems still reproducible. Here is the typical failure log of the new test "b4432433.java" which is targeted against regressions of this bug: [latkin@java9 b4432433]$ sh doit.sh /export/ld24/java/hotspot/jdk1.4.1/linux /export/ld24/java/hotspot/jdk1.4.1/linux/bin/javac b4432433.java /export/ld24/java/hotspot/jdk1.4.1/linux/bin/java -version java version "1.4.1-beta" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b06) Java HotSpot(TM) Client VM (build 1.4.1-beta-b06, mixed mode) /export/ld24/java/hotspot/jdk1.4.1/linux/bin/java -Xmx1024m b4432433 1024 -verbose 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647Exception java.lang.OutOfMemoryError: requested 1048592 bytes Exit status: 1 This must mean, that: VM CRASHED? Here, "java9" is 2xCPU Pentium-II machine having 512Mb of RAM installed, and running under Linux RedHat 6.2 The test just tries to allocate 1Mb-arrays of byte[] and prints number of successfully allocated arrays to indicate a progress. In this log, here is displayed an OutOfMemoryError thrown while trying to allocate 648th portion of memory. The VM problem looks like that exception was not caught. Indeed, such a problem looks different from the VM crash; but it must imply the same impact against Javadoc. That problem is observed against J2SE 1.3, 1.3.1, 1.4, and 1.4.1 (Hopper-b06 was tested); while J2SE 1.2.2 passes the test, e.g.: [latkin@java9 b4432433]$ sh doit.sh /export/ld24/java/hotspot/jdk1.2.2/linux /export/ld24/java/hotspot/jdk1.2.2/linux/bin/javac b4432433.java /export/ld24/java/hotspot/jdk1.2.2/linux/bin/java -version java version "1.2.2" Classic VM (build 1.2.2-L, green threads, nojit) /export/ld24/java/hotspot/jdk1.2.2/linux/bin/java -Xmx1024m b4432433 1024 -verbose 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 java.lang.OutOfMemoryError: TEST PASSED Exit status: 95 This must mean, that: TEST PASSED The test "b4432433.java" will appear with testbase_nsk release "r13", which will soon appear under the directory: /net/sqesvr.sfbay/export/vsn/VM/testbase Also, you may want to see the GammaBase directory, where I've put the test sources along with "doit.sh" script: cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/4432433 sh doit.sh $JAVA_HOME ======================================================================
11-06-2004