NetBSD Problem Report #52705

From www@NetBSD.org  Mon Nov  6 17:25:14 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D47C17A1C6
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  6 Nov 2017 17:25:13 +0000 (UTC)
Message-Id: <20171106172512.CC7007A1E3@mollari.NetBSD.org>
Date: Mon,  6 Nov 2017 17:25:12 +0000 (UTC)
From: schaecsn@gmx.net
Reply-To: schaecsn@gmx.net
To: gnats-bugs@NetBSD.org
Subject: www/seamonkey crashes on i386 when built with -march=prescott
X-Send-Pr-Version: www-1.0

>Number:         52705
>Category:       pkg
>Synopsis:       www/seamonkey crashes on i386 when built with -march=prescott
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 06 17:30:00 +0000 2017
>Last-Modified:  Thu Nov 09 04:15:00 +0000 2017
>Originator:     Stefan Schaeckeler
>Release:        pkgsrc-2017Q3
>Organization:
>Environment:
NetBSD t60p 7.0 NetBSD 7.0 (GENERIC) #0: Sat Sep 26 20:21:41 PDT 2015  root@t60p:/usr/obj/sys/arch/i386/compile/GENERIC i386
>Description:
seamonkey works fine when compiled with

CFLAGS=                 -O0 -pipe
CFLAGS=                 -O1 -pipe
CFLAGS=                 -O2 -pipe


seamonkey crashes upon start when compiled with

CFLAGS=                 -O0 -march=prescott -pipe
CFLAGS=                 -O1 -march=prescott -pipe
CFLAGS=                 -O2 -march=prescott -pipe

>How-To-Repeat:

>Fix:

>Audit-Trail:
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52705: www/seamonkey crashes on i386 when built with -march=prescott
Date: Tue, 07 Nov 2017 19:29:00 +0100

 Hello Stefan,

 schaecsn@gmx.net writes:
 > >Number:         52705
 > >Category:       pkg
 > >Synopsis:       www/seamonkey crashes on i386 when built with -march=3D=
 prescott
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Mon Nov 06 17:30:00 +0000 2017
 > >Originator:     Stefan Schaeckeler
 > >Release:        pkgsrc-2017Q3
 > >Organization:
 > >Environment:
 > NetBSD t60p 7.0 NetBSD 7.0 (GENERIC) #0: Sat Sep 26 20:21:41 PDT 2015  r=
 oot@t60p:/usr/obj/sys/arch/i386/compile/GENERIC i386
 > >Description:
 > seamonkey works fine when compiled with
 >
 > CFLAGS=3D                 -O0 -pipe
 > CFLAGS=3D                 -O1 -pipe
 > CFLAGS=3D                 -O2 -pipe
 >
 >
 > seamonkey crashes upon start when compiled with
 >
 > CFLAGS=3D                 -O0 -march=3Dprescott -pipe
 > CFLAGS=3D                 -O1 -march=3Dprescott -pipe
 > CFLAGS=3D                 -O2 -march=3Dprescott -pipe
 >

 Thanks for the PR!

 Does it dump core?
 If yes can you please share more information about it? (probably `bt'
 from gdb can be interesting)

From: schaecsn <schaecsn@gmx.net>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org,gnats-admin@netbsd.org,pkgsrc-bugs@netbsd.org
Subject: Re: pkg/52705: www/seamonkey crashes on i386 when built with -march=prescott
Date: Wed,  8 Nov 2017 20:12:53 -0800 (PST)

 >  Thanks for the PR!
 >  
 >  Does it dump core?

 Yes, it does.

 A small correction:

 When I talk about CFLAGS, I mean CFLAGS and CXXFLAGS, e.g. when I include in
 both -march=prescott, seamonkey core-dumps.

 Note, I also deleted the .mozilla directory just to be on the save side.


 >  If yes can you please share more information about it? (probably `bt'
 >  from gdb can be interesting)

 I didn't send any stack trace as I'm puzzled how to generate a usable one, e.g.
 one with symbolic names.


 For below output, I had this in mk.conf:

 CFLAGS=                 -O0 -g -march=prescott -pipe
 CXXFLAGS=               -O0 -g -march=prescott -pipe
 INSTALL_UNSTRIPPED=     yes


 My failed tries:


 t60p:~$ gdb seamonkey
 GNU gdb (GDB) 7.7.1
 Copyright (C) 2014 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "i486--netbsdelf".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
 <http://www.gnu.org/software/gdb/documentation/>.
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from seamonkey...done.
 (gdb) b main
 Breakpoint 1 at 0x403c: file /tmp/pkgsrc/www/seamonkey/work/seamonkey-2.48/suite/app/nsSuiteApp.cpp, line 318.
 (gdb) run
 Starting program: /usr/local/bin/seamonkey 
 Cannot access memory at address 0xe451412
 Cannot access memory at address 0xe45140e
 (gdb) bt
 #0  0xbbbefe30 in ?? ()
 (gdb) quit
 A debugging session is active.

         Inferior 1 [process 19178] will be killed.

 Quit anyway? (y or n) y




 t60p:~$ file /usr/local/bin/seamonkey 
 /usr/local/bin/seamonkey: symbolic link to `/usr/local/lib/seamonkey/seamonkey'
 t60p:~$ 
 t60p:~$ file  /usr/local/lib/seamonkey/seamonkey 
 /usr/local/lib/seamonkey/seamonkey: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for NetBSD 7.1, PaX: -mprotect, BuildID[sha1]=56df2051fa55bd72cef8d465e0cf682df0d66855, not stripped
 t60p:~$ 



 t60p:~$ dir seamonkey.core
 ls: seamonkey.core: No such file or directory



 t60p:~$ seamonkey
 1510199723631   addons.xpi-utils        WARN    Disabling foreign installed add-on modern@themes.mozilla.org in app-global
 Segmentation fault (core dumped)
 t60p:~$ 
 t60p:~$ dir seamonkey.core
 -rw-------  1 schaecsn  users  62801916 Nov  8 19:55 seamonkey.core


 t60p:~$ gdb /usr/local/lib/seamonkey/seamonkey -c seamonkey.core 
 GNU gdb (GDB) 7.7.1
 Copyright (C) 2014 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "i486--netbsdelf".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
 <http://www.gnu.org/software/gdb/documentation/>.
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from /usr/local/lib/seamonkey/seamonkey...done.
 [New process 23]
 [New process 33]
 [New process 32]
 [New process 31]
 [New process 30]
 [New process 29]
 [New process 28]
 [New process 27]
 [New process 26]
 [New process 25]
 [New process 24]
 [New process 22]
 [New process 21]
 [New process 20]
 [New process 19]
 [New process 18]
 [New process 17]
 [New process 16]
 [New process 15]
 [New process 14]
 [New process 13]
 [New process 12]
 [New process 11]
 [New process 10]
 [New process 9]
 [New process 8]
 [New process 7]
 [New process 6]
 [New process 5]
 [New process 4]
 [New process 3]
 [New process 2]
 [New process 1]
 Core was generated by `seamonkey'.
 Program terminated with signal SIGSEGV, Segmentation fault.
 #0  0xbba545c7 in ?? ()
 (gdb) bt
 #0  0xbba545c7 in ?? ()
 #1  0xbba54568 in ?? ()
 #2  0x00000017 in ?? ()
 #3  0x0000000b in ?? ()
 #4  0xbb67dacc in ?? ()
 Backtrace stopped: previous frame inner to this frame (corrupt stack?)
 (gdb) quit



 t60p:~$ strace seamonkey 
 syscall_3217030516(0, 0xbfbffd7e, 0xbfbffd98, 0xbfbffda3, 0xbfbffdc5) = 0xbbbe5000
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = 3
 read(-1077943116, NULL, 3)              = -1145159680
 syscall_3149807616(0x1000, 0x4, 0x1, 0x3, 0) = 0xbbbd4000
 syscall_3149803520(0xbbbe3000, 0x1000, 0x3, 0x12, 0x3) = 0xbbbe4000
 read(3, "\0\0\0", 3)                    = 3
 read(-1077943116, "", 3)                = -1145229312
 syscall_3149737984(0x1000, 0x4, 0x1, 0x3, 0) = 0xbbae4000
 syscall_3149692928(0xbbbc8000, 0x5000, 0x3, 0x12, 0x3) = 0xbbbcd000
 read(3, 0xbfbfe4b4, 3)                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = 3
 read(-1077943116, "", 3)                = -1146212352
 syscall_3148754944(0x1000, 0x4, 0x1, 0x3, 0) = 0xbbabe000
 syscall_3148754944(0xbbae3000, 0x1000, 0x3, 0x12, 0x3) = 0xbbae4000
 read(3, "\0\0\0", 3)                    = 3
 read(-1077943116, "", 3)                = -1146368000
 syscall_3148599296(0x1000, 0x4, 0x1, 0x3, 0) = 0xbbab0000
 syscall_3148599296(0xbbabd000, 0x1000, 0x3, 0x12, 0x3) = 0xbbabe000
 read(3, 0xbfbfe4b4, 3)                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = -1 ENOENT (No such file or directory)
 fork()                                  = 3
 read(-1077943116, "", 3)                = -1146425344
 syscall_3148541952(0x1000, 0x4, 0x1, 0x3, 0) = 0xbb94a000
 syscall_3148443648(0xbba97000, 0x8000, 0x3, 0x12, 0x3) = 0xbba9f000
 read(3, "", 3)                          = -1147924480
 syscall_3149832784(0xbbbff8fc, 0xbbbf2825, 0xbbbe7000, 0, 0x4820) = 0x1
 exit(-1077941276)                       = ?
 --- SIGCHLD (Child exited) @ 0 (0) ---
 _exit returned!
 ) = ?
 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
 ___lwp_park60(0, 0x1, 0xac5faecc, 0, 0xb3508410, 0xb3508410 <unfinished ...>
 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
 +++ killed by SIGSEGV (core dumped) +++
 t60p:~$ 


 ~ Stefan

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.