Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Taadt-0006QI-13 for pgsql-bugs@postgresql.org; Mon, 19 Nov 2012 23:20:41 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Taadr-0000wk-8J for pgsql-bugs@postgresql.org; Mon, 19 Nov 2012 23:20:40 +0000 Received: by mail-pb0-f46.google.com with SMTP id wy7so3810263pbc.19 for ; Mon, 19 Nov 2012 15:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version:x-mailer; bh=4bGiZGcjBLdCAIBiZPAv9m2qwjmZE2t3+tFq4sE6WyE=; b=PAsy8z/Cs0nI3QX5KfxwtB0lYwONnBdffvFu76D2S8jub0OgmQFcoAEMvEHPcOthnx ft+6nIbsqrC1RqUMXGutEbbHpT616st9ZsmDw7VRVF8Z/rZJtm0hzO8IdXmezc/0IdJa C8wTspnZw/MhUgtMctVi2ew960Q1or11JB+46sa2R2St1xKE8RyU7uCJTKZ8dr7aLPqh jSQU0vlwymr3BHb/GJyWpR8kEuAoKBOLRrY2zrkXb8x5DITiFuNx3BDqm9XEvxRfDvOj Uv041YaZYHfwFTinisw4Macwm7Udqg3uA4M61ZKhknzzcBNNFhiobTF8RSRPMmyZ1QKw UroA== Received: by 10.68.241.232 with SMTP id wl8mr37322184pbc.144.1353367238179; Mon, 19 Nov 2012 15:20:38 -0800 (PST) Received: from [10.1.10.12] (173-160-209-130-Washington.hfc.comcastbusiness.net. [173.160.209.130]) by mx.google.com with ESMTPS id s1sm6906294paz.0.2012.11.19.15.20.36 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 15:20:37 -0800 (PST) From: Yunong Xiao Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: postgresql 9.2.1 dumps core on SmartOS(solaris) when the OS is rebooted Message-Id: <4AC87F6D-DAC0-4C92-927B-96C2E8A098E4@gmail.com> Date: Mon, 19 Nov 2012 15:20:35 -0800 To: pgsql-bugs@postgresql.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201211/148 X-Sequence-Number: 34706 I've got postgres 9.2.1 32bit running in production on SmartOS(solaris) = with synchronous remote-write replication enabled. At some point, both = of the boxes were rebooted. Upon reboot, one of the postgres instances = dumps core with the following stack trace: Loading modules: [ libc.so.1 ld.so.1 ] > $C 080479b8 libc.so.1`_lwp_kill+0x15(1, 6, a9, fef31000, fef31000, 16) 080479d8 libc.so.1`raise+0x2b(6, 0, 80479f0, fef31000, 0, 0) 08047a28 libc.so.1`abort+0x10e(856c760, 2f, 8047a78, 810034d, 0, = 84c4354) 08047a78 errfinish+0x1f7(0, 84c4354, 18a1, 83c789a, 0, fefca664) 08047bb8 StartupXLOG+0x2614(3, 856cbd4, 0, 8047c68, 8047c92, 8047c68) 08047bd8 StartupProcessMain+0x145(8126350, 0, 84c35c0, 84c35c0, 0, 2) 08047c38 AuxiliaryProcessMain+0x447(2, 8047c68, 84cd0ff, 2, 800000, 0) 08047cb8 StartChildProcess+0xec(853e828, 0, 0, 856eec8, 853e720, 40) 08047d28 PostmasterMain+0x7ce(3, 856de98, 0, 8516d50, 0, fefc36e0) 08047d68 main+0x412(3, 8047d8c, 8047d9c, 83c4ec0, 0, 0) 08047d80 _start+0x83(3, 8047e44, 8047fdb, 8047fdb, 0, 8047e70) Here's the more detailed platform information: [root@4bfe0103 (postgres) ~]$ uname -a SunOS 4bfe0103-2a9c-42c7-bc51-b33f1a8f5589 5.11 joyent_20121119T091433Z = i86pc i386 i86pc Solaris If you are interested, I have uploaded the actual core file here: = https://download.joyent.com/pub/postgres/core Here's the config for the primary postgres instance: listen_addresses =3D '0.0.0.0' # what IP address(es) to listen on; port =3D 5432 # (change requires restart) max_connections =3D 100 # (change requires restart) shared_buffers =3D 32MB # min 128kB wal_level =3D hot_standby # minimal, archive, or hot_standby fsync =3D on # turns forced synchronization on or off synchronous_commit =3D remote_write max_wal_senders =3D 15 # max number of walsender processes wal_keep_segments =3D 1000 # in logfile segments, 16MB each; 0 = disables synchronous_standby_names =3D 'tcp://postgres@10.99.99.52:5432/postgres' hot_standby =3D on # "on" allows queries during recovery max_standby_archive_delay =3D 30s # max delay before canceling queries max_standby_streaming_delay =3D 30s # max delay before canceling = queries wal_receiver_status_interval =3D 10s # send replies at least this often hot_standby_feedback =3D off # send info from standby to prevent log_destination =3D 'stderr' # Valid values are combinations of logging_collector =3D on # Enable capturing of stderr and csvlog log_directory =3D '/var/pg/' # directory where log files are = written, log_filename =3D 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name = pattern, log_file_mode =3D 0600 # creation mode for log files, log_truncate_on_rotation =3D on # If on, an existing log file with the log_rotation_age =3D 1h # Automatic rotation of logfiles will log_rotation_size =3D 10MB # Automatic rotation of logfiles will log_min_messages =3D debug5 # values in order of decreasing detail: log_line_prefix =3D '%m' # special values: log_timezone =3D 'UTC' datestyle =3D 'iso, mdy' timezone =3D 'UTC' lc_messages =3D 'C' # locale for system error message lc_monetary =3D 'C' # locale for monetary formatting lc_numeric =3D 'C' # locale for number formatting lc_time =3D 'C' # locale for time formatting default_text_search_config =3D 'pg_catalog.english' Here's the config for the standby: listen_addresses =3D '0.0.0.0' # what IP address(es) to listen on; port =3D 5432 # (change requires restart) max_connections =3D 100 # (change requires restart) shared_buffers =3D 32MB # min 128kB wal_level =3D hot_standby # minimal, archive, or hot_standby fsync =3D on # turns forced synchronization on or off synchronous_commit =3D off max_wal_senders =3D 15 # max number of walsender processes wal_keep_segments =3D 1000 # in logfile segments, 16MB each; 0 = disables synchronous_standby_names =3D '' # standby servers that provide sync rep hot_standby =3D on # "on" allows queries during recovery max_standby_archive_delay =3D 30s # max delay before canceling queries max_standby_streaming_delay =3D 30s # max delay before canceling = queries wal_receiver_status_interval =3D 10s # send replies at least this often hot_standby_feedback =3D off # send info from standby to prevent log_destination =3D 'stderr' # Valid values are combinations of logging_collector =3D on # Enable capturing of stderr and csvlog log_directory =3D '/var/pg/' # directory where log files are = written, log_filename =3D 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name = pattern, log_file_mode =3D 0600 # creation mode for log files, log_truncate_on_rotation =3D on # If on, an existing log file with the log_rotation_age =3D 1h # Automatic rotation of logfiles will log_rotation_size =3D 10MB # Automatic rotation of logfiles will log_min_messages =3D debug5 # values in order of decreasing detail: log_line_prefix =3D '%m' # special values: log_timezone =3D 'UTC' datestyle =3D 'iso, mdy' timezone =3D 'UTC' lc_messages =3D 'C' # locale for system error message lc_monetary =3D 'C' # locale for monetary formatting lc_numeric =3D 'C' # locale for number formatting lc_time =3D 'C' # locale for time formatting default_text_search_config =3D 'pg_catalog.english' Here's the recovery.conf on the standby: standby_mode =3D on primary_conninfo =3D 'host=3D10.99.99.58 port=3D5432 user=3Dpostgres = application_name=3Dtcp://postgres@10.99.99.52:5432/postgres' Let me know if you require any further information. -Yunong=