From unknown Sun Jun 22 22:41:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21205 <21205@debbugs.gnu.org> To: bug#21205 <21205@debbugs.gnu.org> Subject: Status: Error during redisplay: (jit-lock-function 3491) Reply-To: bug#21205 <21205@debbugs.gnu.org> Date: Mon, 23 Jun 2025 05:41:59 +0000 retitle 21205 Error during redisplay: (jit-lock-function 3491) reassign 21205 emacs,cc-mode submitter 21205 =E5=BC=A0=E6=B5=B7=E5=90=9B severity 21205 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 07 06:43:54 2015 Received: (at submit) by debbugs.gnu.org; 7 Aug 2015 10:43:54 +0000 Received: from localhost ([127.0.0.1]:41859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNf7x-0002wY-OV for submit@debbugs.gnu.org; Fri, 07 Aug 2015 06:43:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48563) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNf7v-0002wP-DL for submit@debbugs.gnu.org; Fri, 07 Aug 2015 06:43:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNf7u-0005Fl-9J for submit@debbugs.gnu.org; Fri, 07 Aug 2015 06:43:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: **** X-Spam-Status: No, score=4.0 required=5.0 tests=BAYES_50, CHARSET_FARAWAY_HEADER autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNf7u-0005Fh-6G for submit@debbugs.gnu.org; Fri, 07 Aug 2015 06:43:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNf7t-0007Pd-8R for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2015 06:43:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNf7o-0005EX-4l for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2015 06:43:49 -0400 Received: from st13p27im-asmtp002.me.com ([17.162.190.64]:60372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNf7n-0005E5-VO for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2015 06:43:44 -0400 Received: from [192.168.1.121] (unknown [219.82.251.7]) by st13p27im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0NSP00HYWKGJ5920@st13p27im-asmtp002.me.com> for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2015 10:43:41 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-08-07_05:2015-08-06,2015-08-07,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1508070187 From: =?gb2312?B?1cW6o779?= Content-type: multipart/mixed; boundary="Apple-Mail=_071DBFDD-B8FF-4393-A4E9-8058A98CF1BA" Subject: Error during redisplay: (jit-lock-function 3491) Message-id: <368A8AC0-E908-4419-A05C-0B0CEA6F0521@icloud.com> Date: Fri, 07 Aug 2015 18:43:54 +0800 To: bug-gnu-emacs@gnu.org MIME-version: 1.0 (Mac OS X Mail 8.2 \(2102\)) X-Mailer: Apple Mail (2.2102) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --Apple-Mail=_071DBFDD-B8FF-4393-A4E9-8058A98CF1BA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Emacs 24.5 on Linux. Run emacs with "emacs -Q", and then eval the following code: ------------------------------------------------------------ (setq font-lock-maximum-decoration 2 jit-lock-defer-time 0.05) (setq-default show-trailing-whitespace t) ------------------------------------------------------------ Then open the attached c file, and scroll down the buffer with key C-v = C-v ... until the end of buffer. Switch to the message buffer *Message*. There are some error message as = the following: = --------------------------------------------------------------------------= ---- Error during redisplay: (jit-lock-function 3102) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 4131) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 6206) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 7252) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 7757) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 8269) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 8790) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 9312) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 10383) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 10895) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 11403) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 12446) signaled (error = "Invalid search bound (wrong side of point)") Error during redisplay: (jit-lock-function 14009) signaled (error = "Invalid search bound (wrong side of point)") = --------------------------------------------------------------------------= ------ --Apple-Mail=_071DBFDD-B8FF-4393-A4E9-8058A98CF1BA Content-Disposition: attachment; filename=platform.c Content-Type: application/octet-stream; name="platform.c" Content-Transfer-Encoding: 7bit /* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2006, 07 MIPS Technologies, Inc. * written by Ralf Baechle (ralf@linux-mips.org) * written by Ralf Baechle * * Copyright (C) 2008 Wind River Systems, Inc. * updated by Tiejun Chen * * 1. Probe driver for the SILAN SUV's UART ports: * * UART becoming ttyS0. * 2. Register DWAC MAC platform device on SILAN SUV. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define SUV_I_BUS_CLK 74250000 #define SUV_II_BUS_CLK 36000000 static struct resource uart_pl011_resource[] = { { .start = SILAN_UART2_PHY_BASE, .end = SILAN_UART2_PHY_BASE + SILAN_UART2_SIZE, .flags = IORESOURCE_MEM, }, { .start = PIC_IRQ_UART2, .end = PIC_IRQ_UART2, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_uart_device = { .name = "silan-uart2", //.name = "uart-pl011", .id = 0, .num_resources = ARRAY_SIZE(uart_pl011_resource), .resource = uart_pl011_resource, }; static struct resource uart_uart3_resource[] = { { .start = SILAN_UART3_PHY_BASE, .end = SILAN_UART3_PHY_BASE + SILAN_UART3_SIZE, .flags = IORESOURCE_MEM, }, { .start = PIC_IRQ_UART3, .end = PIC_IRQ_UART3, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_uart3_device = { .name = "silan-uart3", .id = 1, .num_resources = ARRAY_SIZE(uart_uart3_resource), .resource = uart_uart3_resource, }; static struct resource uart_uart4_resource[] = { { .start = SILAN_UART4_PHY_BASE, .end = SILAN_UART4_PHY_BASE + SILAN_UART4_SIZE, .flags = IORESOURCE_MEM, }, { .start = PIC_IRQ_UART4, .end = PIC_IRQ_UART4, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_uart4_device = { .name = "silan-uart4", .id = 2, .num_resources = ARRAY_SIZE(uart_uart4_resource), .resource = uart_uart4_resource, }; static int silan_phy_reset(void * priv) { #if 0 OUT_GPIO(3); SET_GPIO(3); udelay(1); CLR_GPIO(3); udelay(2); SET_GPIO(3); #endif return 0; } static struct plat_stmmacphy_data phy_private_data = { .bus_id = 0, .phy_addr = -1, .phy_mask = 0, .interface = PHY_INTERFACE_MODE_MII, .phy_reset = &silan_phy_reset, }; static struct resource silan_phy_resources[] = { [0] = { .name = "phyirq", .start = -1, /* since we want to work on poll mode */ .end = -1, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_phy_device = { .name = "stmmacphy", .id = -1, .num_resources = ARRAY_SIZE(silan_phy_resources), .resource = silan_phy_resources, .dev = { .platform_data = &phy_private_data, } }; static struct plat_stmmacenet_data mac_private_data = { .bus_id = 0, .pbl = 8, .has_gmac = 1, .enh_desc = 1, .tx_coe = 1, .clk_csr = 0, .bugged_jumbo = 0, .pmt = 0, }; static struct resource silan_mac_resources[] = { [0] = { .start = SILAN_GMAC_PHY_BASE, .end = SILAN_GMAC_PHY_BASE + SILAN_GMAC_SIZE, .flags = IORESOURCE_MEM, }, [1] = { .name = "macirq", .start = PIC_IRQ_GMAC, .end = PIC_IRQ_GMAC, .flags = IORESOURCE_IRQ, } }; static struct platform_device silan_mac_device = { .name = "stmmaceth", .id = -1, .dev = { .platform_data = &mac_private_data, }, .num_resources = ARRAY_SIZE(silan_mac_resources), .resource = silan_mac_resources, }; static struct resource silan_drm_resource[] = { { .start = SILAN_DRM_DMA_PHY_BASE, .end = SILAN_DRM_DMA_PHY_BASE + SILAN_DRM_DMA_SIZE, .flags = IORESOURCE_MEM, }, { .start = SILAN_DRM_BUF_PHY_BASE, .end = SILAN_DRM_BUF_PHY_BASE + SILAN_DRM_BUF_SIZE, .flags = IORESOURCE_MEM, }, { .start = SILAN_DRM_CORE_PHY_BASE, .end = SILAN_DRM_CORE_PHY_BASE + SILAN_DRM_CORE_SIZE, .flags = IORESOURCE_MEM, }, { .start = PIC_IRQ_DRM, .end = PIC_IRQ_DRM, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_drm_device = { .name = "silan-drm", .id = -1, .num_resources = ARRAY_SIZE(silan_drm_resource), .resource = silan_drm_resource, }; static struct resource silan_hostusb_resource[] = { [0] = { .start = SILAN_HOSTUSB_PHY_BASE, .end = SILAN_HOSTUSB_PHY_BASE + SILAN_HOSTUSB_SIZE, .flags = IORESOURCE_MEM, }, [1] = { .name = "hostusb_irq", .start = PIC_IRQ_USB_HOST, .end = PIC_IRQ_USB_HOST, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_hostusb_device = { .name = "silan-hostusb", .id = -1, .num_resources = ARRAY_SIZE(silan_hostusb_resource), .resource = silan_hostusb_resource, }; static struct resource silan_otgusb_resource[] = { [0] = { .start = SILAN_OTGUSB_PHY_BASE, .end = SILAN_OTGUSB_PHY_BASE + SILAN_OTGUSB_SIZE, .flags = IORESOURCE_MEM, }, [1] = { .name = "otgusb_irq", .start = PIC_IRQ_USB_OTG, .end = PIC_IRQ_USB_OTG, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_otgusb_device = { .name = "silan-otgusb", .id = -1, .num_resources = ARRAY_SIZE(silan_otgusb_resource), .resource = silan_otgusb_resource, }; static struct resource silan_i2c_resource[] = { [0] = { .start = SILAN_I2C1_PHY_BASE, .end = SILAN_I2C1_PHY_BASE + SILAN_I2C1_SIZE, .flags = IORESOURCE_MEM, }, [1] = { .start = PIC_IRQ_I2C1, .end = PIC_IRQ_I2C1, .flags = IORESOURCE_IRQ, }, [2] = { .start = 1, .end = 1, .flags = IORESOURCE_DMA, }, [3] = { .start = 2, .end = 2, .flags = IORESOURCE_DMA, }, }; static struct platform_device silan_i2c_device = { .name = "silan-i2c", .id = -1, .num_resources = ARRAY_SIZE(silan_i2c_resource), .resource = silan_i2c_resource, }; static struct resource silan_spi_resource[] = { [0] = { .start = SILAN_SPI_PHY_BASE, .end = SILAN_SPI_PHY_BASE+SILAN_SPI_SIZE, .flags = IORESOURCE_MEM, }, }; static struct platform_device silan_spi_device ={ .name = "silan-spi", .id = -1, .num_resources = ARRAY_SIZE(silan_spi_resource), .resource = silan_spi_resource, }; static struct resource silan_spi_ctrl_resource[] = { [0] = { .start = SILAN_SPI_CTRL_PHY_BASE, .end = SILAN_SPI_CTRL_PHY_BASE+SILAN_SPI_CTRL_SIZE, .flags = IORESOURCE_MEM, }, }; static struct platform_device silan_spi_ctrl_device ={ .name = "silan-spictrl", .id = -1, .num_resources = ARRAY_SIZE(silan_spi_ctrl_resource), .resource = silan_spi_ctrl_resource, }; static struct resource silan_rtc_resource[] = { [0] = { .start = SILAN_RTC_PHY_BASE, .end = SILAN_RTC_PHY_BASE+SILAN_RTC_SIZE, .flags = IORESOURCE_MEM, }, [1] = { .start = PIC_IRQ_RTC, .end = PIC_IRQ_RTC, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_rtc_device ={ .name = "silan-rtc", .id = -1, .num_resources = ARRAY_SIZE(silan_rtc_resource), .resource = silan_rtc_resource, }; static struct resource silan_wtg_resource[] = { [0] = { .start = SILAN_WTG_PHY_BASE, .end = SILAN_WTG_PHY_BASE+SILAN_WTG_SIZE, .flags = IORESOURCE_MEM, }, [1] = { .start = PIC_IRQ_WTG, .end = PIC_IRQ_WTG, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_wtg_device ={ .name = "silan-watchdog", .id = -1, .num_resources = ARRAY_SIZE(silan_wtg_resource), .resource = silan_wtg_resource, }; static struct resource silan_dsp_resource[] = { { .start = SILAN_DSPCFG_PHY_BASE, .end = SILAN_DSPCFG_PHY_BASE + SILAN_DSPCFG_SIZE , .flags = IORESOURCE_MEM, }, { .start = SILAN_CXC_PHY_BASE, .end = SILAN_CXC_PHY_BASE + SILAN_CXC_SIZE, .flags = IORESOURCE_MEM, }, { .start = MIPS_DSP_CXC_IRQ, .end = MIPS_DSP_CXC_IRQ, .flags = IORESOURCE_IRQ, } }; static struct platform_device silan_dsp_device ={ .name = "silan-dsp", .id = -1, .num_resources = ARRAY_SIZE(silan_dsp_resource), .resource = silan_dsp_resource, }; static struct resource silan_mmc_resource0[] = { [0] = { .start = SILAN_SD_PHY_BASE, .end = SILAN_SD_PHY_BASE + SILAN_SD_SIZE, .flags = IORESOURCE_MEM, }, [1] = { .start = PIC_IRQ_SDMMC, .end = PIC_IRQ_SDMMC, .flags = IORESOURCE_IRQ, } }; static struct resource silan_mmc_resource1[] = { [0] = { .start = SILAN_MMC_PHY_BASE, .end = SILAN_MMC_PHY_BASE + SILAN_MMC_SIZE, .flags = IORESOURCE_MEM, }, [1] = { .start = PIC_IRQ_SDIO, .end = PIC_IRQ_SDIO, .flags = IORESOURCE_IRQ, } }; static struct dw_mci_board mmc_plat_data = { .quirks = 0, //.bus_hz = 74250000, .bus_hz = SUV_II_BUS_CLK, .detect_delay_ms = 10, .num_slots = 1, }; static struct platform_device silan_mmc_device0 = { .dev = { .platform_data = &mmc_plat_data, }, .name = "silan-mmc0", .id = 0, .num_resources = ARRAY_SIZE(silan_mmc_resource0), .resource = silan_mmc_resource0, }; static struct platform_device silan_mmc_device1 = { .dev = { .platform_data = &mmc_plat_data, }, .name = "silan-mmc1", .id = 1, .num_resources = ARRAY_SIZE(silan_mmc_resource1), .resource = silan_mmc_resource1, }; //GPIO1 static struct resource silan_gpio1_resource[] = { [0] = { .start = SILAN_GPIO1_PHY_BASE, .end = SILAN_GPIO1_PHY_BASE + SILAN_GPIO1_SIZE - 1, .flags = IORESOURCE_MEM, }, [1] = { .start = PIC_IRQ_GPIO1, .end = PIC_IRQ_GPIO1, .flags = IORESOURCE_IRQ, } }; static struct pl061_platform_data gpio1_plat_data = { .gpio_base = SILAN_GPIO1_BASENUM, .irq_base = PIC_IRQ_GPIO1, .gpio_irqbase = SILAN_GPIO1_IRQBASE, .gpio_num = SILAN_GPIO1_GPIONUM, .padmux_gpio = SILAN_PADMUX_END-1, }; static struct platform_device silan_gpio1_device = { .dev = { .init_name = "gpio1", .platform_data = &gpio1_plat_data, }, .name = "silan-gpio1", .id = -1, .num_resources = ARRAY_SIZE(silan_gpio1_resource), .resource = silan_gpio1_resource, }; //GPIO2 static struct resource silan_gpio2_resource[] = { [0] = { .start = SILAN_GPIO2_PHY_BASE, .end = SILAN_GPIO2_PHY_BASE + SILAN_GPIO2_SIZE - 1, .flags = IORESOURCE_MEM, }, [1] = { .start = PIC_IRQ_GPIO2, .end = PIC_IRQ_GPIO2, .flags = IORESOURCE_IRQ, } }; static struct pl061_platform_data gpio2_plat_data = { .gpio_base = SILAN_GPIO2_BASENUM, .irq_base = PIC_IRQ_GPIO2, .gpio_irqbase = SILAN_GPIO2_IRQBASE, .gpio_num = SILAN_GPIO2_GPIONUM, .padmux_gpio = SILAN_PADMUX_END-1, }; static struct platform_device silan_gpio2_device = { .dev = { .init_name = "gpio2", .platform_data = &gpio2_plat_data, }, .name = "silan-gpio2", .id = -1, .num_resources = ARRAY_SIZE(silan_gpio2_resource), .resource = silan_gpio2_resource, }; static struct platform_device silan_testio_device = { .name = "silan_testio", .id = -1, }; static struct platform_device silan_padmux_device = { .name = "silan-padmux", .id = -1, }; #if defined(CONFIG_SND_SILAN_SOC) && !defined(CONFIG_SPI_SILAN_GPIO) static struct platform_device silan_wmcodec_device = { .name = "silan-wmcodec", .id = -1, }; #endif static struct i2c_gpio_platform_data i2c_gpio_adapter_data = { .sda_pin = 32+12, .scl_pin = 32+11, .udelay = 50, .timeout = 100, .sda_is_open_drain = 1, .scl_is_open_drain = 1, }; static struct platform_device silan_i2c_gpio = { .name = "i2c-gpio", .id = -1, .dev = { .platform_data = &i2c_gpio_adapter_data, }, }; static struct timed_gpio vibrator = { .name = "vibrator", .gpio = 61, .max_timeout = 10000, .active_low = 0, }; static struct timed_gpio_platform_data timed_gpio_data = { .num_gpios =1, .gpios = &vibrator, }; static struct platform_device silan_timed_gpio = { .name = "timed-gpio", .id = -1, .dev = { .platform_data = &timed_gpio_data, }, }; static struct resource slinner_codec_resource[] = { { .start = SILAN_CODEC_PHY_BASE, .end = SILAN_CODEC_PHY_BASE + SILAN_CODEC_SIZE, .flags = IORESOURCE_MEM, }, { .start = SILAN_CR_PHY_BASE, .end = SILAN_CR_PHY_BASE + SILAN_CR_SIZE, .flags = IORESOURCE_MEM, }, { .start = PIC_IRQ_CODEC, .end = PIC_IRQ_CODEC, .flags = IORESOURCE_IRQ, } }; static struct platform_device slinner_codec_device = { .name = "silan-inner", .id = -1, .num_resources = ARRAY_SIZE(slinner_codec_resource), .resource = slinner_codec_resource, }; static struct platform_device silan_lcd = { .name = "silan-lcd", .id = -1, }; static struct resource silan_adkey_resource[] = { { .start = SILAN_ADC_PHY_BASE, .end = SILAN_ADC_PHY_BASE + SILAN_ADC_SIZE, .flags = IORESOURCE_MEM, }, { .start = PIC_IRQ_ADC, .end = PIC_IRQ_ADC, .flags = IORESOURCE_IRQ, }, }; static struct platform_device silan_ad_keys = { .name = "sl_ad-keys", .id = -1, .num_resources = ARRAY_SIZE(silan_adkey_resource), .resource = silan_adkey_resource, }; static struct gpio_led gpio_leds[]={ { .name = "system", .default_trigger = "timer", .gpio = 27, .active_low = 1, .default_state = LEDS_GPIO_DEFSTATE_OFF, }, { .name = "test1", .default_trigger = "none", .gpio = 28, .active_low = 0, .default_state = LEDS_GPIO_DEFSTATE_OFF, }, { .name = "test2", .default_trigger = "none", .gpio = 29, .active_low = 0, .default_state = LEDS_GPIO_DEFSTATE_OFF, }, }; static struct gpio_led_platform_data gpio_led_info = { .leds = gpio_leds, .num_leds = ARRAY_SIZE(gpio_leds), }; static struct platform_device silan_leds = { .name = "leds-gpio", .id = -1, .dev = { .platform_data = &gpio_led_info, }, }; static struct platform_device *silan_devices[] __initdata = { &silan_uart_device, &silan_uart3_device, &silan_uart4_device, &silan_phy_device, &silan_mac_device, &silan_hostusb_device, &silan_otgusb_device, &silan_i2c_device, &silan_spi_device, //&silan_spi_ctrl_device, &silan_dsp_device, //&silan_mmc_device0, //&silan_mmc_device1, &silan_gpio1_device, &silan_gpio2_device, #ifdef CONFIG_SND_SILAN_SOC &silan_soc_dma, &slinner_codec_device, &silan_iis_device, &silan_spdif_device, &silan_spdcodec_device, &silan_spdif_in_device, &silan_wmcodec_device, #endif &silan_testio_device, &silan_padmux_device, //&silan_pwm_device, //&silan_backlight, &silan_i2c_gpio, &silan_timed_gpio, &silan_rtc_device, //&spi_silan_gpio_device, &silan_wtg_device, &silan_drm_device, //&silan_lcd, //&silan_ad_keys, &silan_leds, }; static int __init silan_add_devices(void) { int err; #ifdef CONFIG_SILAN_DLNA_DMA int i; #endif err = platform_add_devices(silan_devices, ARRAY_SIZE(silan_devices)); if (err) return err; #ifdef CONFIG_SILAN_DLNA_DMA for(i = 0; i < ARRAY_SIZE(silan_amba_devs); i++) { struct amba_device *d = silan_amba_devs[i]; amba_device_register(d, &iomem_resource); } #endif return 0; } device_initcall(silan_add_devices); --Apple-Mail=_071DBFDD-B8FF-4393-A4E9-8058A98CF1BA-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 07 08:54:19 2015 Received: (at 21205) by debbugs.gnu.org; 7 Aug 2015 12:54:19 +0000 Received: from localhost ([127.0.0.1]:41883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNhAA-0007Py-SI for submit@debbugs.gnu.org; Fri, 07 Aug 2015 08:54:19 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:54309) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNhA7-0007Pn-CG for 21205@debbugs.gnu.org; Fri, 07 Aug 2015 08:54:17 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NSP00F00Q1CKH00@a-mtaout23.012.net.il> for 21205@debbugs.gnu.org; Fri, 07 Aug 2015 15:54:13 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSP00FNCQICHZ40@a-mtaout23.012.net.il>; Fri, 07 Aug 2015 15:54:13 +0300 (IDT) Date: Fri, 07 Aug 2015 15:54:10 +0300 From: Eli Zaretskii Subject: Re: bug#21205: Error during redisplay: (jit-lock-function 3491) In-reply-to: <368A8AC0-E908-4419-A05C-0B0CEA6F0521@icloud.com> X-012-Sender: halo1@inter.net.il To: =?utf-8?B?5byg5rW35ZCb?= , Alan Mackenzie Message-id: <83zj23qmx9.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <368A8AC0-E908-4419-A05C-0B0CEA6F0521@icloud.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21205 Cc: 21205@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: 张海君 > Date: Fri, 07 Aug 2015 18:43:54 +0800 > > Run emacs with "emacs -Q", and then eval the following code: > ------------------------------------------------------------ > (setq font-lock-maximum-decoration 2 > jit-lock-defer-time 0.05) > (setq-default show-trailing-whitespace t) > ------------------------------------------------------------ > > Then open the attached c file, and scroll down the buffer with key C-v C-v ... until the end of buffer. > Switch to the message buffer *Message*. There are some error message as the following: > ------------------------------------------------------------------------------ > Error during redisplay: (jit-lock-function 3102) signaled (error "Invalid search bound (wrong side of point)") The errors are triggered by c-syntactic-re-search-forward. Here's the backtrace from the first such error, with the current master: #0 search_command (string=-9223372036754146592, bound=4611686018427389473, noerror=4274457416, count=0, direction=1, RE=1, posix=false) at search.c:1047 #1 0x011cf1ed in Fre_search_forward (regexp=-9223372036754146592, bound=4611686018427389473, noerror=4274457416, count=0) at search.c:2245 #2 0x0121c1a2 in Ffuncall (nargs=4, args=0x825428) at eval.c:2737 #3 0x01276fd0 in exec_byte_code (bytestr=-9223372036753723160, vector=-6917529027611644184, maxdepth=4611686018427387913, args_template=0, nargs=0, args=0x0) at bytecode.c:919 #4 0x0121d5ab in funcall_lambda (fun=-6917529027611643800, nargs=4, arg_vector=0x8259f0) at eval.c:2959 #5 0x0121c633 in Ffuncall (nargs=5, args=0x8259e8) at eval.c:2775 #6 0x01276fd0 in exec_byte_code (bytestr=-9223372036754145936, vector=-6917529027611456264, maxdepth=4611686018427387917, args_template=0, nargs=0, args=0x0) at bytecode.c:919 #7 0x0121d5ab in funcall_lambda (fun=-6917529027612898016, nargs=3, arg_vector=0x825fd0) at eval.c:2959 #8 0x0121c633 in Ffuncall (nargs=4, args=0x825fc8) at eval.c:2775 #9 0x01276fd0 in exec_byte_code (bytestr=-9223372036753729256, vector=-6917529027611079432, maxdepth=4611686018427387909, args_template=0, nargs=0, args=0x0) at bytecode.c:919 #10 0x0121d5ab in funcall_lambda (fun=-6917529027611079264, nargs=1, arg_vector=0x826570) at eval.c:2959 #11 0x0121c633 in Ffuncall (nargs=2, args=0x826568) at eval.c:2775 #12 0x01276fd0 in exec_byte_code (bytestr=-9223372036833489872, vector=-6917529027619795904, maxdepth=4611686018427387913, args_template=0, nargs=0, args=0x0) at bytecode.c:919 #13 0x0121d5ab in funcall_lambda (fun=-6917529027619795968, nargs=3, arg_vector=0x826b30) at eval.c:2959 #14 0x0121c633 in Ffuncall (nargs=4, args=0x826b28) at eval.c:2775 #15 0x01276fd0 in exec_byte_code (bytestr=-9223372036833494416, vector=-6917529027619800448, maxdepth=4611686018427387909, args_template=0, nargs=0, args=0x0) at bytecode.c:919 #16 0x0121d5ab in funcall_lambda (fun=-6917529027619800544, nargs=3, arg_vector=0x8270d0) at eval.c:2959 #17 0x0121c633 in Ffuncall (nargs=4, args=0x8270c8) at eval.c:2775 #18 0x01276fd0 in exec_byte_code (bytestr=-9223372036753541720, vector=-6917529027539731416, maxdepth=4611686018427387910, args_template=0, nargs=0, args=0x0) at bytecode.c:919 #19 0x0121d5ab in funcall_lambda (fun=-6917529027539731280, nargs=3, arg_vector=0x827680) at eval.c:2959 #20 0x0121c633 in Ffuncall (nargs=4, args=0x827678) at eval.c:2775 #21 0x01276fd0 in exec_byte_code (bytestr=-9223372036833496152, vector=-6917529027619802184, maxdepth=4611686018427387908, args_template=0, nargs=0, args=0x0) at bytecode.c:919 #22 0x0121d5ab in funcall_lambda (fun=-6917529027619802312, nargs=2, arg_vector=0x827c28) at eval.c:2959 #23 0x0121c633 in Ffuncall (nargs=3, args=0x827c20) at eval.c:2775 #24 0x01276fd0 in exec_byte_code (bytestr=-9223372036833477944, vector=-6917529027539145464, maxdepth=4611686018427387914, args_template=4611686018427388161, nargs=1, args=0x828410) at bytecode.c:919 #25 0x0121cf63 in funcall_lambda (fun=-6917529027539145392, nargs=1, arg_vector=0x828408) at eval.c:2893 #26 0x0121c633 in Ffuncall (nargs=2, args=0x828400) at eval.c:2775 #27 0x0121b113 in run_hook_wrapped_funcall (nargs=2, args=0x828400) at eval.c:2452 #28 0x0121b5aa in run_hook_with_args (nargs=2, args=0x828400, funcall=0x121b0cb ) at eval.c:2537 #29 0x0121b162 in Frun_hook_wrapped (nargs=2, args=0x828400) at eval.c:2467 #30 0x0121bf18 in Ffuncall (nargs=3, args=0x8283f8) at eval.c:2706 #31 0x01276fd0 in exec_byte_code (bytestr=-9223372036833478056, vector=-6917529027619784088, maxdepth=4611686018427387923, args_template=4611686018427388418, nargs=2, args=0x828a20) at bytecode.c:919 #32 0x0121cf63 in funcall_lambda (fun=-6917529027619784152, nargs=2, arg_vector=0x828a10) at eval.c:2893 #33 0x0121c633 in Ffuncall (nargs=3, args=0x828a08) at eval.c:2775 #34 0x01276fd0 in exec_byte_code (bytestr=-9223372036833477808, vector=-6917529027619783840, maxdepth=4611686018427387931, args_template=4611686018427388416, nargs=2, args=0x829048) at bytecode.c:919 #35 0x0121cf63 in funcall_lambda (fun=-6917529027619783904, nargs=2, arg_vector=0x829038) at eval.c:2893 #36 0x0121c633 in Ffuncall (nargs=3, args=0x829030) at eval.c:2775 #37 0x01276fd0 in exec_byte_code (bytestr=-9223372036833478352, vector=-6917529027619784384, maxdepth=4611686018427387916, args_template=4611686018427388161, nargs=1, args=0x829660) at bytecode.c:919 #38 0x0121cf63 in funcall_lambda (fun=-6917529027619784448, nargs=1, arg_vector=0x829658) at eval.c:2893 #39 0x0121c633 in Ffuncall (nargs=2, args=0x829650) at eval.c:2775 #40 0x01217416 in internal_condition_case_n (bfun=0x121bbde , nargs=2, args=0x829650, handlers=53088, hfun=0x1039405 ) at eval.c:1438 #41 0x0103965b in safe__call (inhibit_quit=false, nargs=2, func=4280165648, ap=0x829714 "") at xdisp.c:2508 #42 0x010396f6 in safe_call (nargs=2, func=4280165648) at xdisp.c:2524 #43 0x0103974a in safe_call1 (fn=4280165648, arg=4611686018427388947) at xdisp.c:2535 #44 0x0103d8e5 in handle_fontified_prop (it=0x82a6d0) at xdisp.c:3749 #45 0x0103c46d in handle_stop (it=0x82a6d0) at xdisp.c:3313 #46 0x0104c2d3 in next_element_from_buffer (it=0x82a6d0) at xdisp.c:8153 #47 0x01048afe in get_next_display_element (it=0x82a6d0) at xdisp.c:6805 #48 0x0107b1c0 in display_line (it=0x82a6d0) at xdisp.c:20227 #49 0x0106d191 in try_window (window=-6917529027612397280, pos=..., flags=1) at xdisp.c:16900 #50 0x010691b7 in redisplay_window (window=-6917529027612397280, just_this_one_p=true) at xdisp.c:16373 #51 0x01060000 in redisplay_window_1 (window=-6917529027612397280) at xdisp.c:14198 #52 0x01217136 in internal_condition_case_1 ( bfun=0x105ffa5 , arg=-6917529027612397280, handlers=-4611686018403211200, hfun=0x105fef5 ) at eval.c:1380 #53 0x0105ef9f in redisplay_internal () at xdisp.c:13841 #54 0x0105f6f8 in redisplay_preserve_echo_area (from_where=2) at xdisp.c:14027 #55 0x01011009 in Fredisplay (force=0) at dispnew.c:5785 #56 0x0121c06d in Ffuncall (nargs=1, args=0x82dcb0) at eval.c:2726 #57 0x01276fd0 in exec_byte_code (bytestr=-9223372036834414648, vector=-6917529027620720680, maxdepth=4611686018427387911, args_template=4611686018427388673, nargs=1, args=0x82e258) at bytecode.c:919 #58 0x0121cf63 in funcall_lambda (fun=-6917529027620720744, nargs=1, arg_vector=0x82e250) at eval.c:2893 #59 0x0121c633 in Ffuncall (nargs=2, args=0x82e248) at eval.c:2775 #60 0x01276fd0 in exec_byte_code (bytestr=-9223372036833476664, vector=-6917529027619782696, maxdepth=4611686018427387916, args_template=4611686018427387904, nargs=0, args=0x82e9c8) at bytecode.c:919 #61 0x0121cf63 in funcall_lambda (fun=-6917529027619782760, nargs=0, arg_vector=0x82e9c8) at eval.c:2893 #62 0x0121c633 in Ffuncall (nargs=1, args=0x82e9c0) at eval.c:2775 #63 0x0121a9f7 in Fapply (nargs=2, args=0x82e9c0) at eval.c:2297 #64 0x0121bf18 in Ffuncall (nargs=3, args=0x82e9b8) at eval.c:2706 #65 0x01276fd0 in exec_byte_code (bytestr=-9223372036833436560, vector=-6917529027619742592, maxdepth=4611686018427387911, args_template=0, nargs=0, args=0x0) at bytecode.c:919 #66 0x0121d5ab in funcall_lambda (fun=-6917529027619742656, nargs=1, arg_vector=0x82ef68) at eval.c:2959 #67 0x0121c633 in Ffuncall (nargs=2, args=0x82ef60) at eval.c:2775 #68 0x0121b7cc in call1 (fn=54544, arg1=-6917529027539397488) at eval.c:2581 #69 0x0115bc67 in timer_check_2 (timers=0, idle_timers=-4611686018325442896) at keyboard.c:4530 #70 0x0115bde2 in timer_check () at keyboard.c:4597 #71 0x0115900e in readable_events (flags=1) at keyboard.c:3432 #72 0x01162caa in get_input_pending (flags=1) at keyboard.c:6815 #73 0x0116cf95 in detect_input_pending_run_timers (do_display=true) at keyboard.c:9978 #74 0x01287d94 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:5013 #75 0x01010ee8 in sit_for (timeout=4611686018427387934, reading=true, display_option=1) at dispnew.c:5756 #76 0x01156016 in read_char (commandflag=1, map=-4611686018325436640, prev_event=0, used_mouse_menu=0x82f623, end_time=0x0) at keyboard.c:2779 #77 0x0116a700 in read_key_sequence (keybuf=0x82f7c8, bufsize=30, prompt=0, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9161 #78 0x011516a0 in command_loop_1 () at keyboard.c:1402 #79 0x01216fd4 in internal_condition_case (bfun=0x11510b8 , handlers=20720, hfun=0x115039b ) at eval.c:1356 #80 0x01150b5a in command_loop_2 (ignore=0) at keyboard.c:1134 #81 0x01216031 in internal_catch (tag=55216, func=0x1150b1e , arg=0) at eval.c:1116 #82 0x01150ad8 in command_loop () at keyboard.c:1113 #83 0x0114fdb7 in recursive_edit_1 () at keyboard.c:723 #84 0x01150074 in Frecursive_edit () at keyboard.c:794 #85 0x0114d7fe in main (argc=2, argv=0xa427e0) at emacs.c:1629 Lisp Backtrace: "re-search-forward" (0x825430) "c-syntactic-re-search-forward" (0x8259f0) "c-font-lock-declarators" (0x825fd0) 0x1c9cda0 PVEC_COMPILED "font-lock-fontify-keywords-region" (0x826b30) "font-lock-default-fontify-region" (0x8270d0) "c-font-lock-fontify-region" (0x827680) "font-lock-fontify-region" (0x827c28) 0x6136d50 PVEC_COMPILED "run-hook-wrapped" (0x828400) "jit-lock--run-functions" (0x828a10) "jit-lock-fontify-now" (0x829038) "jit-lock-function" (0x829658) "redisplay_internal (C function)" (0x0) "redisplay" (0x82dcb8) "sit-for" (0x82e250) "jit-lock-deferred-fontify" (0x82e9c8) "apply" (0x82e9c0) "timer-event-handler" (0x82ef68) (gdb) p n $1 = 1 (gdb) p lim $2 = 1569 (gdb) p PT $3 = 1611 (gdb) up #1 0x011cf1ed in Fre_search_forward (regexp=-9223372036754146592, bound=4611686018427389473, noerror=4274457416, count=0) at search.c:2245 2245 return search_command (regexp, bound, noerror, count, 1, 1, 0); (gdb) p regexp $4 = -9223372036754146592 (gdb) xtype Lisp_String (gdb) xstring $5 = (struct Lisp_String *) 0x5ff7ae0 "[;,{]" (gdb) p bound $6 = 4611686018427389473 (gdb) xtype Lisp_Int0 (gdb) xint $7 = 1569 (gdb) p noerror $8 = 4274457416 (gdb) xtype Lisp_Symbol (gdb) xsymbol $9 = (struct Lisp_Symbol *) 0x1785a30 "move" From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 07 16:52:08 2015 Received: (at 21205) by debbugs.gnu.org; 7 Aug 2015 20:52:08 +0000 Received: from localhost ([127.0.0.1]:50411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNocZ-0007lb-S3 for submit@debbugs.gnu.org; Fri, 07 Aug 2015 16:52:08 -0400 Received: from mail.muc.de ([193.149.48.3]:48758) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNocX-0007lR-4Q for 21205@debbugs.gnu.org; Fri, 07 Aug 2015 16:52:06 -0400 Received: (qmail 60973 invoked by uid 3782); 7 Aug 2015 20:52:02 -0000 Received: from acm.muc.de (p548A5DBA.dip0.t-ipconnect.de [84.138.93.186]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 07 Aug 2015 22:52:01 +0200 Received: (qmail 4656 invoked by uid 1000); 7 Aug 2015 20:52:55 -0000 Date: Fri, 7 Aug 2015 20:52:55 +0000 To: Eli Zaretskii , netjune@icloud.com Subject: Re: bug#21205: Error during redisplay: (jit-lock-function 3491) Message-ID: <20150807205255.GA2653@acm.fritz.box> References: <368A8AC0-E908-4419-A05C-0B0CEA6F0521@icloud.com> <83zj23qmx9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <83zj23qmx9.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: 21205 Cc: 21205@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Hello, Eli and Netjune. On Fri, Aug 07, 2015 at 03:54:10PM +0300, Eli Zaretskii wrote: > > From: 张海君 > > Date: Fri, 07 Aug 2015 18:43:54 +0800 > > Run emacs with "emacs -Q", and then eval the following code: > > ------------------------------------------------------------ > > (setq font-lock-maximum-decoration 2 > > jit-lock-defer-time 0.05) > > (setq-default show-trailing-whitespace t) > > ------------------------------------------------------------ > > Then open the attached c file, and scroll down the buffer with key C-v C-v ... until the end of buffer. > > Switch to the message buffer *Message*. There are some error message as the following: > > ------------------------------------------------------------------------------ > > Error during redisplay: (jit-lock-function 3102) signaled (error "Invalid search bound (wrong side of point)") > The errors are triggered by c-syntactic-re-search-forward. Here's the > backtrace from the first such error, with the current master: [ .... ] > Lisp Backtrace: > "re-search-forward" (0x825430) > "c-syntactic-re-search-forward" (0x8259f0) > "c-font-lock-declarators" (0x825fd0) > 0x1c9cda0 PVEC_COMPILED > "font-lock-fontify-keywords-region" (0x826b30) > "font-lock-default-fontify-region" (0x8270d0) > "c-font-lock-fontify-region" (0x827680) > "font-lock-fontify-region" (0x827c28) [ .... ] Thanks for that, Eli! It made it fairly easy to track down the bug, which was simply failing to check if point had advanced too far at one critical place in c-font-lock-declarators. Netjune: would you please try out the following patch (it should apply cleanly to the cc-fonts.el in ..../emacs-24.5/lisp/progmodes/), and confirm that the bug has been fixed, or tell me what is still causing problems. diff -r 88b4140d56af cc-fonts.el --- a/cc-fonts.el Tue May 12 10:03:55 2015 +0000 +++ b/cc-fonts.el Fri Aug 07 20:41:38 2015 +0000 @@ -1141,6 +1141,7 @@ (looking-at "{")) (c-safe (c-forward-sexp) t) ; over { .... } t) + (< (point) limit) ;; FIXME: Should look for c-decl-end markers here; ;; we might go far into the following declarations ;; in e.g. ObjC mode (see e.g. methods-4.m). Thanks for the bug report! -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 10:43:42 2015 Received: (at 21205) by debbugs.gnu.org; 10 Aug 2015 14:43:42 +0000 Received: from localhost ([127.0.0.1]:52287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOoIf-0008GO-SS for submit@debbugs.gnu.org; Mon, 10 Aug 2015 10:43:42 -0400 Received: from st13p27im-asmtp002.me.com ([17.162.190.64]:39180) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOoIb-0008GD-UQ for 21205@debbugs.gnu.org; Mon, 10 Aug 2015 10:43:39 -0400 Received: from [192.168.1.112] (unknown [218.109.251.222]) by st13p27im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0NSV0092FFKJ0O00@st13p27im-asmtp002.me.com> for 21205@debbugs.gnu.org; Mon, 10 Aug 2015 14:43:36 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-08-10_02:2015-08-10,2015-08-10,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1508100222 Content-type: text/plain; charset=gb2312 MIME-version: 1.0 (1.0) Subject: Re: bug#21205: Error during redisplay: (jit-lock-function 3491) From: =?GB2312?B?1cW6o779?= X-Mailer: iPhone Mail (12F70) In-reply-to: <20150807205255.GA2653@acm.fritz.box> Date: Mon, 10 Aug 2015 22:43:26 +0800 Content-transfer-encoding: quoted-printable Message-id: <786E8547-4CDE-4693-B13B-0EAAEEA64045@icloud.com> References: <368A8AC0-E908-4419-A05C-0B0CEA6F0521@icloud.com> <83zj23qmx9.fsf@gnu.org> <20150807205255.GA2653@acm.fritz.box> To: Alan Mackenzie X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21205 Cc: Eli Zaretskii , "21205@debbugs.gnu.org" <21205@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Yes, it is fixed. Thanks for your great work! > =D4=DA 2015=C4=EA8=D4=C28=C8=D5=A3=AC04:52=A3=ACAlan Mackenzie =D0=B4=B5=C0=A3=BA >=20 > Hello, Eli and Netjune. >=20 > On Fri, Aug 07, 2015 at 03:54:10PM +0300, Eli Zaretskii wrote: >>> From: =D5=C5=BA=A3=BE=FD >>> Date: Fri, 07 Aug 2015 18:43:54 +0800 >=20 >>> Run emacs with "emacs -Q", and then eval the following code: >>> ------------------------------------------------------------ >>> (setq font-lock-maximum-decoration 2 >>> jit-lock-defer-time 0.05) >>> (setq-default show-trailing-whitespace t) >>> ------------------------------------------------------------ >=20 >>> Then open the attached c file, and scroll down the buffer with key C-v C= -v ... until the end of buffer. >>> Switch to the message buffer *Message*. There are some error message as t= he following: >>> ------------------------------------------------------------------------= ------ >>> Error during redisplay: (jit-lock-function 3102) signaled (error "Invali= d search bound (wrong side of point)") >=20 >> The errors are triggered by c-syntactic-re-search-forward. Here's the >> backtrace from the first such error, with the current master: >=20 > [ .... ] >=20 >> Lisp Backtrace: >> "re-search-forward" (0x825430) >> "c-syntactic-re-search-forward" (0x8259f0) >> "c-font-lock-declarators" (0x825fd0) >> 0x1c9cda0 PVEC_COMPILED >> "font-lock-fontify-keywords-region" (0x826b30) >> "font-lock-default-fontify-region" (0x8270d0) >> "c-font-lock-fontify-region" (0x827680) >> "font-lock-fontify-region" (0x827c28) >=20 > [ .... ] >=20 > Thanks for that, Eli! It made it fairly easy to track down the bug, > which was simply failing to check if point had advanced too far at one > critical place in c-font-lock-declarators. >=20 > Netjune: would you please try out the following patch (it should apply > cleanly to the cc-fonts.el in ..../emacs-24.5/lisp/progmodes/), and > confirm that the bug has been fixed, or tell me what is still causing > problems. >=20 >=20 >=20 > diff -r 88b4140d56af cc-fonts.el > --- a/cc-fonts.el Tue May 12 10:03:55 2015 +0000 > +++ b/cc-fonts.el Fri Aug 07 20:41:38 2015 +0000 > @@ -1141,6 +1141,7 @@ > (looking-at "{")) > (c-safe (c-forward-sexp) t) ; over { .... } > t) > + (< (point) limit) > ;; FIXME: Should look for c-decl-end markers here; > ;; we might go far into the following declarations > ;; in e.g. ObjC mode (see e.g. methods-4.m). >=20 >=20 > Thanks for the bug report! >=20 > --=20 > Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 13:26:57 2015 Received: (at 21205-done) by debbugs.gnu.org; 10 Aug 2015 17:26:57 +0000 Received: from localhost ([127.0.0.1]:52372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOqqf-00059l-7B for submit@debbugs.gnu.org; Mon, 10 Aug 2015 13:26:57 -0400 Received: from mail.muc.de ([193.149.48.3]:62958) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOqqc-00059b-Rs for 21205-done@debbugs.gnu.org; Mon, 10 Aug 2015 13:26:55 -0400 Received: (qmail 97026 invoked by uid 3782); 10 Aug 2015 17:26:53 -0000 Received: from acm.muc.de (p5B146FB9.dip0.t-ipconnect.de [91.20.111.185]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 10 Aug 2015 19:26:52 +0200 Received: (qmail 6495 invoked by uid 1000); 10 Aug 2015 17:27:48 -0000 Date: Mon, 10 Aug 2015 17:27:48 +0000 To: 21205-done@debbugs.gnu.org, =?utf-8?B?5byg5rW35ZCb?= Subject: Re: bug#21205: Error during redisplay: (jit-lock-function 3491) Message-ID: <20150810172748.GA6489@acm.fritz.box> References: <368A8AC0-E908-4419-A05C-0B0CEA6F0521@icloud.com> <83zj23qmx9.fsf@gnu.org> <20150807205255.GA2653@acm.fritz.box> <786E8547-4CDE-4693-B13B-0EAAEEA64045@icloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <786E8547-4CDE-4693-B13B-0EAAEEA64045@icloud.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 21205-done Cc: Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Bug fixed in master. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sun Jun 22 22:41:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 08 Sep 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator