[EMAIL PROTECTED] apache start segmentation fault: EMLINK (Too many links)

2006-12-14 Thread alex handle

Hi!

Yesterday i migrated an old webserver (Apache 1.3.34, FreeBSD 5.2.1) to
Apache 2.2.3 and FreeBSD 6.1.

The configuration consists of 776 vhost.
After importing the vhosts.conf file i did a apachectl configtest and it
showed no errors.
But with apachectl start i get an segmentation fault.

Segmentation fault (core dumped)

Unfortunately there is no output in the error log.
So i did a strace -f httpd and it shows this output:

-
...
...
open(/var/log/httpd/x.at.access_log, O_WRONLY|O_APPEND|O_CREAT, 0666) =
1492
open(/var/log/httpd/y.at.access_log, O_WRONLY|O_APPEND|O_CREAT, 0666) =
1493
open(/var/log/httpd/z.at.ccess_log, O_WRONLY|O_APPEND|O_CREAT, 0666) =
1494
break(0x87f)= 0
getpid()= 88093 (ppid 88092)
break(0x87f2000)= 0
break(0x87f4000)= 0
break(0x87f5000)= 0
gettimeofday({0, 0}, NULL)  = 0
getpid()= 88093 (ppid 88092)
open(/dev/urandom, O_RDONLY|O_NONBLOCK|O_NOCTTY|O_NOFOLLOW) = -1 EMLINK
(Too many links)
open(/dev/random, O_RDONLY|O_NONBLOCK|O_NOCTTY|O_NOFOLLOW) = 1495
select(1496, [0 3 4 6 8 9 10 11 13 14 16 18 20 21 22 29 33 34 35 37 38 40 42
45 46 48 50 53 54 58 61 62 69 74 76 77 78 80 81 82 83 85 86 93 97 100 101
102 104 106 109 110 112 117 118 122 125 126 133 138 140 141 142 147 149 150
152 154 157 158 165 168 169 170 171 174 180 181 182 184 186 189 190 193 194
195 197 198 200 201 204 206 208 209 212 214 218 219 222 229 233 234 238 240
246 248 252 254 258 259 261 269 275 277 278 282 284 285 286 290 292 293 294
300 301 302 305 307 308 309 312 313 314 315 317 320 321 322 323 325 328 329
330 332 333 334 336 337 338 340 341 342 344 345 346 348 349 350 353 354 355
357 360 361 362 363 365 366 372 373 374 376 378 381 382 385 386 387 389 390
392 393 396 397 398 400 401 404 405 406 410 411 413 414 417 418 419 421 424
425 426 427 429 430 433 436 437 438 440 441 442 445 446 448 449 450 451 453
456 457 460 461 462 464 466 468 469 470 476 477 478 484 485 486 488 489 490
491 493 494 497 500 501 502 506 508 509 510 512 513 514 515 517 521 522 525
526 528 533 534 536 540 541 542 545 546 547 549 555 557 558 562 564 565 566
568 570 571 573 574 578 579 581 582 633 638 641 642 643 645 649 650 651 653
657 658 659 661 665 666 667 669 673 674 675 677 681 682 683 685 689 690 691
693 697 698 699 701 705 706 707 709 713 714 715 717 721 722 723 725 729 730
731 733 737 738 739 741 745 746 747 749 753 754 755 757 761 762 763 765 769
770 771 773 777 778 779 781 785 786 787 789 793 794 795 797 832 864 865 866
867 869 872 874 876 877 878 880 881 884 885 886 889 892 893 894 896 897 898
899 901 904 905 908 909 910 913 916 917 918 920 921 925 926 928 929 930 931
933 936 937 940 941 942 944 946 949 950 952 953 957 958 960 962 964 965 966
969 972 973 974 976 978 981 982 984 985 986 987 989 994 995 997 998 1000
1003 1005 1006 1009 1013 1014 1016 1017 1018 1019 1021 1028 1029 1030 1031
1033 1037 1039 1042 1044 1051 1053 1057 1058 1063 1065 1066 1067 1068 1070
1072 1074 1083 1090 1092 1095 1096 1097 1098 1099 1100 1102 1103 1104 1105
1106 1107 1108 1109  1112 1113 1114 1115 1116 1117 1119 1133 1136 1137
1138 1147 1165 1168 1169 1170 1179 1184 1219 1220 1221 1223 1224 1225 1226
1227 1228 1230 1231 1232 1233 1234 1235 1236 1237 1239 1240 1241 1242 1243
1244 1245 1247 1248 1251 1252 1253 1258 1262 1263 1266 1275 1293 1296 1297
1298 1307 1313 1315 1318 1319 1322 1324 1326 1328 1330 1339 1347 1348 1349
1351 1352 1353 1354 1355 1356 1358 1359 1360 1361 1362 1363 1364 1365 1367
1368 1369 1370 1371 1372 1373 1375 1376 1378 1381 1382 1384 1390 1391 1394
1403 1408 1443 1444 1445 1447 1451 1453 1454 1455 1456 1457 1458 1459 1460
1461 1463 1464 1465 1466 1467 1468 1469 1471 1472 1482 1489 1490], NULL,
NULL, {1667393900, 1953528178}) = 153 (in [0 1 2 3 5 6 8 9 10 11 13 17 18 19
21 25 26 27 29 32 33 34 35 37 41 42 43 45 49 50 51 53 56 57 58 59 61 65 66
67 69 73 74 75 77 80 81 82 83 85 88 89 93 94 97 100 101 102 104 107 108 109
110 116 117 118 122 124 125 126 128 129 130 131 133 134 136 137 138 139 141
144 145 146 147 149 150 156 157 158 160 162 165 166 169 170 171 173 174 176
177 180 181 182 184 185 188 189 190 194 195 197 198 200 201 202 203 205 208
209 213 214 217 220 221 222 224 227 228 229 230 236 237 238 242 244 245 246
248 249 250 251 253 254 256 257 258 259 261 268 269 270 272 274 277 278 280
282 283 285 286 288 289 290 291 293 300 301 302 304 306 309 310 312 314 315
317 318 320 321 322 323 324 326 328 329 330 331 333 334 338 340 341 342 347
349 350 353 354 355 357 360 361 365 366 388 390 392 394 398 400 402 403 406
413 420 421 422 424 429 430 433 436 437 438 442 444 445 446 453 456 457 458
459 461 462 465 466 469 470 477 480 481 482 483 486 492 493 494 496 498 501
502 505 506 507 509 510 512 513 516 518 520 521 524 526 530 531 534 541])
read(1495, least %d chars\n\0/usr/src/secure/, 32) = 32
close(1495) = 0
getuid()   

RE: [EMAIL PROTECTED] apache start segmentation fault: EMLINK (Too many links)

2006-12-14 Thread Boyle Owen
 -Original Message-
 From: alex handle [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, December 14, 2006 11:37 AM
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] apache start segmentation fault: 
 EMLINK (Too many links)
 
 Hi!
 
 Yesterday i migrated an old webserver (Apache 1.3.34, FreeBSD 
 5.2.1) to
 Apache 2.2.3 and FreeBSD 6.1.
 
 The configuration consists of 776 vhost.
 After importing the vhosts.conf file i did a apachectl 
 configtest and it showed no errors. 
 But with apachectl start i get an segmentation fault.

Did you recompile all the modules you are using against the new apache? 

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


 
 Segmentation fault (core dumped)
 
 Unfortunately there is no output in the error log.
 So i did a strace -f httpd and it shows this output: 
 
 -
 ...
 ...
 open(/var/log/httpd/x.at.access_log, 
 O_WRONLY|O_APPEND|O_CREAT, 0666) = 1492
 open(/var/log/httpd/y.at.access_log, 
 O_WRONLY|O_APPEND|O_CREAT, 0666) = 1493
 open(/var/log/httpd/z.at.ccess_log, 
 O_WRONLY|O_APPEND|O_CREAT, 0666) = 1494 
 break(0x87f)= 0
 getpid()= 88093 (ppid 88092)
 break(0x87f2000)= 0
 break(0x87f4000)= 0
 break(0x87f5000)= 0 
 gettimeofday({0, 0}, NULL)  = 0
 getpid()= 88093 (ppid 88092)
 open(/dev/urandom, O_RDONLY|O_NONBLOCK|O_NOCTTY|O_NOFOLLOW) 
 = -1 EMLINK (Too many links)
 open(/dev/random, O_RDONLY|O_NONBLOCK|O_NOCTTY|O_NOFOLLOW) = 1495 
 select(1496, [0 3 4 6 8 9 10 11 13 14 16 18 20 21 22 29 33 34 
 35 37 38 40 42 45 46 48 50 53 54 58 61 62 69 74 76 77 78 80 
 81 82 83 85 86 93 97 100 101 102 104 106 109 110 112 117 118 
 122 125 126 133 138 140 141 142 147 149 150 152 154 157 158 
 165 168 169 170 171 174 180 181 182 184 186 189 190 193 194 
 195 197 198 200 201 204 206 208 209 212 214 218 219 222 229 
 233 234 238 240 246 248 252 254 258 259 261 269 275 277 278 
 282 284 285 286 290 292 293 294 300 301 302 305 307 308 309 
 312 313 314 315 317 320 321 322 323 325 328 329 330 332 333 
 334 336 337 338 340 341 342 344 345 346 348 349 350 353 354 
 355 357 360 361 362 363 365 366 372 373 374 376 378 381 382 
 385 386 387 389 390 392 393 396 397 398 400 401 404 405 406 
 410 411 413 414 417 418 419 421 424 425 426 427 429 430 433 
 436 437 438 440 441 442 445 446 448 449 450 451 453 456 457 
 460 461 462 464 466 468 469 470 476 477 478 484 485 486 488 
 489 490 491 493 494 497 500 501 502 506 508 509 510 512 513 
 514 515 517 521 522 525 526 528 533 534 536 540 541 542 545 
 546 547 549 555 557 558 562 564 565 566 568 570 571 573 574 
 578 579 581 582 633 638 641 642 643 645 649 650 651 653 657 
 658 659 661 665 666 667 669 673 674 675 677 681 682 683 685 
 689 690 691 693 697 698 699 701 705 706 707 709 713 714 715 
 717 721 722 723 725 729 730 731 733 737 738 739 741 745 746 
 747 749 753 754 755 757 761 762 763 765 769 770 771 773 777 
 778 779 781 785 786 787 789 793 794 795 797 832 864 865 866 
 867 869 872 874 876 877 878 880 881 884 885 886 889 892 893 
 894 896 897 898 899 901 904 905 908 909 910 913 916 917 918 
 920 921 925 926 928 929 930 931 933 936 937 940 941 942 944 
 946 949 950 952 953 957 958 960 962 964 965 966 969 972 973 
 974 976 978 981 982 984 985 986 987 989 994 995 997 998 1000 
 1003 1005 1006 1009 1013 1014 1016 1017 1018 1019 1021 1028 
 1029 1030 1031 1033 1037 1039 1042 1044 1051 1053 1057 1058 
 1063 1065 1066 1067 1068 1070 1072 1074 1083 1090 1092 1095 
 1096 1097 1098 1099 1100 1102 1103 1104 1105 1106 1107 1108 
 1109  1112 1113 1114 1115 1116 1117 1119 1133 1136 1137 
 1138 1147 1165 1168 1169 1170 1179 1184 1219 1220 1221 1223 
 1224 1225 1226 1227 1228 1230 1231 1232 1233 1234 1235 1236 
 1237 1239 1240 1241 1242 1243 1244 1245 1247 1248 1251 1252 
 1253 1258 1262 1263 1266 1275 1293 1296 1297 1298 1307 1313 
 1315 1318 1319 1322 1324 1326 1328 1330 1339 1347 1348 1349 
 1351 1352 1353 1354 1355 1356 1358 1359 1360 1361 1362 1363 
 1364 1365 1367 1368 1369 1370 1371 1372 1373 1375 1376 1378 
 1381 1382 1384 1390 1391 1394 1403 1408 1443 1444 1445 1447 
 1451 1453 1454 1455 1456 1457 1458 1459 1460 1461 1463 1464 
 1465 1466 1467 1468 1469 1471 1472 1482 1489 1490], NULL, 
 NULL, {1667393900, 1953528178}) = 153 (in [0 1 2 3 5 6 8 9 10 
 11 13 17 18 19 21 25 26 27 29 32 33 34 35 37 41 42 43 45 49 
 50 51 53 56 57 58 59 61 65 66 67 69 73 74 75 77 80 81 82 83 
 85 88 89 93 94 97 100 101 102 104 107 108 109 110 116 117 118 
 122 124 125 126 128 129 130 131 133 134 136 137 138 139 141 
 144 145 146 147 149 150 156 157 158 160 162 165 166 169 170 
 171 173 174 176 177 180 181 182 184 185 188 189 190 194 195 
 197 198 200 201 202 203 205 208 209 213 214 217 220 221 222 
 224 227 228 229 230 236 237 238 242 244 245 246 248 249 250 
 251 253 254 256 257 258 259 261 268 269 270 272 274 277 278 
 280 282 283 285 286 288

Re: [EMAIL PROTECTED] apache start segmentation fault: EMLINK (Too many links)

2006-12-14 Thread alex handle

On 12/14/06, Boyle Owen [EMAIL PROTECTED] wrote:


 -Original Message-
 From: alex handle [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 14, 2006 11:37 AM
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] apache start segmentation fault:
 EMLINK (Too many links)

 Hi!

 Yesterday i migrated an old webserver (Apache 1.3.34, FreeBSD
 5.2.1) to
 Apache 2.2.3 and FreeBSD 6.1.

 The configuration consists of 776 vhost.
 After importing the vhosts.conf file i did a apachectl
 configtest and it showed no errors.
 But with apachectl start i get an segmentation fault.

Did you recompile all the modules you are using against the new apache?

Rgds,
Owen Boyle





Yes this is a new install out of the freebsd ports.


Re: [EMAIL PROTECTED] apache start segmentation fault: EMLINK (Too many links)

2006-12-14 Thread Joe Orton
On Thu, Dec 14, 2006 at 11:36:35AM +0100, alex handle wrote:
 Hi!
 
 Yesterday i migrated an old webserver (Apache 1.3.34, FreeBSD 5.2.1) to
 Apache 2.2.3 and FreeBSD 6.1.
 
 The configuration consists of 776 vhost.
 After importing the vhosts.conf file i did a apachectl configtest and it
 showed no errors.
 But with apachectl start i get an segmentation fault.

 open(/dev/random, O_RDONLY|O_NONBLOCK|O_NOCTTY|O_NOFOLLOW) = 1495
 select(1496, [0 3 4 6 8 9 10 11 13 14 16 18 20 21 22 29 33 34 35 37 38 40 42

Did you have mod_ssl loaded in the previous configuration? 

Versions of OpenSSL older than 0.9.8c can crash when reading from the 
random device on some platforms when the fd number returned by open has 
been pushed above the FD_SETSIZE setting.  If that's really the cause 
then there are a number of possible choices:

1) disable mod_ssl
2) recompile OpenSSL with -DFD_SETSIZE=4096 if the platform allows this
3) upgrade to a newer OpenSSL

joe

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] apache start segmentation fault: EMLINK (Too many links)

2006-12-14 Thread alex handle

On 12/14/06, Joe Orton [EMAIL PROTECTED] wrote:


On Thu, Dec 14, 2006 at 11:36:35AM +0100, alex handle wrote:
 Hi!

 Yesterday i migrated an old webserver (Apache 1.3.34, FreeBSD 5.2.1) to
 Apache 2.2.3 and FreeBSD 6.1.

 The configuration consists of 776 vhost.
 After importing the vhosts.conf file i did a apachectl configtest and
it
 showed no errors.
 But with apachectl start i get an segmentation fault.

 open(/dev/random, O_RDONLY|O_NONBLOCK|O_NOCTTY|O_NOFOLLOW) = 1495
 select(1496, [0 3 4 6 8 9 10 11 13 14 16 18 20 21 22 29 33 34 35 37 38
40 42

Did you have mod_ssl loaded in the previous configuration?

Versions of OpenSSL older than 0.9.8c can crash when reading from the
random device on some platforms when the fd number returned by open has
been pushed above the FD_SETSIZE setting.  If that's really the cause
then there are a number of possible choices:

1) disable mod_ssl
2) recompile OpenSSL with -DFD_SETSIZE=4096 if the platform allows this
3) upgrade to a newer OpenSSL

joe



you made my day!
I disabled mod_ssl and apache starts without a segfault.

Thx!

Alex