Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on Archlinux #14485

Open
Hritik14 opened this issue Jul 18, 2018 · 16 comments

Comments

Projects
None yet
7 participants
@Hritik14
Copy link

commented Jul 18, 2018

Description

Brackets gives a segfault when launched.
Stack trace gives:

  Stack trace of thread 32590:
   #0  0x00007f23492737e4 malloc_usable_size (libc.so.6)
   #1  0x00007f2320d4202a n/a (libsqlite3.so.0)
   #2  0x00007f2320d41766 sqlite3Malloc (libsqlite3.so.0)
   #3  0x00007f2320d41bca sqlite3MallocZero (libsqlite3.so.0)
   #4  0x00007f2320d4294e n/a (libsqlite3.so.0)
   #5  0x00007f2320d3d3e3 sqlite3_initialize (libsqlite3.so.0)
   #6  0x00007f2320d57c05 sqlite3_mprintf (libsqlite3.so.0)
   #7  0x00007f2321034b0f s_open (libsoftokn3.so)
   #8  0x00007f23210383d0 sftk_DBInit (libsoftokn3.so)
   #9  0x00007f23210208fa SFTK_SlotReInit (libsoftokn3.so)
   #10 0x00007f2321020dd7 SFTK_SlotInit (libsoftokn3.so)
   #11 0x00007f23210219cd nsc_CommonInitialize (libsoftokn3.so)
   #12 0x00007f2321021bfa NSC_Initialize (libsoftokn3.so)
   #13 0x00007f234882f52e secmod_ModuleInit (libnss3.so)
   #14 0x00007f234882fc98 secmod_LoadPKCS11Module (libnss3.so)
   #15 0x00007f234883ced6 SECMOD_LoadModule (libnss3.so)
   #16 0x00007f234883cfd0 SECMOD_LoadModule (libnss3.so)
   #17 0x00007f2348807f65 nss_Init (libnss3.so)
   #18 0x00007f2348808539 NSS_InitReadWrite (libnss3.so)
   #19 0x00007f234e9debd4 n/a (/home/USER/Projects/AUR/brackets-bin/opt/brackets/libcef.so)
   #20 0x00007f2335b27e00 n/a (n/a)

Steps to Reproduce

  1. Extract brackets
  2. setuid/chown root chrome-sandbox
  3. run opt/brackets/brackets

Versions

1.14 - affected
1.13 - affected
1.13-pre3 - affected
1.13-pre2 - affected
1.13-pre1 - NOT TESTED
1.12 - NOT affected

ArchLinux 4.17.6-1-zen

@erayerdin

This comment has been minimized.

Copy link

commented Sep 16, 2018

This also can be seen of the comment of aucunhenac on brackets-bin package of Arch User Repository (I wish AUR could provide linking to comments) which also provides a good journalctl:

                                            #2  0x00007f94372ebf7b n/a (libcef.so)
                                            #3  0x00007f94372ec34c n/a (libcef.so)
                                            #4  0x00007f94372e6ed3 n/a (libcef.so)
                                            #5  0x00007f9433693a9d start_thread (libpthread.so.0)
                                            #6  0x00007f94335c3a43 __clone (libc.so.6)

                                            Stack trace of thread 2447:
                                            #0  0x00007f9433699afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                            #1  0x00007f94373dc038 n/a (libcef.so)
                                            #2  0x00007f94372e9cfe n/a (libcef.so)
                                            #3  0x00007f94372e9b9d n/a (libcef.so)
                                            #4  0x00007f94372e6ed3 n/a (libcef.so)
                                            #5  0x00007f9433693a9d start_thread (libpthread.so.0)
                                            #6  0x00007f94335c3a43 __clone (libc.so.6)

                                            Stack trace of thread 2449:
                                            #0  0x00007f94335b8bb1 __poll (libc.so.6)
                                            #1  0x00007f9420891673 n/a (libpulse.so.0)
                                            #2  0x00007f9420882990 pa_mainloop_poll (libpulse.so.0)
                                            #3  0x00007f9420882fe0 pa_mainloop_iterate (libpulse.so.0)
                                            #4  0x00007f9420883091 pa_mainloop_run (libpulse.so.0)
                                            #5  0x00007f94208915ae n/a (libpulse.so.0)
                                            #6  0x00007f94206309fc n/a (libpulsecommon-12.2.so)
                                            #7  0x00007f9433693a9d start_thread (libpthread.so.0)
                                            #8  0x00007f94335c3a43 __clone (libc.so.6)

                                            Stack trace of thread 2450:
                                            #0  0x00007f9433699afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                            #1  0x00007f94372e7cce n/a (libcef.so)
                                            #2  0x00007f94372e75d6 n/a (libcef.so)
                                            #3  0x00007f94372e9b9d n/a (libcef.so)
                                            #4  0x00007f94372e6ed3 n/a (libcef.so)
                                            #5  0x00007f9433693a9d start_thread (libpthread.so.0)
                                            #6  0x00007f94335c3a43 __clone (libc.so.6)

                                            Stack trace of thread 2451:
                                            #0  0x00007f94335c3a35 __clone (libc.so.6)
                                            #1  0x0000000000000000 n/a (n/a)
-- Subject: Process 2421 (Brackets) dumped core -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: man:core(5) -- -- Process 2421 (Brackets) crashed and dumped core. -- -- This usually indicates a programming error in the crashing program and -- should be reported to its vendor as a bug. set 13 11:52:55 pcaucun kernel: [UFW BLOCK] IN=enp1s0 OUT= MAC=01:00:5e:00:00:01:10:5f:49:e0:98:71:08:00 SRC=192.168.0.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2

+1 for Arch Linux and Manjaro support

@nemasu

This comment has been minimized.

Copy link

commented Oct 22, 2018

I swapped out the sqlite3 library for an older one and it started working fine.

@Hritik14

This comment has been minimized.

Copy link
Author

commented Oct 22, 2018

Does it mean that it's a sqlite bug ? A further inspection would be very useful.

@petronny

This comment has been minimized.

Copy link

commented Apr 17, 2019

Does it mean that it's a sqlite bug ?

I don't think so.
I downgrade my sqlite to 3.21.0-1 (updated on 2017-11-15 on Archlinux). And it's still broken.

log:

                                                   Stack trace of thread 14018:
                                                   #0  0x00007f1565226ef7 n/a (libcef.so)
                                                   #1  0x00007f156518c06e n/a (libcef.so)
                                                   #2  0x00007f156518b9a2 n/a (libcef.so)
                                                   #3  0x00007f156167d997 __cxa_finalize (libc.so.6)
                                                   #4  0x00007f156317a3d3 n/a (libcef.so)
                                                   #5  0x00007f15680928de _dl_fini (ld-linux-x86-64.so.2)
                                                   #6  0x00007f156167d45c __run_exit_handlers (libc.so.6)
                                                   #7  0x00007f156167d58e exit (libc.so.6)
                                                   #8  0x00007f15622a0cc1 gtk_init (libgtk-x11-2.0.so.0)
                                                   #9  0x00007f1566a295d6 n/a (libcef.so)
                                                   #10 0x00007f1566a2594c n/a (libcef.so)
                                                   #11 0x00007f1566a28dd6 n/a (libcef.so)
                                                   #12 0x00007f156518331e n/a (libcef.so)
                                                   #13 0x00007f1564c652e9 n/a (libcef.so)
                                                   #14 0x00007f1564c6b3e9 n/a (libcef.so)
                                                   #15 0x00007f15651ee3f9 n/a (libcef.so)
                                                   #16 0x00007f1564fbefa2 n/a (libcef.so)
                                                   #17 0x00007f1564fbf8e7 n/a (libcef.so)
                                                   #18 0x00007f156518be38 n/a (libcef.so)
                                                   #19 0x00007f156518bc1f n/a (libcef.so)
                                                   #20 0x00007f156317a705 cef_initialize (libcef.so)
                                                   #21 0x000000000049202f n/a (Brackets)
                                                   #22 0x0000000000441021 n/a (Brackets)
                                                   #23 0x0000000000421b5e n/a (Brackets)
                                                   #24 0x0000000000422302 n/a (Brackets)
                                                   #25 0x00007f1561667223 __libc_start_main (libc.so.6)
                                                   #26 0x000000000040ca09 n/a (Brackets)

                                                   Stack trace of thread 14025:
                                                   #0  0x00007f1561733bf1 __poll (libc.so.6)
                                                   #1  0x00007f1564e69312 n/a (libcef.so)
                                                   #2  0x00007f15652b9cfe n/a (libcef.so)
                                                   #3  0x00007f15652b9b9d n/a (libcef.so)
                                                   #4  0x00007f15652b6ed3 n/a (libcef.so)
                                                   #5  0x00007f156180ea9d start_thread (libpthread.so.0)
                                                   #6  0x00007f156173eaf3 __clone (libc.so.6)

                                                   Stack trace of thread 14035:
                                                   #0  0x00007f1561818d42 waitpid (libpthread.so.0)
                                                   #1  0x00007f156529892d n/a (libcef.so)
                                                   #2  0x00007f15652b6ed3 n/a (libcef.so)
                                                   #3  0x00007f156180ea9d start_thread (libpthread.so.0)
                                                   #4  0x00007f156173eaf3 __clone (libc.so.6)

                                                   Stack trace of thread 14024:
                                                   #0  0x00007f156172f774 __read (libc.so.6)
                                                   #1  0x00007f15616c0b38 _IO_file_underflow@@GLIBC_2.2.5 (libc.so.6)
                                                   #2  0x00007f15616c1c76 _IO_default_uflow (libc.so.6)
                                                   #3  0x00007f15616b505b _IO_getline_info (libc.so.6)
                                                   #4  0x00007f15616b406f _IO_fgets (libc.so.6)
                                                   #5  0x000000000042a753 n/a (Brackets)
                                                   #6  0x00007f156180ea9d start_thread (libpthread.so.0)
                                                   #7  0x00007f156173eaf3 __clone (libc.so.6)
@Hritik14

This comment has been minimized.

Copy link
Author

commented May 2, 2019

Version 1.14 is also affected.
Stack trace:

 Process 32273 (Brackets) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 32312:
                                                 #0  0x00007f6492e3dfa4 malloc_usable_size (libc.so.6)
                                                 #1  0x00007f647325d67a n/a (libsqlite3.so.0)
                                                 #2  0x00007f647325cdb6 sqlite3Malloc (libsqlite3.so.0)
                                                 #3  0x00007f647325d21a sqlite3MallocZero (libsqlite3.so.0)
                                                 #4  0x00007f647325df9e n/a (libsqlite3.so.0)
                                                 #5  0x00007f64732588a3 sqlite3_initialize (libsqlite3.so.0)
                                                 #6  0x00007f64732735f5 sqlite3_mprintf (libsqlite3.so.0)
                                                 #7  0x00007f647336417f n/a (libsoftokn3.so)
                                                 #8  0x00007f6473367a40 n/a (libsoftokn3.so)
                                                 #9  0x00007f647334ff4a n/a (libsoftokn3.so)
                                                 #10 0x00007f6473350427 n/a (libsoftokn3.so)
                                                 #11 0x00007f647335101d n/a (libsoftokn3.so)
                                                 #12 0x00007f647335124a n/a (libsoftokn3.so)
                                                 #13 0x00007f6492bec93e n/a (libnss3.so)
                                                 #14 0x00007f6492bed0a8 n/a (libnss3.so)
                                                 #15 0x00007f6492bfa986 SECMOD_LoadModule (libnss3.so)
                                                 #16 0x00007f6492bfaac0 SECMOD_LoadModule (libnss3.so)
                                                 #17 0x00007f6492bc50e5 n/a (libnss3.so)
                                                 #18 0x00007f6492bc56b9 NSS_InitReadWrite (libnss3.so)
                                                 #19 0x00007f6496ff5bd4 n/a (libcef.so)
                                                 #20 0x00007f649710e845 n/a (libcef.so)
                                                 #21 0x00007f64971533c7 n/a (libcef.so)
                                                 #22 0x00007f649710f1ab n/a (libcef.so)
                                                 #23 0x00007f64968d871c n/a (libcef.so)
                                                 #24 0x00007f64963678bc n/a (libcef.so)
                                                 #25 0x00007f6496613371 n/a (libcef.so)
                                                 #26 0x00007f6496990400 n/a (libcef.so)
                                                 #27 0x00007f64969a7fc5 n/a (libcef.so)
                                                 #28 0x00007f64969a82a8 n/a (libcef.so)
                                                 #29 0x00007f64969a85cb n/a (libcef.so)
                                                 #30 0x00007f64969aa1a9 n/a (libcef.so)
                                                 #31 0x00007f64969bf31e n/a (libcef.so)
                                                 #32 0x00007f64969a776a n/a (libcef.so)
                                                 #33 0x00007f6496394ed6 n/a (libcef.so)
                                                 #34 0x00007f64963950de n/a (libcef.so)
                                                 #35 0x00007f64969dc47e n/a (libcef.so)
                                                 #36 0x00007f64969d8ed3 n/a (libcef.so)
                                                 #37 0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #38 0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32289:
                                                 #0  0x00007f6492ea3c54 __read (libc.so.6)
                                                 #1  0x00007f6492e35138 _IO_file_underflow@@GLIBC_2.2.5 (libc.so.6)
                                                 #2  0x00007f6492e36276 _IO_default_uflow (libc.so.6)
                                                 #3  0x00007f6492e2943b _IO_getline_info (libc.so.6)
                                                 #4  0x00007f6492e2844f _IO_fgets (libc.so.6)
                                                 #5  0x000000000042b25b n/a (Brackets)
                                                 #6  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #7  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32310:
                                                 #0  0x00007f6492f8abac pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f64969ce04a n/a (libcef.so)
                                                 #2  0x00007f64969cdf12 n/a (libcef.so)
                                                 #3  0x00007f64969a972f n/a (libcef.so)
                                                 #4  0x00007f64969bf31e n/a (libcef.so)
                                                 #5  0x00007f64969a776a n/a (libcef.so)
                                                 #6  0x00007f6496394d96 n/a (libcef.so)
                                                 #7  0x00007f64963950c2 n/a (libcef.so)
                                                 #8  0x00007f64969dc47e n/a (libcef.so)
                                                 #9  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #10 0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #11 0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32290:
                                                 #0  0x00007f6492ea80d1 __poll (libc.so.6)
                                                 #1  0x00007f649658b312 n/a (libcef.so)
                                                 #2  0x00007f64969dbcfe n/a (libcef.so)
                                                 #3  0x00007f64969dbb9d n/a (libcef.so)
                                                 #4  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #5  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #6  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32300:
                                                 #0  0x00007f6492f8ee52 waitpid (libpthread.so.0)
                                                 #1  0x00007f64969ba92d n/a (libcef.so)
                                                 #2  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #3  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #4  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32309:
                                                 #0  0x00007f6492f8abac pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f64969ce04a n/a (libcef.so)
                                                 #2  0x00007f64969cdf12 n/a (libcef.so)
                                                 #3  0x00007f64969a972f n/a (libcef.so)
                                                 #4  0x00007f64969bf31e n/a (libcef.so)
                                                 #5  0x00007f64969a776a n/a (libcef.so)
                                                 #6  0x00007f6496394cf6 n/a (libcef.so)
                                                 #7  0x00007f64963950b4 n/a (libcef.so)
                                                 #8  0x00007f64969dc47e n/a (libcef.so)
                                                 #9  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #10 0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #11 0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32303:
                                                 #0  0x00007f6492eb3007 epoll_wait (libc.so.6)
                                                 #1  0x00007f64948e6458 n/a (libcef.so)
                                                 #2  0x00007f64948e4001 n/a (libcef.so)
                                                 #3  0x00007f64969aa18e n/a (libcef.so)
                                                 #4  0x00007f64969bf31e n/a (libcef.so)
                                                 #5  0x00007f64969a776a n/a (libcef.so)
                                                 #6  0x00007f64969dc47e n/a (libcef.so)
                                                 #7  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #8  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #9  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32311:
                                                 #0  0x00007f6492f8abac pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f64969ce04a n/a (libcef.so)
                                                 #2  0x00007f64969cdf12 n/a (libcef.so)
                                                 #3  0x00007f64969a972f n/a (libcef.so)
                                                 #4  0x00007f64969bf31e n/a (libcef.so)
                                                 #5  0x00007f64969a776a n/a (libcef.so)
                                                 #6  0x00007f6496394e36 n/a (libcef.so)
                                                 #7  0x00007f64963950d0 n/a (libcef.so)
                                                 #8  0x00007f64969dc47e n/a (libcef.so)
                                                 #9  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #10 0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #11 0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32304:
                                                 #0  0x00007f6492eaa92f __select (libc.so.6)
                                                 #1  0x00007f6496996911 n/a (libcef.so)
                                                 #2  0x00007f6496990400 n/a (libcef.so)
                                                 #3  0x00007f64969a7fc5 n/a (libcef.so)
                                                 #4  0x00007f64969a82a8 n/a (libcef.so)
                                                 #5  0x00007f64969a85cb n/a (libcef.so)
                                                 #6  0x00007f64969a96ab n/a (libcef.so)
                                                 #7  0x00007f64969bf31e n/a (libcef.so)
                                                 #8  0x00007f64969a776a n/a (libcef.so)
                                                 #9  0x00007f64969dc47e n/a (libcef.so)
                                                 #10 0x00007f64969d8ed3 n/a (libcef.so)
                                                 #11 0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #12 0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32313:
                                                 #0  0x00007f6492f8abac pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f64969ce04a n/a (libcef.so)
                                                 #2  0x00007f64969cdf12 n/a (libcef.so)
                                                 #3  0x00007f64969a972f n/a (libcef.so)
                                                 #4  0x00007f64969bf31e n/a (libcef.so)
                                                 #5  0x00007f64969a776a n/a (libcef.so)
                                                 #6  0x00007f64969dc47e n/a (libcef.so)
                                                 #7  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #8  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #9  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32308:
                                                 #0  0x00007f6492eb3007 epoll_wait (libc.so.6)
                                                 #1  0x00007f64948e6458 n/a (libcef.so)
                                                 #2  0x00007f64948e4001 n/a (libcef.so)
                                                 #3  0x00007f64969aa18e n/a (libcef.so)
                                                 #4  0x00007f64969bf31e n/a (libcef.so)
                                                 #5  0x00007f64969a776a n/a (libcef.so)
                                                 #6  0x00007f6496394c56 n/a (libcef.so)
                                                 #7  0x00007f64963950a3 n/a (libcef.so)
                                                 #8  0x00007f64969dc47e n/a (libcef.so)
                                                 #9  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #10 0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #11 0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32319:
                                                 #0  0x00007f6492f8abac pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f64969d9cce n/a (libcef.so)
                                                 #2  0x00007f64969d95d6 n/a (libcef.so)
                                                 #3  0x00007f64969dbb9d n/a (libcef.so)
                                                 #4  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #5  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #6  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32321:
                                                 #0  0x00007f6492eb3007 epoll_wait (libc.so.6)
                                                 #1  0x00007f64948e6458 n/a (libcef.so)
                                                 #2  0x00007f64948e4001 n/a (libcef.so)
                                                 #3  0x00007f64969aa18e n/a (libcef.so)
                                                 #4  0x00007f64969bf31e n/a (libcef.so)
                                                 #5  0x00007f64969a776a n/a (libcef.so)
                                                 #6  0x00007f64969dc47e n/a (libcef.so)
                                                 #7  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #8  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #9  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32315:
                                                 #0  0x00007f6492f8afa6 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f64969cdc33 n/a (libcef.so)
                                                 #2  0x00007f64969ce033 n/a (libcef.so)
                                                 #3  0x00007f64969a9725 n/a (libcef.so)
                                                 #4  0x00007f64969bf31e n/a (libcef.so)
                                                 #5  0x00007f64969a776a n/a (libcef.so)
                                                 #6  0x00007f64969dc47e n/a (libcef.so)
                                                 #7  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #8  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #9  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32314:
                                                 #0  0x00007f6492f8abac pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f6496ace038 n/a (libcef.so)
                                                 #2  0x00007f64969dbcfe n/a (libcef.so)
                                                 #3  0x00007f64969dbb9d n/a (libcef.so)
                                                 #4  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #5  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #6  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32307:
                                                 #0  0x00007f6492f8abac pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f64969ce04a n/a (libcef.so)
                                                 #2  0x00007f64969cdf12 n/a (libcef.so)
                                                 #3  0x00007f64969a972f n/a (libcef.so)
                                                 #4  0x00007f64969bf31e n/a (libcef.so)
                                                 #5  0x00007f64969a776a n/a (libcef.so)
                                                 #6  0x00007f6496394bb6 n/a (libcef.so)
                                                 #7  0x00007f6496395092 n/a (libcef.so)
                                                 #8  0x00007f64969dc47e n/a (libcef.so)
                                                 #9  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #10 0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #11 0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32305:
                                                 #0  0x00007f6492f8afa6 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f64969cdc33 n/a (libcef.so)
                                                 #2  0x00007f64969ddf7b n/a (libcef.so)
                                                 #3  0x00007f64969de34c n/a (libcef.so)
                                                 #4  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #5  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #6  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32316:
                                                 #0  0x00007f6492ea80d1 __poll (libc.so.6)
                                                 #1  0x00007f64851ed673 n/a (libpulse.so.0)
                                                 #2  0x00007f64851de990 pa_mainloop_poll (libpulse.so.0)
                                                 #3  0x00007f64851defe0 pa_mainloop_iterate (libpulse.so.0)
                                                 #4  0x00007f64851df091 pa_mainloop_run (libpulse.so.0)
                                                 #5  0x00007f64851ed5ae n/a (libpulse.so.0)
                                                 #6  0x00007f6484f8c9fc n/a (libpulsecommon-12.2.so)
                                                 #7  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #8  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32306:
                                                 #0  0x00007f6492f8afa6 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
                                                 #1  0x00007f64969cdc33 n/a (libcef.so)
                                                 #2  0x00007f64969ddf7b n/a (libcef.so)
                                                 #3  0x00007f64969de34c n/a (libcef.so)
                                                 #4  0x00007f64969d8ed3 n/a (libcef.so)
                                                 #5  0x00007f6492f84a92 start_thread (libpthread.so.0)
                                                 #6  0x00007f6492eb2cd3 __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 32273:
                                                 #0  0x00007f6492ea3249 __xstat (libc.so.6)
                                                 #1  0x000000000042bb88 n/a (Brackets)
                                                 #2  0x000000000042be11 n/a (Brackets)
                                                 #3  0x00000000004226b6 n/a (Brackets)
                                                 #4  0x0000000000422e0a n/a (Brackets)
                                                 #5  0x00007f6492ddbce3 __libc_start_main (libc.so.6)
                                                 #6  0x000000000040cdc9 n/a (Brackets)
@Musikolo

This comment has been minimized.

Copy link

commented May 3, 2019

@Hritik14 , instead of running /usr/bin/brackets bash script, I've decided to run /opt/brackets/Brackets binary directly and it also crashes. To further see what's going on, I've run the same binary with strace command. I've found there are 736 No such file or directory errors before it reaches the segmentation fault point. I'll see when I can further look into it, but it looks to me there is something not properly linked. It's looking for a lot libraries under /opt/brackets instead of under /usr/lib. For instance, it's trying to open file /opt/brackets/libX11.so.6 instead of /usr/lib/libX11.so.6.

Please, find the trace I got: brackets-strace-dump.log

I hope it helps!

@Musikolo

This comment has been minimized.

Copy link

commented May 3, 2019

Further looking into, I've noticed that some of the those No such file or directory errors are just false positives. They are caused because it first checks under /opt/brackets and right after under /usr/lib which successfully loaded the target library.

I've also compared the trace with strace of version 1.12 with 1.14. Last few lines close to the segmentation fault are as follows:

Version 1.12

...etc...
openat(AT_FDCWD, "/home/musikolo/.config/kioslaverc", O_RDONLY) = -1 ENOENT (No such file or directory)
write(42, "\0", 1)                      = 1
gettid()                                = 23227
gettid()                                = 23227
gettid()                                = 23227
write(42, "\0", 1)                      = 1
uname({sysname="Linux", nodename="MyPC", ...}) = 0
write(37, "\0", 1)                      = 1
gettid()                                = 23227
gettid()                                = 23227
gettid()                                = 23227
readlink("/proc/self/exe", "/opt/brackets/Brackets", 512) = 22
stat("/opt/brackets/dev/src/index.html", 0x7ffe192dd660) = -1 ENOENT (No such file or directory)
stat("/opt/brackets/www/index.html", {st_mode=S_IFREG|0644, st_size=2441, ...}) = 0
rt_sigaction(SIGINT, {sa_handler=0x42130d, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f52a1bf38b0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f52a1d934d0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x42130d, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f52a1bf38b0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f52a1d934d0}, 8) = 0
gettid()                                = 23227
getcwd("/opt/brackets", 255)            = 14
gettid()                                = 23227
gettid()                                = 23227
gettid()                                = 23227
futex(0x7f52a21b8a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f52a21b8a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f52a21b8a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f52a21b8a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f52a21b8a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
gettid()                                = 23227
gettid()                                = 23227
uname({sysname="Linux", nodename="MyPC", ...}) = 0
getpid()                                = 23227
poll([{fd=19, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=19, revents=POLLOUT}])
writev(19, [{iov_base="\22\0\n\0\3\0 \7\32\2\0\0\32\2\0\0\10\0\310\0\20\0\0\0l\0\5\0\0\0\0\0"..., iov_len=3472}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 3472
poll([{fd=19, events=POLLIN}], 1, -1)   = 1 ([{fd=19, revents=POLLIN}])
recvmsg(19, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\34\0\236\0\3\0 \7\32\2\0\0\221cw\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 608
write(20, "\1\0\0\0\0\0\0\0", 8)        = 8
futex(0x7f52a21b8a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
poll([{fd=19, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=19, revents=POLLOUT}])
writev(19, [{iov_base="\31\0\v\0j\1\0\0\0\0\30\0! \0\0\37\0 \7k\1\0\0\0\0\0\0\332\1\0\0"..., iov_len=152}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 152
recvmsg(19, {msg_namelen=0}, 0)         = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(19, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\34\0\312\0\37\0 \7#\0\0\0\224cw\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 32
recvmsg(19, {msg_namelen=0}, 0)         = -1 EAGAIN (Resource temporarily unavailable)
gettid()                                = 23227
gettid()                                = 23227
gettid()                                = 23227
gettid()                                = 23227
... continues loading successfully...

Version 1.14

...etc...
openat(AT_FDCWD, "/home/musikolo/.config/kioslaverc", O_RDONLY) = -1 ENOENT (No such file or directory)
write(42, "\0", 1)                      = 1
gettid()                                = 18834
gettid()                                = 18834
gettid()                                = 18834
write(42, "\0", 1)                      = 1
uname({sysname="Linux", nodename="MyPC", ...}) = 0
write(37, "\0", 1)                      = 1
gettid()                                = 18834
gettid()                                = 18834
gettid()                                = 18834
readlink("/proc/self/exe", "/opt/brackets/Brackets", 512) = 22
stat("/opt/brackets/dev/src/index.html", 0x7ffe09d2baa0) = -1 ENOENT (No such file or directory)
stat("/opt/brackets/www/index.html", {st_mode=S_IFREG|0644, st_size=2441, ...}) = 0
rt_sigaction(SIGINT, {sa_handler=0x422181, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f115b5bd8b0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f115b75d4d0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x422181, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f115b5bd8b0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f115b75d4d0}, 8) = 0
gettid()                                = 18834
getcwd("/home/musikolo", 255)             = 13
gettid()                                = 18834
gettid()                                = 18834
gettid()                                = 18834
futex(0x7f115bb82a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD, "/home/musikolo/.config/Brackets/window.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "LoadWindowState(): Could not rea"..., 121LoadWindowState(): Could not read /home/musikolo/.config/Brackets/window.ini. Error Description:No such file or directory.
) = 121
futex(0x7f115bb82a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f115bb82a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f115bb82a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f115bb82a28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
gettid()                                = 18834
gettid()                                = 18834
uname({sysname="Linux", nodename="MyPC", ...}) = 0
getpid()                                = 18834
write(20, "\1\0\0\0\0\0\0\0", 8)        = 8
poll([{fd=19, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=19, revents=POLLIN|POLLOUT}])
recvmsg(19, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\34\0\235\0\3\0\0\7\0\2\0\0\244\360\31\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 32
writev(19, [{iov_base="\22\0\n\0\3\0\0\7\32\2\0\0\32\2\0\0\10\0\310\0\20\0\0\0l\0\5\0\0\0\0\0"..., iov_len=3492}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 3492
poll([{fd=19, events=POLLIN}], 1, -1)   = 1 ([{fd=19, revents=POLLIN}])
recvmsg(19,  <unfinished ...>)          = ?
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

For some reason, with version 1.14 it looking for a file named window.ini which doesn't exist. I've removed my ~/.config/Brackets directory and started over, but I got the same result. That file is never used with 1.12. I don't know to what extend that file is critical, but it seems to be the cause of the error. I tried creating an empty file with such a name, but it didn't go through either.

Everything is pretty weird, I must say...

@petronny

This comment has been minimized.

Copy link

commented May 3, 2019

@Musikolo You can create window.ini with

echo '[position]' > ~/.config/Brackets/window.ini

to by-pass this error.

@Musikolo

This comment has been minimized.

Copy link

commented May 4, 2019

@petronny, after doing as indicated, unfortunately I get a similar issue:

[musikolo@MyPC ~]$ strace /opt/brackets/Brackets
...etc...
readlink("/proc/self/exe", "/opt/brackets/Brackets", 512) = 22
stat("/opt/brackets/dev/src/index.html", 0x7ffd61389d00) = -1 ENOENT (No such file or directory)
stat("/opt/brackets/www/index.html", {st_mode=S_IFREG|0644, st_size=2441, ...}) = 0
rt_sigaction(SIGINT, {sa_handler=0x422181, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f28ed8098b0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f28ed9a94d0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x422181, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f28ed8098b0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f28ed9a94d0}, 8) = 0
gettid()                                = 4877
getcwd("/home/musikolo", 255)             = 13
gettid()                                = 4877
gettid()                                = 4877
gettid()                                = 4877
futex(0x7f28eddcea28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD, "/home/musikolo/.config/Brackets/window.ini", O_RDONLY) = 59
fstat(59, {st_mode=S_IFREG|0644, st_size=11, ...}) = 0
read(59, "[position]\n", 4096)          = 11
read(59, "", 4096)                      = 0
close(59)                               = 0
futex(0x7f28eddcea28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD, "/usr/share/locale/en_GB/LC_MESSAGES/glib20.mo", O_RDONLY) = 59
fstat(59, {st_mode=S_IFREG|0644, st_size=118994, ...}) = 0
mmap(NULL, 118994, PROT_READ, MAP_PRIVATE, 59, 0) = 0x7f28df9ca000
close(59)                               = 0
futex(0x7f28eddcea28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f28eddcea28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f28eddcea28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f28eddcea28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
gettid()                                = 4877
gettid()                                = 4877
uname({sysname="Linux", nodename="MyPC", ...}) = 0
getpid()                                = 4877
write(20, "\1\0\0\0\0\0\0\0", 8)        = 8
poll([{fd=19, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=19, revents=POLLIN|POLLOUT}])
recvmsg(19, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\34\0\235\0\3\0\300\6\0\2\0\0\256(*\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 32
writev(19, [{iov_base="\22\0\n\0\3\0\300\6\25\2\0\0\25\2\0\0\10\0\310\0\20\0\0\0l\0\5\0\0\0\0\0"..., iov_len=3492}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = ?
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)
[musikolo@MyPC ~]$
@Musikolo

This comment has been minimized.

Copy link

commented May 4, 2019

Just in case it helps, I'm adding the trace of the segmentation fault I got with gdb debugger:

[musikolo@MyPC brackets]$ gdb /opt/brackets/Brackets
GNU gdb (GDB) 8.2.1
Copyright (C) 2018 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 "x86_64-pc-linux-gnu".
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 /opt/brackets/Brackets...(no debugging symbols found)...done.
(gdb) run
Starting program: /opt/brackets/Brackets 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/opt/brackets/lib/libthread_db.so.1".
[New Thread 0x7fffee717700 (LWP 14136)]
[Detaching after fork from child process 14137]
[New Thread 0x7fffed9b9700 (LWP 14138)]
[Thread 0x7fffee717700 (LWP 14136) exited]
[New Thread 0x7fffebc04700 (LWP 14139)]
[Detaching after fork from child process 14145]
[New Thread 0x7fffeb403700 (LWP 14149)]
[0503/214611:ERROR:browser_main_loop.cc(239)] GTK theme error: Unable to locate theme engine in module_path: "adwaita",
[0503/214611:ERROR:browser_main_loop.cc(239)] GTK theme error: Unable to locate theme engine in module_path: "adwaita",
[New Thread 0x7fffea02f700 (LWP 14150)]
[New Thread 0x7fffe982e700 (LWP 14151)]
[New Thread 0x7fffe902d700 (LWP 14152)]
[New Thread 0x7fffe882c700 (LWP 14153)]
[New Thread 0x7fffe802b700 (LWP 14154)]
[New Thread 0x7fffe782a700 (LWP 14155)]
[New Thread 0x7fffe7029700 (LWP 14156)]
[New Thread 0x7fffe6828700 (LWP 14157)]
[New Thread 0x7fffe6027700 (LWP 14158)]
[New Thread 0x7fffe5826700 (LWP 14159)]
[New Thread 0x7fffe5025700 (LWP 14160)]
[New Thread 0x7fffe4824700 (LWP 14161)]
[New Thread 0x7fffe4023700 (LWP 14162)]
[New Thread 0x7fffe2fb8700 (LWP 14163)]
[New Thread 0x7fffd2797700 (LWP 14164)]
[New Thread 0x7fffd1f70700 (LWP 14165)]
[New Thread 0x7fffcd5d7700 (LWP 14166)]

Thread 15 "Chrome_IOThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe5826700 (LWP 14159)]
0x00007ffff16b2fa4 in malloc_usable_size () from /opt/brackets/lib/libc.so.6

(gdb) backtrace
#0  0x00007ffff16b2fa4 in malloc_usable_size () at /opt/brackets/lib/libc.so.6
#1  0x00007fffd1672bea in  () at /opt/brackets/lib/libsqlite3.so.0
#2  0x00007fffd1672316 in sqlite3Malloc () at /opt/brackets/lib/libsqlite3.so.0
#3  0x00007fffd1686988 in  () at /opt/brackets/lib/libsqlite3.so.0
#4  0x00007fffd1688c82 in sqlite3_vmprintf () at /opt/brackets/lib/libsqlite3.so.0
#5  0x00007fffd1688d5f in sqlite3_mprintf () at /opt/brackets/lib/libsqlite3.so.0
#6  0x00007fffd17301ab in  () at /opt/brackets/lib/libsoftokn3.so
#7  0x00007fffd1733a40 in  () at /opt/brackets/lib/libsoftokn3.so
#8  0x00007fffd171bf4a in  () at /opt/brackets/lib/libsoftokn3.so
#9  0x00007fffd171c427 in  () at /opt/brackets/lib/libsoftokn3.so
#10 0x00007fffd171d01d in  () at /opt/brackets/lib/libsoftokn3.so
#11 0x00007fffd171d24a in  () at /opt/brackets/lib/libsoftokn3.so
#12 0x00007ffff146193e in  () at /opt/brackets/lib/libnss3.so
#13 0x00007ffff14620a8 in  () at /opt/brackets/lib/libnss3.so
#14 0x00007ffff146f986 in SECMOD_LoadModule () at /opt/brackets/lib/libnss3.so
#15 0x00007ffff146fac0 in SECMOD_LoadModule () at /opt/brackets/lib/libnss3.so
#16 0x00007ffff143a0e5 in  () at /opt/brackets/lib/libnss3.so
#17 0x00007ffff143a6b9 in NSS_InitReadWrite () at /opt/brackets/lib/libnss3.so
#18 0x00007ffff581fbd4 in base::LazyInstance<crypto::(anonymous namespace)::NSSInitSingleton, base::internal::LeakyLazyInstanceTraits<crypto::(anonymous namespace)::NSSInitSingleton> >::Get() () at /opt/brackets/libcef.so
#19 0x00007ffff5938845 in net::CertDatabase::GetInstance() () at /opt/brackets/libcef.so
#20 0x00007ffff597d3c7 in net::CachingCertVerifier::CachingCertVerifier(std::unique_ptr<net::CertVerifier, std::default_delete<net::CertVerifier> >) ()
    at /opt/brackets/libcef.so
#21 0x00007ffff59391ab in net::CertVerifier::CreateDefault() () at /opt/brackets/libcef.so
#22 0x00007ffff510271c in CefURLRequestContextGetterImpl::GetURLRequestContext() () at /opt/brackets/libcef.so
#23 0x00007ffff4b918bc in content::ChromeAppCacheService::InitializeOnIOThread(base::FilePath const&, content::ResourceContext*, net::URLRequestContextGetter*, scoped_refptr<storage::SpecialStoragePolicy>) () at /opt/brackets/libcef.so
#24 0x00007ffff4e3d371 in base::internal::Invoker<base::internal::BindState<base::internal::RunnableAdapter<void (content::ChromeAppCacheService::*)(base::FilePath const&, content::ResourceContext*, net::URLRequestContextGetter*, scoped_refptr<storage::SpecialStoragePolicy>)>, content::ChromeAppCacheService*, base::FilePath, content::ResourceContext*, base::internal::RetainedRefWrapper<net::URLRequestContextGetter>, base::internal::RetainedRefWrapper<storage::SpecialStoragePolicy> >, void ()>::Run(base::internal::BindStateBase*) () at /opt/brackets/libcef.so
#25 0x00007ffff51ba400 in base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask const&) () at /opt/brackets/libcef.so
#26 0x00007ffff51d1fc5 in base::MessageLoop::RunTask(base::PendingTask const&) () at /opt/brackets/libcef.so
#27 0x00007ffff51d22a8 in base::MessageLoop::DeferOrRunPendingTask(base::PendingTask const&) () at /opt/brackets/libcef.so
#28 0x00007ffff51d25cb in base::MessageLoop::DoWork() () at /opt/brackets/libcef.so
#29 0x00007ffff51d41a9 in base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) () at /opt/brackets/libcef.so
#30 0x00007ffff51e931e in base::RunLoop::Run() () at /opt/brackets/libcef.so
#31 0x00007ffff51d176a in base::Thread::Run(base::MessageLoop*) () at /opt/brackets/libcef.so
#32 0x00007ffff4bbeed6 in content::BrowserThreadImpl::IOThreadRun(base::MessageLoop*) () at /opt/brackets/libcef.so
#33 0x00007ffff4bbf0de in content::BrowserThreadImpl::Run(base::MessageLoop*) () at /opt/brackets/libcef.so
#34 0x00007ffff520647e in base::Thread::ThreadMain() () at /opt/brackets/libcef.so
--Type <RET> for more, q to quit, c to continue without paging--
#35 0x00007ffff5202ed3 in base::(anonymous namespace)::ThreadFunc(void*) () at /opt/brackets/libcef.so
#36 0x00007ffff17f9a92 in start_thread () at /opt/brackets/lib/libpthread.so.0
#37 0x00007ffff1727cd3 in clone () at /opt/brackets/lib/libc.so.6

I'm not an expert, but I would say the issue is related to the bundled libcef.so library...

@shubhsnov / @swmitra / @vickramdhawal, thoughts?

@Musikolo

This comment has been minimized.

Copy link

commented May 4, 2019

Voila!

After so much back and forth, I got to solve issue. All I had to do is replacing the library libcef.so coming in version 1.14 with the one coming in version 1.12.

That's all!

@shubhsnov

This comment has been minimized.

Copy link
Collaborator

commented May 4, 2019

Thanks @Musikolo for all the investigation. It seems the issue is in the CEF binary we're using. We're looking into the issue.

@Musikolo

This comment has been minimized.

Copy link

commented May 4, 2019

I also found that using CEF binary version 3.2785.1486 works:

I don't version was bundled with Brackets 1.12...

@petronny

This comment has been minimized.

Copy link

commented May 5, 2019

@shubhsnov @Musikolo
I'm afraid there are also some problems in appshell_extensions_gtk.cpp beside the bundled CEF.

If I compile v1.14 from source with cef 3.2785.1486 by sed 's/1487/1486/g' -i Gruntfile.js,
it raises segment fault in GetPendingFilesToOpen(), which is

int32 GetPendingFilesToOpen(ExtensionString& files)
{
}

This is petty weird that there is no return value. So I change it to

int32 GetPendingFilesToOpen(ExtensionString& files)
{
    return 0;
}

Then it can start up now but will raise segment fault when I click Open to open a file.

@petronny

This comment has been minimized.

Copy link

commented May 5, 2019

BTW, where is the source code for cef 3.2785.1487?
The latest version of cef 3.2785.* on bitbucket is 3.2785.1486.

@awissu

This comment has been minimized.

Copy link

commented May 5, 2019

#14095
rpmlint to 1.14:

[ 1060s] I: Program returns random data in a function
[ 1060s] E: brackets no-return-in-nonvoid-function appshell/appshell_extensions_gtk.cpp:846, 383, 802
[ 1060s] E: brackets no-return-in-nonvoid-function appshell/appshell_helpers_gtk.cpp:157
[ 1060s] E: brackets no-return-in-nonvoid-function appshell/appshell_node_process_linux.cpp:180
[ 1060s] E: brackets no-return-in-nonvoid-function appshell/browser/root_window_gtk.cc:819, 52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.