pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/52705: www/seamonkey crashes on i386 when built with -march=prescott



The following reply was made to PR pkg/52705; it has been noted by GNATS.

From: schaecsn <schaecsn%gmx.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%netbsd.org@localhost,gnats-admin%netbsd.org@localhost,pkgsrc-bugs%netbsd.org@localhost
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@localhost 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
 


Home | Main Index | Thread Index | Old Index