ngnix and Linux on UltrasparcII

Igor Sysoev is at rambler-co.ru
Mon Nov 21 16:25:12 MSK 2005


On Mon, 21 Nov 2005, Andrey Chernomyrdin wrote:

> Ок, собрался, вот только проблемы с запуском:
> # ./nginx.debug
> Bus error (core dumped)
>
> # gdb -c core ./nginx.debug
> GNU gdb 6.3-debian
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "sparc-linux"...Using host libthread_db library 
> "/lib/libthread_db.so.1".
>
> Core was generated by `/usr/sbin/nginx.debug'.
> Program terminated with signal 10, Bus error.
> Reading symbols from /lib/libcrypt.so.1...done.
> Loaded symbols for /lib/libcrypt.so.1
> Reading symbols from /usr/lib/libpcre.so.3...done.
> Loaded symbols for /usr/lib/libpcre.so.3
> Reading symbols from /usr/lib/libz.so.1...done.
> Loaded symbols for /usr/lib/libz.so.1
> Reading symbols from /lib/libc.so.6...done.
> Loaded symbols for /lib/libc.so.6
> Reading symbols from /lib/ld-linux.so.2...done.
> Loaded symbols for /lib/ld-linux.so.2
> #0  ngx_conf_parse (cf=0xefd8b99c, filename=0x76d1c) at 
> src/core/ngx_conf_file.c:105
> 105            cf->conf_file->file.offset = 0;
>
> # _
>
> Так что вопрос остался.

Нужно приложить патчик:
----------------------
--- src/core/ngx_config.h       Mon Nov 21 15:21:00 2005
+++ src/core/ngx_config.h       Mon Nov 21 16:21:59 2005
@@ -98,7 +98,7 @@
  #define NGX_ALIGN       (_MAX_ALIGNMENT - 1)
  #else
  /* TODO: auto_conf */
-#define NGX_ALIGN       (sizeof(unsigned long) - 1)  /* platform word */
+#define NGX_ALIGN       8
  #endif

  #define ngx_align(p)    (u_char *) (((uintptr_t) p + NGX_ALIGN) & ~NGX_ALIGN)
----------------------

Этот патч не для общего исопльзования, а только конкретно для данной
сборки под Linux/sparc в 32-битном режиме.


Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list