change http:// to ./ will cause SEGFAULT

Bug #1530669 reported by jidanni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
Fix Committed
Undecided
Unassigned

Bug Description

Change the
https://bugs.launchpad.net/midori
you see in the URL bar above to just
./bugs.launchpad.net/midori
and hit RET.
VOOM, Segmentation fault

No, I don't know why one would want to try and browse "./bugs.launchpad.net/midori", but if one does... Segmentation fault.

Command line midori
Midori 0.5.11 (de.twotoasts.midori_d7134a2ccc441301fc42f7ca4dea1c28_fea087517c26fadd409bd4b9dc642555__0) Midori
GTK+ 2.24.29 (2.24.29) Glib 2.46.2 (2.47.3)
WebKitGTK+ 2.4.9 (2.4.9) libSoup 2.52.2
cairo 1.14.4 (1.14.4) libnotify No
gcr 3.18.0 granite No
Platform X11; Linux i686

Related branches

Revision history for this message
gue5t gue5t (gue5t) wrote :

I can't reproduce this locally (I get a "Midori can't find the page you're looking for" message saying the domain '.' can't be resolved). Can you get a backtrace or core dump from the crash?

Changed in midori:
status: New → Incomplete
Revision history for this message
jidanni (dan-jacobson) wrote :

Do
$ midori
and CTRL-SHIFT-Q to exit normally and clear any previous crash conditions.
Now do
$ strace midori ./play.google.com/

...
clock_gettime(CLOCK_MONOTONIC, {12814, 373355669}) = 0
poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=10, events=POLLIN}], 3, 0) = 1 ([{fd=3, revents=POLLIN}])
clock_gettime(CLOCK_MONOTONIC, {12814, 373723886}) = 0
fcntl64(38, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbfb24434) = 0
fcntl64(38, F_SETLK64, {type=F_RDLCK, whence=SEEK_SET, start=1073741826, len=510}, 0xbfb24434) = 0
fcntl64(38, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbfb24434) = 0
access("/home/jidanni/.cache/webkitgtk/applications/ApplicationCache.db-journal", F_OK) = -1 ENOENT (No such file or directory)
fstat64(38, {st_mode=S_IFREG|0644, st_size=3440640, ...}) = 0
_llseek(38, 24, [24], SEEK_SET) = 0
read(38, "\0\0\0\20\0\0\r \0\0\0\0\0\0\0\0", 16) = 16
fstat64(38, {st_mode=S_IFREG|0644, st_size=3440640, ...}) = 0
access("/home/jidanni/.cache/webkitgtk/applications/ApplicationCache.db-wal", F_OK) = -1 ENOENT (No such file or directory)
fstat64(38, {st_mode=S_IFREG|0644, st_size=3440640, ...}) = 0
fcntl64(38, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}, 0xbfb24474) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x11} ---
+++ killed by SIGSEGV +++
Segmentation fault

Revision history for this message
gue5t gue5t (gue5t) wrote :

That's a system-call trace, not a backtrace. Can you install gdb and run as "midori -g" or use gdb manually? Thanks.

Revision history for this message
jidanni (dan-jacobson) wrote :
Revision history for this message
gue5t gue5t (gue5t) wrote :

The crash is caused by the adblock extension; line 262 of extensions/adblock/extension.vala indexes into "subdomains[cnt]" without verifying that the subdomains array actually contains cnt values. Should be a trivial fix. Thanks for the backtrace and bug report!

tags: added: adblock
Changed in midori:
status: Incomplete → In Progress
gue5t gue5t (gue5t)
tags: added: segfault
gue5t gue5t (gue5t)
Changed in midori:
milestone: none → 0.5.12
gue5t gue5t (gue5t)
Changed in midori:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.